summaryrefslogtreecommitdiffstats
path: root/clang/test
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2010-01-15 20:06:11 +0000
committerEli Friedman <eli.friedman@gmail.com>2010-01-15 20:06:11 +0000
commitcab014721bcd634cec89761255ca2e9c821f6a15 (patch)
tree94829c362bd5f1977cda7ecfc8719258bdf63a6c /clang/test
parent8433d1da5e1958de8de55a0623a10399608d01d9 (diff)
downloadbcm5719-llvm-cab014721bcd634cec89761255ca2e9c821f6a15.tar.gz
bcm5719-llvm-cab014721bcd634cec89761255ca2e9c821f6a15.zip
Fix a couple bugs in copy assignment operator synthesis.
llvm-svn: 93546
Diffstat (limited to 'clang/test')
-rw-r--r--clang/test/CodeGenCXX/copy-assign-synthesis-3.cpp20
1 files changed, 13 insertions, 7 deletions
diff --git a/clang/test/CodeGenCXX/copy-assign-synthesis-3.cpp b/clang/test/CodeGenCXX/copy-assign-synthesis-3.cpp
index 73c2261cddc..ce4640a7edd 100644
--- a/clang/test/CodeGenCXX/copy-assign-synthesis-3.cpp
+++ b/clang/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