New testcase for PR610
authorChris Lattner <sabre@nondot.org>
Thu, 28 Jul 2005 20:18:33 +0000 (20:18 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 28 Jul 2005 20:18:33 +0000 (20:18 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22545 91177308-0d34-0410-b5e6-96231b3b80d8

test/CFrontend/2005-07-28-IncorrectWeakGlobal.c [new file with mode: 0644]

diff --git a/test/CFrontend/2005-07-28-IncorrectWeakGlobal.c b/test/CFrontend/2005-07-28-IncorrectWeakGlobal.c
new file mode 100644 (file)
index 0000000..1a8c409
--- /dev/null
@@ -0,0 +1,5 @@
+// RUN: %llvmgcc %s -S -o - | grep TheGlobal | not grep weak
+
+extern int TheGlobal;
+int foo() { return TheGlobal; }
+int TheGlobal = 1;