From 078c963a310048f84d1d74d7ed09fd610238d87a Mon Sep 17 00:00:00 2001 From: Eli Friedman Date: Tue, 27 May 2008 04:58:01 +0000 Subject: Add a more reliable check for whether a static declaration has already been used. In preparation for the fix to PR2360, but also a minor bug in its own right. llvm-svn: 51583 --- clang/test/CodeGen/static-forward-decl.c | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 clang/test/CodeGen/static-forward-decl.c (limited to 'clang/test/CodeGen/static-forward-decl.c') diff --git a/clang/test/CodeGen/static-forward-decl.c b/clang/test/CodeGen/static-forward-decl.c new file mode 100644 index 00000000000..8e0825cb6c8 --- /dev/null +++ b/clang/test/CodeGen/static-forward-decl.c @@ -0,0 +1,5 @@ +// RUN: clang %s -emit-llvm -o - -triple=i686-apple-darwin9 | grep "global i32 10" + +static int i; +int*j=&i; +static int i = 10; -- cgit v1.2.3