xref: /minix3/external/bsd/llvm/dist/clang/test/CXX/temp/temp.decls/temp.mem/p2.cpp (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2 
3 template <typename>
4 void quux();
5 
fun()6 void fun() {
7   struct foo {
8     template <typename> struct bar {};  // expected-error{{templates cannot be declared inside of a local class}}
9     template <typename> void baz() {}   // expected-error{{templates cannot be declared inside of a local class}}
10     template <typename> void qux();     // expected-error{{templates cannot be declared inside of a local class}}
11   };
12 }
13