* gcc.dg/cpp/tr-warn1.c: Add tests.

From-SVN: r39369
This commit is contained in:
Neil Booth 2001-01-31 07:57:12 +00:00 committed by Neil Booth
parent f000294dcd
commit 2e1911bfad
2 changed files with 13 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2001-01-31 Neil Booth <neil@daikokuya.demon.co.uk>
* gcc.dg/cpp/tr-warn1.c: Add tests.
2001-01-31 Neil Booth <neil@daikokuya.demon.co.uk>
* gcc.dg/cpp/avoidpaste1.c: Update.

View File

@ -24,6 +24,15 @@
#assert baz(quux) /* { dg-bogus "indented" "^ #ext" } */
# assert quux(weeble) /* { dg-bogus "indented" "^ # ext" } */
/* We warn of #elif regardless of whether we're skipping or not, and
do not warn about indentaion. */
#if 0
#if 1
#elif 1 /* { dg-warning "#elif" "#elif skipping" } */
#endif
#elif 0 /* { dg-warning "#elif" "#elif not skipping" } */
#endif
/* { dg-warning "GCC extension" "extension warning" { target *-*-* } 22 } */
/* { dg-warning "GCC extension" "extension warning" { target *-*-* } 23 } */
/* { dg-warning "GCC extension" "extension warning" { target *-*-* } 24 } */