OSDN Git Service

PR c++/50372
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.other / linkage4.C
1 // { dg-do assemble  }
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>(); // { dg-error "" "" { target c++98 } } no matching template