blob: 688d92d74b8ea954d41d04addb7d73541941370a [file] [log] [blame]
Daniel Dunbara5728872009-12-15 20:14:24 +00001// RUN: %clang_cc1 %s -emit-llvm-only -verify
Eli Friedman4d26b432009-11-16 23:53:01 +00002
3struct A {int a;};
4struct B {float a;};
5struct 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};
17A x;
18C a, b(x), c(0, 2);