2009-12-16 04:14:24 +08:00
|
|
|
// RUN: %clang_cc1 -emit-llvm-only -verify %s
|
2009-12-08 09:57:53 +08:00
|
|
|
|
|
|
|
struct A {
|
2010-01-16 04:06:11 +08:00
|
|
|
A& operator=(A&);
|
2009-12-08 09:57:53 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
struct B {
|
2010-01-16 04:06:11 +08:00
|
|
|
void operator=(B);
|
|
|
|
};
|
|
|
|
|
|
|
|
struct C {
|
2009-12-08 09:57:53 +08:00
|
|
|
A a;
|
2010-01-16 04:06:11 +08:00
|
|
|
B b;
|
|
|
|
float c;
|
|
|
|
int (A::*d)();
|
|
|
|
_Complex float e;
|
|
|
|
int f[10];
|
|
|
|
A g[2];
|
|
|
|
B h[2];
|
2009-12-08 09:57:53 +08:00
|
|
|
};
|
2010-01-16 04:06:11 +08:00
|
|
|
void a(C& x, C& y) {
|
2009-12-08 09:57:53 +08:00
|
|
|
x = y;
|
|
|
|
}
|
|
|
|
|