diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-07-06 16:40:48 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-07-06 16:40:48 +0000 |
commit | 675431d5a8b6aed1bd7322aa2da5cd8eb0ae76b7 (patch) | |
tree | b6fb651e12da1397a3646795309f9a3b8a33e388 /test/SemaCXX/constructor.cpp | |
parent | c1daae3d17fa98a7d8bcc6089083c68e7f368525 (diff) |
Parsing fix for out-of-line constructors, from Piotr Rak
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@74833 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaCXX/constructor.cpp')
-rw-r--r-- | test/SemaCXX/constructor.cpp | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/test/SemaCXX/constructor.cpp b/test/SemaCXX/constructor.cpp index 8f289a2b1e..ec28e7e045 100644 --- a/test/SemaCXX/constructor.cpp +++ b/test/SemaCXX/constructor.cpp @@ -58,3 +58,28 @@ void y() { a z; z.b(x); } } + +namespace A { + struct S { + S(); + S(int); + void f1(); + void f2(); + operator int (); + ~S(); + }; +} + +A::S::S() {} + +void A::S::f1() {} + +struct S {}; + +A::S::S(int) {} + +void A::S::f2() {} + +A::S::operator int() { return 1; } + +A::S::~S() {} |