From 31d8a3ac1c0e90b03d971a47057d3c1da9f1bf03 Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Wed, 25 Jul 2001 08:05:42 -0400 Subject: [PATCH] moved to dg From-SVN: r44349 --- .../g++.old-deja/g++.ext/instantiate1.C | 34 ------------------- 1 file changed, 34 deletions(-) delete mode 100644 gcc/testsuite/g++.old-deja/g++.ext/instantiate1.C diff --git a/gcc/testsuite/g++.old-deja/g++.ext/instantiate1.C b/gcc/testsuite/g++.old-deja/g++.ext/instantiate1.C deleted file mode 100644 index 8e0fbe073fd..00000000000 --- a/gcc/testsuite/g++.old-deja/g++.ext/instantiate1.C +++ /dev/null @@ -1,34 +0,0 @@ -// Test that 'extern template' suppresses instantiations. -// Special g++ Options: -g -O - -// Ignore the 'ld returned 1' message from collect2. -// excess errors test - XFAIL *-*-* - -template void f (T) { } -extern template void f (int); - -template struct A { - void f (); -}; -template void A::f () { } -extern template struct A; - -// These functions must be defined in a single line, so that, even if -// constants or pointers are placed in the code section (for example, -// on the SH), we still get the same line numbers. - -void test_f_int () { f(42); } // ERROR - not instantiated - -void test_A_int_f () { A a; a.f (); } // ERROR - not instantiated - -void test_f_double () { f (2.0); } // gets bogus error - -void test_A_double_f () { A b; b.f (); } // gets bogus error - -int main () -{ - test_f_int (); - test_A_int_f (); - test_f_double (); - test_A_double_f (); -} -- 2.30.2