diff options
Diffstat (limited to 'test/CXX/temp/temp.decls/temp.mem/p2.cpp')
-rw-r--r-- | test/CXX/temp/temp.decls/temp.mem/p2.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/CXX/temp/temp.decls/temp.mem/p2.cpp b/test/CXX/temp/temp.decls/temp.mem/p2.cpp index c24d5a9b50de2..feeb362e34b40 100644 --- a/test/CXX/temp/temp.decls/temp.mem/p2.cpp +++ b/test/CXX/temp/temp.decls/temp.mem/p2.cpp @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 -fsyntax-only -verify %s +// RUN: %clang_cc1 -std=c++14 -fsyntax-only -verify %s template <typename> void quux(); @@ -8,5 +8,7 @@ void fun() { template <typename> struct bar {}; // expected-error{{templates cannot be declared inside of a local class}} template <typename> void baz() {} // expected-error{{templates cannot be declared inside of a local class}} template <typename> void qux(); // expected-error{{templates cannot be declared inside of a local class}} + template <typename> using corge = int; // expected-error{{templates cannot be declared inside of a local class}} + template <typename T> static T grault; // expected-error{{static data member}} expected-error{{templates cannot be declared inside of a local class}} }; } |