OSDN Git Service

PR c++/49855
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / template / crash39.C
1 // PR c++/22405
2
3 template <typename T> void foo(T &arg) { // { dg-error "declared" }
4   arg+=1;
5 }
6
7 template <typename T> void foo(T &arg) { // { dg-error "redefinition" }
8   arg+=2;
9 }
10
11 template void foo(float &arg);