annotate gcc/testsuite/gcc.dg/cpp/vararg3.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* Copyright (C) 2002 Free Software Foundation, Inc. */
kono
parents:
diff changeset
2
kono
parents:
diff changeset
3 /* { dg-do preprocess } */
kono
parents:
diff changeset
4 /* { dg-options "-std=c99" } */
kono
parents:
diff changeset
5
kono
parents:
diff changeset
6 /* Source: Neil Booth, 6 Aug 2002.
kono
parents:
diff changeset
7
kono
parents:
diff changeset
8 Tests that we DTRT with varargs commas for a single-parameter macro
kono
parents:
diff changeset
9 when in standards-conforming mode. */
kono
parents:
diff changeset
10
kono
parents:
diff changeset
11 #define f(...) , ## __VA_ARGS__
kono
parents:
diff changeset
12
kono
parents:
diff changeset
13 /* The comma from f's expansion should be retained (standards
kono
parents:
diff changeset
14 conforming mode only). Tests that it isn't in non-standards mode
kono
parents:
diff changeset
15 include macro8.c and vararg1.c. */
kono
parents:
diff changeset
16 #if 2 f() 3 /* { dg-bogus "missing binary operator" } */
kono
parents:
diff changeset
17 #endif