]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/CXX/temp/temp.decls/temp.mem/p2.cpp
Vendor import of clang release_34 branch r197841 (effectively, 3.4 RC3):
[FreeBSD/FreeBSD.git] / test / CXX / temp / temp.decls / temp.mem / p2.cpp
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2
3 template <typename>
4 void quux();
5
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 }