diff options
author | Neil Booth <neil@cat.daikokuya.demon.co.uk> | 2001-07-26 06:02:47 +0000 |
---|---|---|
committer | Neil Booth <neil@gcc.gnu.org> | 2001-07-26 06:02:47 +0000 |
commit | cef0d199d24feb707b86db0ad2991823b276cd1a (patch) | |
tree | caee9edc9501482aa583e1040604f6f2a4d52aba /gcc/testsuite/gcc.dg/cpp/extratokens.c | |
parent | 2e824adbe44a946c91c1ff94815963fd2bec93be (diff) | |
download | gcc-cef0d199d24feb707b86db0ad2991823b276cd1a.zip gcc-cef0d199d24feb707b86db0ad2991823b276cd1a.tar.gz gcc-cef0d199d24feb707b86db0ad2991823b276cd1a.tar.bz2 |
cpphash.h (struct_lexer_state): Delete was_skipping.
* cpphash.h (struct_lexer_state): Delete was_skipping.
Move skipping here from struct cpp_reader.
* cpplex.c (parse_identifier): Update.
(_cpp_lex_token): Don't skip tokens in a directive.
* cpplib.c (struct if_stack): Update.
(start_directive, end_directive): Don't change skipping state.
(_cpp_handle_directive): Update.
(do_ifdef, do_ifndef, do_if, do_elif): Similarly.
(do_else, do_endif): Update; only check for excess tokens if not
in a skipped conditional block.
(push_conditional): Update for new struct if_stack.
* gcc.dg/cpp/extratokens.c: Fix.
* gcc.dg/cpp/skipping2.c: New tests.
From-SVN: r44380
Diffstat (limited to 'gcc/testsuite/gcc.dg/cpp/extratokens.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/cpp/extratokens.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/testsuite/gcc.dg/cpp/extratokens.c b/gcc/testsuite/gcc.dg/cpp/extratokens.c index 0941be7..c06a41d 100644 --- a/gcc/testsuite/gcc.dg/cpp/extratokens.c +++ b/gcc/testsuite/gcc.dg/cpp/extratokens.c @@ -15,7 +15,7 @@ #ifndef foo bar /* { dg-error "extra tokens" "tokens after #ifndef" } */ #endif -#if 0 +#if 1 #if 0 #else foo /* { dg-warning "extra tokens" "tokens after #else" } */ #endif / /* { dg-warning "extra tokens" "tokens after #endif" } */ |