1 // { dg-do assemble } 2 // Origin: Mark Mitchell <mark@codesourcery.com> 3 strlen(const char *)4static int strlen (const char*) { return 0; } 5 6 template <int (*)(const char*)> f()7void 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 12