Wattributes-10.c: Add -fno-common option on hppa*-*-hpux*.
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / explicit34.C
blob54029eb85448056ac85f0c0490301722cac2eab0
1 // { dg-do assemble  }
2 // { dg-options "-fshow-column" }
3 // GROUPS passed templates
4 template <class T>
5 void foo(T t);
7 template <>
8 void foo(int) {}; // { dg-message "6:previously declared here" }
10 template <>
11 void foo<int>(int) {} // { dg-error "6:redefinition" }