diff options
author | Chris Lattner <sabre@nondot.org> | 2005-07-28 20:18:33 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-07-28 20:18:33 +0000 |
commit | 70df32a138a72a66c733c8cd9db8dd6ceedf2c57 (patch) | |
tree | 657e6ff42b12591d4886648716093d5877485254 | |
parent | 98169be50bbec4cd3406c7e6557c8661764f2a94 (diff) |
New testcase for PR610
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22545 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/CFrontend/2005-07-28-IncorrectWeakGlobal.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/CFrontend/2005-07-28-IncorrectWeakGlobal.c b/test/CFrontend/2005-07-28-IncorrectWeakGlobal.c new file mode 100644 index 0000000000..1a8c409439 --- /dev/null +++ b/test/CFrontend/2005-07-28-IncorrectWeakGlobal.c @@ -0,0 +1,5 @@ +// RUN: %llvmgcc %s -S -o - | grep TheGlobal | not grep weak + +extern int TheGlobal; +int foo() { return TheGlobal; } +int TheGlobal = 1; |