blob: 0e094bfa6bd72792b1b47ec84025cb5e50a6b6d7 [file] [log] [blame]
Douglas Gregorcaa1bf42010-08-18 00:39:00 +00001// RUN: %clang_cc1 -triple x86_64-apple-darwin -verify %s
2
3void f() {
4 int a[2147483647U][2147483647U]; // expected-error{{array is too large}}
Serge Pavlovdfdb7312013-07-16 07:14:18 +00005 int b[1073741825U - 1U][2147483647U]; // expected-error{{array is too large}}
Douglas Gregorcaa1bf42010-08-18 00:39:00 +00006}
Serge Pavlovdfdb7312013-07-16 07:14:18 +00007
8void pr8256 () {
9 typedef char a[1LL<<61]; // expected-error {{array is too large}}
10 typedef char b[(long long)sizeof(a)-1];
11}
12