diff options
author | Douglas Gregor <dgregor@apple.com> | 2008-12-15 21:24:18 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2008-12-15 21:24:18 +0000 |
commit | 1349b457eee7240bb8022483db59d7edc87d6b47 (patch) | |
tree | ed4883aeac904e97986d7c8aa05d1e3cb9486eab /clang/test/SemaCXX/constructor.cpp | |
parent | 1c731fa86f493d08958a06a90e5853b3580f40a4 (diff) | |
download | bcm5719-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.cpp | 6 |
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; + |