summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/tentative-array.c
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2008-05-30 20:39:54 +0000
committerEli Friedman <eli.friedman@gmail.com>2008-05-30 20:39:54 +0000
commit6859a1b961d808484cd77473ed6e1eceef193c8d (patch)
tree67539a5041b245549e206d8300b9fdedfbcc77bb /clang/test/CodeGen/tentative-array.c
parent8269c9b1c91b12cdfbe5fec8ca4bde01cf5bbad2 (diff)
downloadbcm5719-llvm-6859a1b961d808484cd77473ed6e1eceef193c8d.tar.gz
bcm5719-llvm-6859a1b961d808484cd77473ed6e1eceef193c8d.zip
PR1893: Fix up the type of tentative definitions of incomplete array
types so that they end up the correct size. llvm-svn: 51787
Diffstat (limited to 'clang/test/CodeGen/tentative-array.c')
-rw-r--r--clang/test/CodeGen/tentative-array.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/test/CodeGen/tentative-array.c b/clang/test/CodeGen/tentative-array.c
new file mode 100644
index 00000000000..71231237faf
--- /dev/null
+++ b/clang/test/CodeGen/tentative-array.c
@@ -0,0 +1,4 @@
+// RUN: clang -emit-llvm < %s -triple=i686-apple-darwin9 | grep "global \[1 x i32\]"
+
+int r[];
+int (*a)[] = &r;
OpenPOWER on IntegriCloud