Daniel Dunbar | a572887 | 2009-12-15 20:14:24 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -emit-llvm-only -verify %s |
Andy Gibbs | 8e8fb3b | 2012-10-19 12:44:48 +0000 | [diff] [blame] | 2 | // expected-no-diagnostics |
Eli Friedman | ebc3317 | 2009-12-08 01:57:53 +0000 | [diff] [blame] | 3 | |
4 | struct A { | ||||
Eli Friedman | 8a850ba | 2010-01-15 20:06:11 +0000 | [diff] [blame] | 5 | A& operator=(A&); |
Eli Friedman | ebc3317 | 2009-12-08 01:57:53 +0000 | [diff] [blame] | 6 | }; |
7 | |||||
8 | struct B { | ||||
Eli Friedman | 8a850ba | 2010-01-15 20:06:11 +0000 | [diff] [blame] | 9 | void operator=(B); |
Eli Friedman | ebc3317 | 2009-12-08 01:57:53 +0000 | [diff] [blame] | 10 | }; |
Eli Friedman | 8a850ba | 2010-01-15 20:06:11 +0000 | [diff] [blame] | 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) { | ||||
Eli Friedman | ebc3317 | 2009-12-08 01:57:53 +0000 | [diff] [blame] | 23 | x = y; |
24 | } | ||||
25 |