blob: ce4640a7eddb55c273124f5218e876e36fc68cc8 [file] [log] [blame]
Daniel Dunbara5728872009-12-15 20:14:24 +00001// RUN: %clang_cc1 -emit-llvm-only -verify %s
Eli Friedmanebc33172009-12-08 01:57:53 +00002
3struct A {
Eli Friedman8a850ba2010-01-15 20:06:11 +00004 A& operator=(A&);
Eli Friedmanebc33172009-12-08 01:57:53 +00005};
6
7struct B {
Eli Friedman8a850ba2010-01-15 20:06:11 +00008 void operator=(B);
Eli Friedmanebc33172009-12-08 01:57:53 +00009};
Eli Friedman8a850ba2010-01-15 20:06:11 +000010
11struct C {
12 A a;
13 B b;
14 float c;
15 int (A::*d)();
16 _Complex float e;
17 int f[10];
18 A g[2];
19 B h[2];
20};
21void a(C& x, C& y) {
Eli Friedmanebc33172009-12-08 01:57:53 +000022 x = y;
23}
24