diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.mike/p7868.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.mike/p7868.C | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.mike/p7868.C b/gcc/testsuite/g++.old-deja/g++.mike/p7868.C deleted file mode 100644 index d79e2aa3de2..00000000000 --- a/gcc/testsuite/g++.old-deja/g++.mike/p7868.C +++ /dev/null @@ -1,21 +0,0 @@ -// Build don't link: -// prms-id: 7868 - -struct DIAGTYP { -}; -struct DIAGTYP1 { - struct DIAGTYP; // ERROR - forward declaration - void bar() { new struct DIAGTYP; } // ERROR - undefined - void foo() { new struct DIAGTYP1; } -}; - -int main () { - struct DIAGTYP; // ERROR - forward declaration - struct DIAGTYP *lerror_desc; - lerror_desc= new struct DIAGTYP; // ERROR - undefined -} - -void foo () { - struct DIAGTYP *lerror_desc; - lerror_desc= new struct DIAGTYP; -} |