Chris Lattner | e66b65c | 2008-02-06 01:42:25 +0000 | [diff] [blame] | 1 | // RUN: clang < %s -emit-llvm | grep internal | count 1 |
Chris Lattner | 3ea740e | 2008-02-02 04:45:42 +0000 | [diff] [blame] | 2 | |
3 | // The two decls for 'a' should merge into one llvm GlobalVariable. | ||||
4 | |||||
5 | struct s { int x; }; | ||||
6 | static struct s a; | ||||
7 | |||||
8 | struct s *ap1 = &a; | ||||
9 | |||||
10 | static struct s a = { | ||||
11 | 10 | ||||
12 | }; | ||||
13 |