OSDN Git Service

* testsuite/gcc.dg/cpp/tr-warn2.c: Additional test.
authorneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 20 Sep 2002 21:21:10 +0000 (21:21 +0000)
committerneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 20 Sep 2002 21:21:10 +0000 (21:21 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@57370 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 0c971ca..d28402f 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 41be76e..85b6247 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" } */