diff options
author | Jason Merrill <jason@gcc.gnu.org> | 2001-07-25 08:05:42 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2001-07-25 08:05:42 -0400 |
commit | 31d8a3ac1c0e90b03d971a47057d3c1da9f1bf03 (patch) | |
tree | 6bc06db5b5ac25456720a9e10b4c98cc68631277 | |
parent | 50011802c0fbf772e46e2fa4ee1faca85b9b06e9 (diff) | |
download | gcc-31d8a3ac1c0e90b03d971a47057d3c1da9f1bf03.zip gcc-31d8a3ac1c0e90b03d971a47057d3c1da9f1bf03.tar.gz gcc-31d8a3ac1c0e90b03d971a47057d3c1da9f1bf03.tar.bz2 |
moved to dg
From-SVN: r44349
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.ext/instantiate1.C | 34 |
1 files changed, 0 insertions, 34 deletions
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 8e0fbe0..0000000 --- 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 <class T> void f (T) { } -extern template void f (int); - -template <class T> struct A { - void f (); -}; -template <class T> void A<T>::f () { } -extern template struct A<int>; - -// 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<int> a; a.f (); } // ERROR - not instantiated - -void test_f_double () { f (2.0); } // gets bogus error - -void test_A_double_f () { A<double> b; b.f (); } // gets bogus error - -int main () -{ - test_f_int (); - test_A_int_f (); - test_f_double (); - test_A_double_f (); -} |