aboutsummaryrefslogtreecommitdiff
path: root/test/CXX/class/class.nested.type/p1.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/CXX/class/class.nested.type/p1.cpp')
-rw-r--r--test/CXX/class/class.nested.type/p1.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/CXX/class/class.nested.type/p1.cpp b/test/CXX/class/class.nested.type/p1.cpp
index 33bf4b4473e5..61ccd281ca93 100644
--- a/test/CXX/class/class.nested.type/p1.cpp
+++ b/test/CXX/class/class.nested.type/p1.cpp
@@ -1,3 +1,5 @@
+// RUN: clang-cc -fsyntax-only -verify %s
+
class X {
public:
typedef int I;
@@ -8,4 +10,4 @@ public:
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
+X::I e;