Eli Friedman | 4d26b43 | 2009-11-16 23:53:01 +0000 | [diff] [blame] | 1 | // RUN: clang-cc %s -emit-llvm-only -verify |
2 | |||||
3 | struct A {int a;}; | ||||
4 | struct B {float a;}; | ||||
5 | struct C { | ||||
6 | union { | ||||
7 | A a; | ||||
8 | B b[10]; | ||||
9 | }; | ||||
10 | _Complex float c; | ||||
11 | int d[10]; | ||||
12 | void (C::*e)(); | ||||
13 | C() : a(), c(), d(), e() {} | ||||
14 | C(A x) : a(x) {} | ||||
15 | C(void (C::*x)(), int y) : b(), c(y), e(x) {} | ||||
16 | }; | ||||
17 | A x; | ||||
18 | C a, b(x), c(0, 2); |