gcc/testsuite/g++.old-deja/g++.other/linkage4.C
raw| 1 | // { dg-do assemble } |
| 2 | // Origin: Mark Mitchell <[email protected]> |
| 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>(); // { dg-error "" "" { target { ! c++11 } } } no matching template |