Daniel Dunbar | 0d7b091 | 2009-02-03 21:54:49 +0000 | [diff] [blame] | 1 | // RUN: clang -triple i386-unknown-unknown %s -emit-llvm -o - | grep "<{ i8\* null, i32 1024 }>" |
Nuno Lopes | 5b2c6d9 | 2009-01-30 12:58:18 +0000 | [diff] [blame] | 2 | |
Douglas Gregor | 3498bdb | 2009-01-29 17:44:32 +0000 | [diff] [blame] | 3 | struct foo { |
4 | void *a; | ||||
5 | int b; | ||||
6 | }; | ||||
7 | |||||
8 | union { int i; float f; } u = { }; | ||||
9 | |||||
10 | int main(int argc, char **argv) | ||||
11 | { | ||||
12 | union { int i; float f; } u2 = { }; | ||||
13 | static struct foo foo = { | ||||
14 | .b = 1024, | ||||
15 | }; | ||||
16 | } |