aboutsummaryrefslogtreecommitdiff
path: root/test/SemaCXX/constructor-initializer.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2010-04-23 18:46:30 +0000
committerJohn McCall <rjmccall@apple.com>2010-04-23 18:46:30 +0000
commit0d6b1640eb4d1a4a0203235cfdfcdaf3335af36d (patch)
tree54b55e627cc1c6d8f8d143ee0344834dfded3edb /test/SemaCXX/constructor-initializer.cpp
parent055117640dabf88e4e7d35e72c98a5f3bbdac256 (diff)
Recommit my change to how C++ does elaborated type lookups, now with
two bugfixes which fix selfhost and (hopefully) the nightly tests. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@102198 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaCXX/constructor-initializer.cpp')
-rw-r--r--test/SemaCXX/constructor-initializer.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/SemaCXX/constructor-initializer.cpp b/test/SemaCXX/constructor-initializer.cpp
index e256d9f0b3..ff963a9bce 100644
--- a/test/SemaCXX/constructor-initializer.cpp
+++ b/test/SemaCXX/constructor-initializer.cpp
@@ -182,3 +182,10 @@ struct B {
};
}
+
+namespace test1 {
+ struct A {
+ enum Kind { Foo } Kind;
+ A() : Kind(Foo) {}
+ };
+}