diff options
author | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-06-27 05:59:53 +0000 |
---|---|---|
committer | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-06-27 05:59:53 +0000 |
commit | 5ae4caef64b121ef89043f62438b048d88f7a7e0 (patch) | |
tree | 37d3e37f78afe9a452e98bf96509d76258192dd9 /gcc/testsuite/gcc.dg/Wunknownprag.c | |
parent | 43326cf7509fd6fff93f61d5c59c4198009b655a (diff) | |
download | gcc-5ae4caef64b121ef89043f62438b048d88f7a7e0.tar.gz |
PR preprocessor/7070
* c-lex.c (cb_def_pragma): Don't try to spell CPP_EOF.
testsuite:
* gcc.dg/Wunknownprag.c: New tests.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@55021 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/Wunknownprag.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/Wunknownprag.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/Wunknownprag.c b/gcc/testsuite/gcc.dg/Wunknownprag.c new file mode 100644 index 00000000000..c5ba58f767d --- /dev/null +++ b/gcc/testsuite/gcc.dg/Wunknownprag.c @@ -0,0 +1,11 @@ +/* Copyright (C) 2002 Free Software Foundation, Inc. */ + +/* { dg-do compile } */ +/* { dg-options "-Wunknown-pragmas" } */ + +/* We used to get "unspellable token: CPP_EOF" warnings. */ + +#pragma /* { dg-warning "ignoring #pragma" } */ +#pragma ~ /* { dg-warning "ignoring #pragma" } */ +#pragma baz /* { dg-warning "ignoring #pragma" } */ +#pragma baz baz /* { dg-warning "ignoring #pragma" } */ |