summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/constructor.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2008-12-15 21:24:18 +0000
committerDouglas Gregor <dgregor@apple.com>2008-12-15 21:24:18 +0000
commit1349b457eee7240bb8022483db59d7edc87d6b47 (patch)
treeed4883aeac904e97986d7c8aa05d1e3cb9486eab /clang/test/SemaCXX/constructor.cpp
parent1c731fa86f493d08958a06a90e5853b3580f40a4 (diff)
downloadbcm5719-llvm-1349b457eee7240bb8022483db59d7edc87d6b47.tar.gz
bcm5719-llvm-1349b457eee7240bb8022483db59d7edc87d6b47.zip
Place constructors and destructors into the DeclContext of the class,
just like all other members, and remove the special variables in CXXRecordDecl to store them. This eliminates a lot of special-case code for constructors and destructors, including ActOnConstructor/ActOnDeclarator and special lookup rules in LookupDecl. The result is far more uniform and manageable. Diagnose the redeclaration of member functions. llvm-svn: 61048
Diffstat (limited to 'clang/test/SemaCXX/constructor.cpp')
-rw-r--r--clang/test/SemaCXX/constructor.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/SemaCXX/constructor.cpp b/clang/test/SemaCXX/constructor.cpp
index 4c4d67fa872..786d1451e62 100644
--- a/clang/test/SemaCXX/constructor.cpp
+++ b/clang/test/SemaCXX/constructor.cpp
@@ -21,3 +21,9 @@ class Foo {
Foo::Foo(const Foo&) { }
+typedef struct {
+ int version;
+} Anon;
+extern const Anon anon;
+extern "C" const Anon anon2;
+
OpenPOWER on IntegriCloud