diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2009-11-26 07:40:08 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2009-11-26 07:40:08 +0000 |
commit | 84a7e347bfabdb149cbe1553d0884b19ff555862 (patch) | |
tree | 46acdb3a32c6a1045afbf22621fdead505496f7f /clang/test/CodeGenCXX/copy-assign-synthesis-2.cpp | |
parent | 2350e0c3ba7f6c8cda1eaaa93c3427832e3ea82b (diff) | |
download | bcm5719-llvm-84a7e347bfabdb149cbe1553d0884b19ff555862.tar.gz bcm5719-llvm-84a7e347bfabdb149cbe1553d0884b19ff555862.zip |
Simplify and fix up the handling of implicit constructors, copy assignment
operators, and destructors. Avoids generating declarations/definitions of
trivial constructors/destructors, and makes sure the trivial copy assignment
operator is generated when necessary.
llvm-svn: 89943
Diffstat (limited to 'clang/test/CodeGenCXX/copy-assign-synthesis-2.cpp')
-rw-r--r-- | clang/test/CodeGenCXX/copy-assign-synthesis-2.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/test/CodeGenCXX/copy-assign-synthesis-2.cpp b/clang/test/CodeGenCXX/copy-assign-synthesis-2.cpp new file mode 100644 index 00000000000..60d52f57de9 --- /dev/null +++ b/clang/test/CodeGenCXX/copy-assign-synthesis-2.cpp @@ -0,0 +1,4 @@ +// RUN: clang-cc -emit-llvm %s -o - | FileCheck %s +struct A {}; +A& (A::*x)(const A&) = &A::operator=; +// CHECK: define linkonce_odr %struct.A* @_ZN1AaSERKS_ |