aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2009-06-24 00:30:37 +0000
committerAnders Carlsson <andersca@mac.com>2009-06-24 00:30:37 +0000
commit3aa518b5ff0aaf4f095bcfb4bf8f2299250ca188 (patch)
tree4b2c28a2fd7afa2af805091f30dacc9ad120c35c
parente98da2e7af16056a53db327b520d4b53b4be5e7a (diff)
Add test for [class.nested.type]p1
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@74033 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/CXX/class/class.nested.type/p1.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/CXX/class/class.nested.type/p1.cpp b/test/CXX/class/class.nested.type/p1.cpp
new file mode 100644
index 0000000000..33bf4b4473
--- /dev/null
+++ b/test/CXX/class/class.nested.type/p1.cpp
@@ -0,0 +1,11 @@
+class X {
+public:
+ typedef int I;
+ class Y { };
+ I a;
+};
+
+I b; // expected-error{{unknown type name 'I'}}
+Y c; // expected-error{{unknown type name 'Y'}}
+X::Y d;
+X::I e; \ No newline at end of file