X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fg%2B%2B.dg%2Ftemplate%2Flocal1.C;fp=gcc%2Ftestsuite%2Fg%2B%2B.dg%2Ftemplate%2Flocal1.C;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=f0897d4107dcce839fef18d4996046aac544eda0;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/g++.dg/template/local1.C b/gcc/testsuite/g++.dg/template/local1.C deleted file mode 100644 index f0897d41..00000000 --- a/gcc/testsuite/g++.dg/template/local1.C +++ /dev/null @@ -1,25 +0,0 @@ -// PR c++/4286: We were crashing when trying to set up the class bindings in -// g(), because xref wanted the mangled name, which breaks inside a template. - -// Of course, the offending code is actually ill-formed anyway, so check -// for the error. Also check that it's formatted properly. - -struct A -{ - template void f(); -}; - -template void A::f() -{ - struct B - { - void g() {} - static int x; // { dg-error "static.*`int A::f\\(\\)::B::x'" "" } - }; -} - -int main () -{ - A a; - a.f (); -}