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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70543 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/CodeGen/tentative-decls.c b/test/CodeGen/tentative-decls.c
index 7fb396a..3301c23 100644
--- a/test/CodeGen/tentative-decls.c
+++ b/test/CodeGen/tentative-decls.c
@@ -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