X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.bugs%2F900428_02.C;fp=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.bugs%2F900428_02.C;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=9da709fdc8199ac27150ad8f97cf5567acb024d5;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/g++.old-deja/g++.bugs/900428_02.C b/gcc/testsuite/g++.old-deja/g++.bugs/900428_02.C deleted file mode 100644 index 9da709fd..00000000 --- a/gcc/testsuite/g++.old-deja/g++.bugs/900428_02.C +++ /dev/null @@ -1,27 +0,0 @@ -// g++ 1.37.1 bug 900428_02 - -// g++ fails to issue either errors or warnings (even with -pedantic) for -// attempts to perform either pre or post increment or decrement operations -// on variables which have either pointer-to-void types or pointer-to-function -// types. - -// cfront 2.0 passes this test. - -// keywords: pointer arithmetic, increment, decrement -// Build don't link: - -void *vp; -void (*fp) (); - -void test () -{ - vp++; /* ERROR - */ - ++vp; /* ERROR - */ - vp--; /* ERROR - */ - --vp; /* ERROR - */ - - fp++; /* ERROR - */ - ++fp; /* ERROR - */ - fp--; /* ERROR - */ - --fp; /* ERROR - */ -}