From: Chris Lattner Date: Thu, 28 Jul 2005 20:18:33 +0000 (+0000) Subject: New testcase for PR610 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=70df32a138a72a66c733c8cd9db8dd6ceedf2c57;p=oota-llvm.git New testcase for PR610 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22545 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CFrontend/2005-07-28-IncorrectWeakGlobal.c b/test/CFrontend/2005-07-28-IncorrectWeakGlobal.c new file mode 100644 index 00000000000..1a8c409439c --- /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;