Shih-wei Liao | f8fd82b | 2010-02-10 11:10:31 -0800 | [diff] [blame^] | 1 | // RUN: %clang_cc1 -emit-llvm-only -verify %s |
2 | |||||
3 | struct A { | ||||
4 | A& operator=(A&); | ||||
5 | }; | ||||
6 | |||||
7 | struct B { | ||||
8 | void operator=(B); | ||||
9 | }; | ||||
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) { | ||||
22 | x = y; | ||||
23 | } | ||||
24 |