forked from OSchip/llvm-project
Add testcase that illustrates the problem from r69699 regarding tentative definitions of statics
llvm-svn: 70543
This commit is contained in:
parent
29d0880e50
commit
72a57b89aa
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue