X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fgcc.dg%2Fcpp%2Fmacro6.c;fp=gcc%2Ftestsuite%2Fgcc.dg%2Fcpp%2Fmacro6.c;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=0fe52ee43f20117b13081b6a1c329062c965cf3e;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/gcc.dg/cpp/macro6.c b/gcc/testsuite/gcc.dg/cpp/macro6.c deleted file mode 100644 index 0fe52ee4..00000000 --- a/gcc/testsuite/gcc.dg/cpp/macro6.c +++ /dev/null @@ -1,32 +0,0 @@ -/* { dg-do run } */ - -/* Test that, when a macro expansion spills into the source file, we - expand macros we suck in from there, as the standard clearly states - they are not nested. - - Submitter: Neil Booth, with minor modifications to the originals. 3 - Dec 2000. - Source: PR 962 and Thomas Pornin. */ - -extern void abort (void); -int e = 10, f = 100; - -#define e(n) 4 + n -#define X e -#define f(x) x -#define h(x) x + f - -int -main () -{ - if (X(X) != 14) /* Should expand to "4 + e". */ - abort (); - - if (X(X(f)) != 108) /* Should expand to "4 + 4 + f". */ - abort (); - - if (h(e)(h(e)) != 120) /* Should expand to "e + e + f". */ - abort (); - - return 0; -}