summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/spec17.C
blob: 237557684238f7270be6235fef873c7d32973f0b (plain)
1
2
3
4
5
6
7
8
9
10
11
// PR c++/16224

namespace io { 
  template <typename> int foo(); // { dg-error "" }
} 
 
using namespace io; 
 
template<> int foo<int>(); // { dg-error "" }
 
int a = foo<int>();