summaryrefslogtreecommitdiffstats
path: root/test/Parser/cxx11-type-specifier.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/Parser/cxx11-type-specifier.cpp')
-rw-r--r--test/Parser/cxx11-type-specifier.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/Parser/cxx11-type-specifier.cpp b/test/Parser/cxx11-type-specifier.cpp
index 2e629f3..c66462a 100644
--- a/test/Parser/cxx11-type-specifier.cpp
+++ b/test/Parser/cxx11-type-specifier.cpp
@@ -18,3 +18,7 @@ void f() {
(void) new struct S {}; // expected-error{{'S' can not be defined in a type specifier}}
(void) new enum E { e }; // expected-error{{'E' can not be defined in a type specifier}}
}
+
+// And for trailing-type-specifier-seq
+
+auto f() -> unknown; // expected-error{{unknown type name 'unknown'}}
OpenPOWER on IntegriCloud