testcase for previous patch.

llvm-svn: 46662
This commit is contained in:
Chris Lattner 2008-02-02 04:45:42 +00:00
parent ce6ae5cb06
commit bfc2d8acd9
1 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,13 @@
// RUN: clang %s -emit-llvm | grep internal | count 1
// The two decls for 'a' should merge into one llvm GlobalVariable.
struct s { int x; };
static struct s a;
struct s *ap1 = &a;
static struct s a = {
10
};