Commit 2e1911bf by Neil Booth Committed by Neil Booth

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

From-SVN: r39369
parent f000294d
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.
* gcc.dg/cpp/paste4.c: Update.
......
......@@ -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 } */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment