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