X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.pt%2Fspec17.C;fp=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.pt%2Fspec17.C;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=3e3dd63751a4b13c038dabe7f95625082d12b0e5;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/g++.old-deja/g++.pt/spec17.C b/gcc/testsuite/g++.old-deja/g++.pt/spec17.C deleted file mode 100644 index 3e3dd637..00000000 --- a/gcc/testsuite/g++.old-deja/g++.pt/spec17.C +++ /dev/null @@ -1,44 +0,0 @@ -// Build don't link: - -template -struct Foo { }; - -template -struct BT { }; - -template -struct BT< Foo, Foo > { static const int i = 1; }; - -template -struct BT< T1, Foo > { static const int i = 2; }; - -template -struct BT< Foo, T2 > { static const int i = 3; }; - -template -int foo(Foo, Foo) -{ - return 1; -} - -template -int foo(T1, Foo) -{ - return 2; -} - -template -int foo(Foo, T2) -{ - return 3; -} - -void f() -{ - BT< double, Foo >::i; - BT< Foo, Foo >::i; - BT< Foo, float >::i; - foo(1.0, Foo()); - foo(Foo(), Foo()); - foo(Foo(), 1.0); -}