diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.gb/sig15.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.gb/sig15.C | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.gb/sig15.C b/gcc/testsuite/g++.old-deja/g++.gb/sig15.C deleted file mode 100644 index f0ae52e9ea7..00000000000 --- a/gcc/testsuite/g++.old-deja/g++.gb/sig15.C +++ /dev/null @@ -1,35 +0,0 @@ -// Special g++ Options: -fhandle-signatures -// GROUPS passed gb sigptr cast -// Test casting a signature pointer to a class pointer. - -extern "C" -{ - int printf (char *, ...); -} - -class C -{ -public: - char * f (void) { return "PA"; } - char * g (int) { return "SS"; } -}; - -signature S -{ - char * f (void); - char * g (int); -}; - -int main (void) -{ - C a; - S * p; - C * q; - - p = &a; - q = (C *) p; - - printf ("%s%s\n", q->f (), q->g (0)); - - return 0; -} |