Add testcase that illustrates the problem from r69699 regarding tentative definitions of statics

llvm-svn: 70543
This commit is contained in:
Douglas Gregor 2009-05-01 15:45:53 +00:00
parent 29d0880e50
commit 72a57b89aa
1 changed files with 6 additions and 0 deletions

View File

@ -30,4 +30,10 @@ int *f1() {
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