164a5f6f7034808988c3596cf340a879c0c501869Douglas Gregor// RUN: %clang_cc1 -triple i686-apple-darwin -verify %s
264a5f6f7034808988c3596cf340a879c0c501869Douglas Gregor
364a5f6f7034808988c3596cf340a879c0c501869Douglas Gregorvoid f() {
464a5f6f7034808988c3596cf340a879c0c501869Douglas Gregor  int x0[1073741824]; // expected-error{{array is too large}}
564a5f6f7034808988c3596cf340a879c0c501869Douglas Gregor  int x1[1073741824 + 1]; // expected-error{{array is too large}}
664a5f6f7034808988c3596cf340a879c0c501869Douglas Gregor  int x2[(unsigned)1073741824]; // expected-error{{array is too large}}
764a5f6f7034808988c3596cf340a879c0c501869Douglas Gregor  int x3[(unsigned)1073741824 + 1]; // expected-error{{array is too large}}
864a5f6f7034808988c3596cf340a879c0c501869Douglas Gregor  int x4[1073741824 - 1];
964a5f6f7034808988c3596cf340a879c0c501869Douglas Gregor}
1064a5f6f7034808988c3596cf340a879c0c501869Douglas Gregor
11