aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.gb/sig14.C
diff options
context:
space:
mode:
authorNo Author <no-author@gcc.gnu.org>2001-03-12 13:26:30 +0000
committerNo Author <no-author@gcc.gnu.org>2001-03-12 13:26:30 +0000
commitbf7b508bcb8a860d7925355a3d503b1034be3d63 (patch)
tree4d14d867da9b19e815a228a6e71c606e35771d86 /gcc/testsuite/g++.old-deja/g++.gb/sig14.C
parentb1143e51359be3b1151d892970f43ae67dee64d2 (diff)
This commit was manufactured by cvs2svn to create tagprereleases/gcc-2.95.3-test5
'gcc-2_95_3-test5'. From-SVN: r40410
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.gb/sig14.C')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.gb/sig14.C55
1 files changed, 0 insertions, 55 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.gb/sig14.C b/gcc/testsuite/g++.old-deja/g++.gb/sig14.C
deleted file mode 100644
index 6ce1d02d1bf..00000000000
--- a/gcc/testsuite/g++.old-deja/g++.gb/sig14.C
+++ /dev/null
@@ -1,55 +0,0 @@
-// Special g++ Options: -fhandle-signatures
-// GROUPS passed gb sigptr assignment initialization
-// Test assignment of/initialization with different type signature pointer.
-
-extern "C"
-{
- int printf (char *, ...);
-}
-
-class C
-{
-public:
- int f (void) { return 1; }
- int g (int) { return 2; }
-};
-
-signature S
-{
- int f (void);
- int g (int);
-};
-
-signature T
-{
- int f (void);
-};
-
-signature U
-{
- int g (int);
-};
-
-C a;
-S * p1 = &a;
-T * q1 = p1;
-U * r1 = p1;
-
-int main (void)
-{
- C a;
- S * p2 = &a;
- T * q2 = p2;
- U * r2 = p2;
- T * q3;
- U * r3;
-
- q3 = p2;
- r3 = p2;
-
- if (q1->f () + q2->f () + q3->f () == 3
- && r1->g (0) + r2->g (0) + r3->g (0) == 6)
- printf ("PASS\n");
-
- return 0;
-}