summaryrefslogtreecommitdiffstats
path: root/test/CodeGenCXX/copy-assign-synthesis-3.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGenCXX/copy-assign-synthesis-3.cpp')
-rw-r--r--test/CodeGenCXX/copy-assign-synthesis-3.cpp20
1 files changed, 13 insertions, 7 deletions
diff --git a/test/CodeGenCXX/copy-assign-synthesis-3.cpp b/test/CodeGenCXX/copy-assign-synthesis-3.cpp
index 73c2261..ce4640a 100644
--- a/test/CodeGenCXX/copy-assign-synthesis-3.cpp
+++ b/test/CodeGenCXX/copy-assign-synthesis-3.cpp
@@ -1,18 +1,24 @@
// RUN: %clang_cc1 -emit-llvm-only -verify %s
struct A {
- A& operator=(const A&);
+ A& operator=(A&);
};
struct B {
+ void operator=(B);
+};
+
+struct C {
A a;
- float b;
- int (A::*c)();
- _Complex float d;
- int e[10];
- A f[2];
+ B b;
+ float c;
+ int (A::*d)();
+ _Complex float e;
+ int f[10];
+ A g[2];
+ B h[2];
};
-void a(B& x, B& y) {
+void a(C& x, C& y) {
x = y;
}
OpenPOWER on IntegriCloud