X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fgcc.dg%2Fcpp%2Fdirectiv.c;fp=gcc%2Ftestsuite%2Fgcc.dg%2Fcpp%2Fdirectiv.c;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=cbf4ac6501c65a0fb6a39d75d4cc6ac6504dbba6;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/gcc.dg/cpp/directiv.c b/gcc/testsuite/gcc.dg/cpp/directiv.c deleted file mode 100644 index cbf4ac65..00000000 --- a/gcc/testsuite/gcc.dg/cpp/directiv.c +++ /dev/null @@ -1,40 +0,0 @@ -/* Copyright (C) 2000 Free Software Foundation, Inc. */ - -/* { dg-do preprocess } */ -/* { dg-options -pedantic } */ - -/* Tests general directive syntax, and directive error recovery. */ - - -/* Test directive name is not expanded. */ -#define foo define -#foo EMPTY /* { dg-error "invalid" } */ - -/* Test # must be first on line. */ -EMPTY #define bar -#ifdef bar -#error bar is defined -#endif - -/* Test form feed and vertical tab warn pedantically, see 6.10 - paragraph 5. Tab is OK. */ -# define something /* { dg-warning "form feed" } */ -#define something_else /* { dg-warning "vertical tab" } */ - #define some thing /* Tab OK, as is form feed before #. */ - -/* Our friend the null directive OK? */ -# - -/* Check that directives always start a line, even if in middle of - macro expansion. */ -#define func(x) x -func (2 /* { dg-error "unterminated" "" } */ -#define foobar /* { dg-error "directives may not" } */ - -/* Check newlines end directives, even in function-like macro - invocations. 6.10 paragraph 1. - - Note that the #if is still treated as a conditional, so there - should be no errors about #endif without #if. */ -#if func ( /* { dg-error "unterminated argument" } */ -#endif