aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog2
-rw-r--r--gcc/testsuite/gcc.dg/cpp/tr-warn2.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 0c971ca..d28402f 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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>
diff --git a/gcc/testsuite/gcc.dg/cpp/tr-warn2.c b/gcc/testsuite/gcc.dg/cpp/tr-warn2.c
index 41be76e..85b6247 100644
--- a/gcc/testsuite/gcc.dg/cpp/tr-warn2.c
+++ b/gcc/testsuite/gcc.dg/cpp/tr-warn2.c
@@ -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" } */