blob: 5469d113357e02b56bbc57eea40028ba1b7c97ba [file] [log] [blame]
Daniel Dunbara5728872009-12-15 20:14:24 +00001// RUN: %clang_cc1 -emit-llvm-only -verify %s
Andy Gibbs8e8fb3b2012-10-19 12:44:48 +00002// expected-no-diagnostics
Eli Friedmanebc33172009-12-08 01:57:53 +00003
4struct A {
Eli Friedman8a850ba2010-01-15 20:06:11 +00005 A& operator=(A&);
Eli Friedmanebc33172009-12-08 01:57:53 +00006};
7
8struct B {
Eli Friedman8a850ba2010-01-15 20:06:11 +00009 void operator=(B);
Eli Friedmanebc33172009-12-08 01:57:53 +000010};
Eli Friedman8a850ba2010-01-15 20:06:11 +000011
12struct C {
13 A a;
14 B b;
15 float c;
16 int (A::*d)();
17 _Complex float e;
18 int f[10];
19 A g[2];
20 B h[2];
21};
22void a(C& x, C& y) {
Eli Friedmanebc33172009-12-08 01:57:53 +000023 x = y;
24}
25