* testsuite/gcc.dg/cpp/tr-warn2.c: Additional test.
authorNeil Booth <neil@daikokuya.co.uk>
Fri, 20 Sep 2002 21:21:10 +0000 (21:21 +0000)
committerNeil Booth <neil@gcc.gnu.org>
Fri, 20 Sep 2002 21:21:10 +0000 (21:21 +0000)
From-SVN: r57370

gcc/ChangeLog
gcc/testsuite/gcc.dg/cpp/tr-warn2.c

index 0c971ca69d649e611684c2872df608372d13a24e..d28402f9a32eac4cd4588418a70cdac557a2a4f8 100644 (file)
@@ -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>
 
index 41be76e316e72064ebdaeca6db464f706adac22a..85b624761eb12ee52a6a859edcdddf8470708448 100644 (file)
@@ -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" } */