summaryrefslogtreecommitdiff
path: root/clang/test/Sema/array-size-64.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Sema/array-size-64.c')
-rw-r--r--clang/test/Sema/array-size-64.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/test/Sema/array-size-64.c b/clang/test/Sema/array-size-64.c
new file mode 100644
index 0000000..f22e8e7
--- /dev/null
+++ b/clang/test/Sema/array-size-64.c
@@ -0,0 +1,7 @@
+// RUN: %clang_cc1 -triple x86_64-apple-darwin -verify %s
+
+void f() {
+ int a[2147483647U][2147483647U]; // expected-error{{array is too large}}
+ int b[1073741825U - 1U][2147483647U];
+ int c[18446744073709551615U/sizeof(int)/2];
+}