1 /* Copyright (C) 2001 Free Software Foundation, Inc. */
3 /* { dg-do preprocess } */
4 /* { dg-options "-std=gnu99 -pedantic -Wtraditional" } */
6 /* Tests diagnostics are suppressed for some macros defined in system
9 /* Source: Neil Booth, 15 Jan 2001. */
15 #define foo(x, y...) bar(x, ##y) /* { dg-warning "named variadic macros" } */
17 #if uint /* { dg-warning "traditional C rejects" } */
19 #if sys_uint /* { dg-bogus "traditional C rejects" } */
22 (str
); /* { dg-warning "used with arguments" } */
23 (sys_str
); /* { dg-bogus "used with arguments" } */
25 foo (one_arg
); /* { dg-warning "requires rest arguments" } */
26 sys_foo (one_arg
); /* { dg-bogus "requires rest arguments" } */