| 1 | // RUN: %clang_cc1 -emit-llvm-only -verify %s |
|---|---|
| 2 | // expected-no-diagnostics |
| 3 | |
| 4 | struct A { |
| 5 | A& operator=(A&); |
| 6 | }; |
| 7 | |
| 8 | struct B { |
| 9 | void operator=(B); |
| 10 | }; |
| 11 | |
| 12 | struct 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 | }; |
| 22 | void a(C& x, C& y) { |
| 23 | x = y; |
| 24 | } |
| 25 | |
| 26 |