From 70df32a138a72a66c733c8cd9db8dd6ceedf2c57 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 28 Jul 2005 20:18:33 +0000 Subject: [PATCH] New testcase for PR610 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22545 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CFrontend/2005-07-28-IncorrectWeakGlobal.c | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 test/CFrontend/2005-07-28-IncorrectWeakGlobal.c 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;