[cfe-commits] r70543 - /cfe/trunk/test/CodeGen/tentative-decls.c
Douglas Gregor
dgregor at apple.com
Fri May 1 08:45:53 PDT 2009
Author: dgregor
Date: Fri May 1 10:45:53 2009
New Revision: 70543
URL: http://llvm.org/viewvc/llvm-project?rev=70543&view=rev
Log:
Add testcase that illustrates the problem from r69699 regarding tentative definitions of statics
Modified:
cfe/trunk/test/CodeGen/tentative-decls.c
Modified: cfe/trunk/test/CodeGen/tentative-decls.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/tentative-decls.c?rev=70543&r1=70542&r2=70543&view=diff
==============================================================================
--- cfe/trunk/test/CodeGen/tentative-decls.c (original)
+++ cfe/trunk/test/CodeGen/tentative-decls.c Fri May 1 10:45:53 2009
@@ -30,4 +30,10 @@
int c[];
int c[4];
+// Check that we emit static tentative definitions
+// RUN: grep '@c5 = internal global \[1 x .*\] zeroinitializer' %t &&
+static int c5[];
+static int func() { return c5[0]; }
+int callfunc() { return func(); }
+
// RUN: true
More information about the cfe-commits
mailing list