aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/local6.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.pt/local6.C')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.pt/local6.C24
1 files changed, 0 insertions, 24 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/local6.C b/gcc/testsuite/g++.old-deja/g++.pt/local6.C
deleted file mode 100644
index d3f2f4c6f06..00000000000
--- a/gcc/testsuite/g++.old-deja/g++.pt/local6.C
+++ /dev/null
@@ -1,24 +0,0 @@
-extern "C" void abort();
-
-template <class T>
-int f(T)
-{
- struct S1 {
- virtual int foo() { return 1; }
- };
-
- struct S2 : public S1 {
- int foo() { return 2; }
- };
-
- S1* s2 = new S2;
-
- return s2->foo();
-}
-
-
-int main()
-{
- if (f(3) != 2)
- abort();
-}