aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.old-deja/g++.pt/explicit34.C
blob: 54029eb85448056ac85f0c0490301722cac2eab0 (plain)
1
2
3
4
5
6
7
8
9
10
11
// { dg-do assemble  }
// { dg-options "-fshow-column" }
// GROUPS passed templates
template <class T>
void foo(T t);

template <>
void foo(int) {}; // { dg-message "6:previously declared here" }

template <>
void foo<int>(int) {} // { dg-error "6:redefinition" }