Daniel Dunbar | d7d5f02 | 2009-03-24 02:24:46 +0000 | [diff] [blame] | 1 | // RUN: clang-cc -emit-llvm -o - %s | not grep "zeroinitializer" |
Anders Carlsson | b723f75 | 2009-01-04 02:08:04 +0000 | [diff] [blame] | 2 | |
3 | struct s { | ||||
4 | int a; | ||||
5 | }; | ||||
6 | |||||
7 | static void *v; | ||||
8 | |||||
9 | static struct s a; | ||||
10 | |||||
11 | static struct s a = { | ||||
12 | 10 | ||||
13 | }; | ||||
14 | |||||
15 | void *f() | ||||
16 | { | ||||
17 | if (a.a) | ||||
18 | return v; | ||||
19 | } |