opnsense-src/test/CodeGenCXX/copy-assign-synthesis-3.cpp

25 lines
260 B
C++
Raw Normal View History

2010-01-01 05:34:51 -05:00
// RUN: %clang_cc1 -emit-llvm-only -verify %s
2009-12-15 13:49:47 -05:00
struct A {
2010-01-23 06:10:26 -05:00
A& operator=(A&);
2009-12-15 13:49:47 -05:00
};
struct B {
2010-01-23 06:10:26 -05:00
void operator=(B);
};
struct C {
2009-12-15 13:49:47 -05:00
A a;
2010-01-23 06:10:26 -05:00
B b;
float c;
int (A::*d)();
_Complex float e;
int f[10];
A g[2];
B h[2];
2009-12-15 13:49:47 -05:00
};
2010-01-23 06:10:26 -05:00
void a(C& x, C& y) {
2009-12-15 13:49:47 -05:00
x = y;
}