1 // PR c++/30659 2 3 extern "C" template A<char> foo(); // { dg-error "forbids|static data|expected|template" } 4