[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / clang / test / CXX / basic / basic.lookup / basic.lookup.elab / templateid.cpp
blob8126d28562ae7f944c5758728f4b06d2cac97245
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
3 // elaborated-type-specifier:
4 // class-key '::'? nested-name-specifier? 'template'? simple-template-id
5 // Tests that this form is accepted by the compiler but does not follow
6 // the elaborated lookup rules of [basic.lookup.elab].
8 template <typename> class Ident {}; // expected-note {{previous use is here}}
10 namespace A {
11 template <typename> void Ident();
13 class Ident<int> AIdent; // expected-error {{refers to a function template}}
14 class ::Ident<int> AnotherIdent;
17 class Ident<int> GlobalIdent;
18 union Ident<int> GlobalIdent2; // expected-error {{ tag type that does not match }}