Debian Codegraph @

gcc/testsuite/c-c++-common/cpp/pr90400.c

raw
1 /* { dg-do compile } */
2 /* { dg-additional-options "-save-temps" } */
3 /* PR preprocessor/90400 */
4
5 #define OUTER(x) x
6 #define FOR(x) _Pragma ("GCC unroll 0") for (x)
7 void f ()
8 {
9 /* If the pragma were to be seen prior to the expansion of FOR, as was
10 the case before r12-5454, then the unroll pragma would complain
11 because the immediately following statement would be ";" rather than
12 a loop. */
13 OUTER (; FOR (int i = 0; i != 1; ++i);) /* { dg-bogus {statement expected before ';' token} } */
14 }