Debian Codegraph @

clang/test/CXX/temp/temp.spec/temp.expl.spec/p3.cpp

raw
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2 // RUN: %clang_cc1 -fsyntax-only -verify -std=c++98 %s
3 // RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s
4
5 namespace N {
6 template<class T> class X; // expected-note {{'N::X' declared here}}
7 }
8
9 template<> class X<int> { /* ... */ }; // expected-error {{no template named 'X'; did you mean 'N::X'?}}
10
11 namespace N {
12
13 template<> class X<char*> { /* ... */ }; // OK: X is a template
14
15 }