brintos

brintos / llvm-project-archived public Read only

0
0
Text · 639 B · 8126d28 Raw
19 lines · cpp
1// RUN: %clang_cc1 -fsyntax-only -verify %s2 3// elaborated-type-specifier:4//   class-key '::'? nested-name-specifier? 'template'? simple-template-id5// Tests that this form is accepted by the compiler but does not follow6// the elaborated lookup rules of [basic.lookup.elab].7 8template <typename> class Ident {}; // expected-note {{previous use is here}}9 10namespace A {11  template <typename> void Ident();12 13  class Ident<int> AIdent; // expected-error {{refers to a function template}}14  class ::Ident<int> AnotherIdent;15}16 17class Ident<int> GlobalIdent;18union Ident<int> GlobalIdent2; // expected-error {{ tag type that does not match }}19