Commit 27eba309 by Neil Booth Committed by Neil Booth

* testsuite/gcc.dg/cpp/tr-warn2.c: Additional test.

From-SVN: r57370
parent 8f89dbf4
......@@ -12,7 +12,7 @@
2002-09-20 Neil Booth <neil@daikokuya.co.uk>
* cppmacro.c: Don't warn about function-like macros without
'(' during pre-expandion.
'(' during pre-expansion.
2002-09-20 Jim Wilson <wilson@redhat.com>
......@@ -11,6 +11,8 @@
#define f(x) x
#define g(x) x / 2
#define h(a, b) a(b)
f(g) (3) /* { dg-bogus "must be used with arguments" } */
f 2 /* { dg-warning "must be used with arguments" } */
f(g) 3 /* { dg-warning "must be used with arguments" } */
h(f, 3) /* { dg-bogus "must be used with arguments" } */
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