diff options
author | rdivacky <rdivacky@FreeBSD.org> | 2010-01-23 11:10:26 +0000 |
---|---|---|
committer | rdivacky <rdivacky@FreeBSD.org> | 2010-01-23 11:10:26 +0000 |
commit | 2fce988e86bc01829142e4362d4eff1af0925147 (patch) | |
tree | c69d3f4f13d508570bb5257a6aea735f88bdf09c /test/CodeGenCXX/copy-assign-synthesis-3.cpp | |
parent | a3fa5c7f1b5e2ba4d6ec033dc0e2376326b05824 (diff) | |
download | FreeBSD-src-2fce988e86bc01829142e4362d4eff1af0925147.zip FreeBSD-src-2fce988e86bc01829142e4362d4eff1af0925147.tar.gz |
Update clang to r94309.
Diffstat (limited to 'test/CodeGenCXX/copy-assign-synthesis-3.cpp')
-rw-r--r-- | test/CodeGenCXX/copy-assign-synthesis-3.cpp | 20 |
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; } |