X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.pt%2Fcrash8.C;fp=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.pt%2Fcrash8.C;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=deff42dba892c1cf9eda3f5b26b77cbd5b0a365e;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/g++.old-deja/g++.pt/crash8.C b/gcc/testsuite/g++.old-deja/g++.pt/crash8.C deleted file mode 100644 index deff42db..00000000 --- a/gcc/testsuite/g++.old-deja/g++.pt/crash8.C +++ /dev/null @@ -1,34 +0,0 @@ -// Build don't link: - -template -class TestClass1 { -public: - TestClass1() { } -}; - -template -class TestClass2 { -public: - TestClass2() { } - T operator()(int) { } -}; - -template -void doit(T x) { - TestClass1 q1; - q1 = TestClass1(); - TestClass2 q2; - q2 = TestClass2(); - - TestClass1 p1; - p1 = TestClass1(); // ERROR - template used as expression - - TestClass2 p2; - p2 = TestClass2(); // ERROR - template used as expression -} - -int main() { - double x; - doit(x); -} -