summaryrefslogtreecommitdiff
path: root/clang/test/CXX/temp/temp.spec/temp.expl.spec/p3.cpp
blob: 84841cb60f4d9a74e62a32dadb16f18742ce07c0 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// RUN: %clang_cc1 -fsyntax-only -verify %s

namespace N {
  template<class T> class X;
}

template<> class X<int> { /* ... */ };	// expected-error {{non-template class 'X'}}

namespace N {
  
template<> class X<char*> { /* ... */ };	// OK: X is a template
  
}