OSDN Git Service

fix
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.other / linkage4.C
1 // Build don't link:
2 // Origin: Mark Mitchell <mark@codesourcery.com>
3
4 static int strlen (const char*) { return 0; }
5
6 template <int (*)(const char*)>
7 void f () {}
8
9 // Check that the strlen declaration here is given internal linkage by
10 // using it as a non-type template argument, and expecting an error.
11 template void f<strlen>(); // ERROR - no matching template