diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.pt/explicit57.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.pt/explicit57.C | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/explicit57.C b/gcc/testsuite/g++.old-deja/g++.pt/explicit57.C deleted file mode 100644 index d1f0ea870dc..00000000000 --- a/gcc/testsuite/g++.old-deja/g++.pt/explicit57.C +++ /dev/null @@ -1,42 +0,0 @@ -extern "C" void abort (); - -int a = 0; - -template <class T> void f (); -template <class T> void g () -{ - if (a) - abort (); -} - -template <> void g<char> () -{ -} - -template <class T> class C -{ - public: - void ff () { f<T> (); } - void gg () { g<T> (); } -}; - -template <class T> void f () -{ - if (a) - abort (); -} - -template <> void f<char> () -{ -} - -int main () -{ - C<int> c; - c.ff(); - c.gg(); - a = 1; - C<char> d; - d.ff(); - d.gg(); -} |