aboutsummaryrefslogtreecommitdiff
path: root/test/SemaCXX/constructor.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-07-06 16:40:48 +0000
committerDouglas Gregor <dgregor@apple.com>2009-07-06 16:40:48 +0000
commit675431d5a8b6aed1bd7322aa2da5cd8eb0ae76b7 (patch)
treeb6fb651e12da1397a3646795309f9a3b8a33e388 /test/SemaCXX/constructor.cpp
parentc1daae3d17fa98a7d8bcc6089083c68e7f368525 (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.cpp25
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() {}