diff options
| author | pme <pme@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-03-26 21:48:40 +0000 |
|---|---|---|
| committer | pme <pme@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-03-26 21:48:40 +0000 |
| commit | e911437ff95af5cd56940bfd9739686b72b57d4a (patch) | |
| tree | 7d786bb2dc81a35583aed2da9586bd628e68757e | |
| parent | 4de3dc3231cf1dc8382a6cc9ec54da99fdd0a202 (diff) | |
| download | ppe42-gcc-e911437ff95af5cd56940bfd9739686b72b57d4a.tar.gz ppe42-gcc-e911437ff95af5cd56940bfd9739686b72b57d4a.zip | |
2002-03-26 Phil Edwards <pme@gcc.gnu.org>
* gcc.dg/cpp/endif-pedantic1.c,
gcc.dg/cpp/endif-pedantic2.c: New tests.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@51410 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
| -rw-r--r-- | gcc/testsuite/gcc.dg/cpp/endif-pedantic1.c | 17 | ||||
| -rw-r--r-- | gcc/testsuite/gcc.dg/cpp/endif-pedantic2.c | 17 |
3 files changed, 39 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 1862977b920..af0d930a837 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2002-03-26 Phil Edwards <pme@gcc.gnu.org> + + * gcc.dg/cpp/endif-pedantic1.c, + gcc.dg/cpp/endif-pedantic2.c: New tests. + 2002-03-26 Mark Mitchell <mark@codesourcery.com> * g++.dg/init/new1.C: New test. diff --git a/gcc/testsuite/gcc.dg/cpp/endif-pedantic1.c b/gcc/testsuite/gcc.dg/cpp/endif-pedantic1.c new file mode 100644 index 00000000000..c97e329072d --- /dev/null +++ b/gcc/testsuite/gcc.dg/cpp/endif-pedantic1.c @@ -0,0 +1,17 @@ +/* Copyright (C) 2002 Free Software Foundation, Inc. */ + +/* { dg-do preprocess } */ +/* { dg-options "-pedantic -Wno-endif-labels" } */ + +/* Tests combinations of -pedantic and -Wno-endif-labels; see extratokens2.c + for more general tests. */ + +/* Source: Phil Edwards, 25 Mar 2002. Copied from extratokens2.c and + modified. */ + +#if 1 +#if 0 +#else foo /* { dg-bogus "extra tokens" "bad warning" } */ +#endif / /* { dg-bogus "extra tokens" "bad warning" } */ +#endif + diff --git a/gcc/testsuite/gcc.dg/cpp/endif-pedantic2.c b/gcc/testsuite/gcc.dg/cpp/endif-pedantic2.c new file mode 100644 index 00000000000..d5c6eb960e6 --- /dev/null +++ b/gcc/testsuite/gcc.dg/cpp/endif-pedantic2.c @@ -0,0 +1,17 @@ +/* Copyright (C) 2002 Free Software Foundation, Inc. */ + +/* { dg-do preprocess } */ +/* { dg-options "-Wno-endif-labels -pedantic" } */ + +/* Tests combinations of -pedantic and -Wno-endif-labels; see extratokens2.c + for more general tests. */ + +/* Source: Phil Edwards, 25 Mar 2002. Copied from endif-pedantic1.c and + modified. */ + +#if 1 +#if 0 +#else foo /* { dg-error "extra tokens" "tokens after #else" } */ +#endif / /* { dg-error "extra tokens" "tokens after #endif" } */ +#endif + |

