blob: d509b0ebac2898e300b6bd58dec16119038d16e2 [file] [log] [blame]
Daniel Dunbara5728872009-12-15 20:14:24 +00001// RUN: %clang_cc1 %s -emit-llvm-only -verify
Andy Gibbs8e8fb3b2012-10-19 12:44:48 +00002// expected-no-diagnostics
Eli Friedman4d26b432009-11-16 23:53:01 +00003
4struct A {int a;};
5struct B {float a;};
6struct C {
7 union {
8 A a;
9 B b[10];
10 };
11 _Complex float c;
12 int d[10];
13 void (C::*e)();
14 C() : a(), c(), d(), e() {}
15 C(A x) : a(x) {}
16 C(void (C::*x)(), int y) : b(), c(y), e(x) {}
17};
18A x;
19C a, b(x), c(0, 2);