Debian Codegraph @

gcc/testsuite/gcc.dg/cpp/c23-scope-2.c

raw
1 /* Test :: token in C23: preprocessed output. */
2 /* { dg-do preprocess } */
3 /* { dg-options "-std=c23 -pedantic-errors -P" } */
4
5 #define COLON() :
6 #define TEST() ABC
7
8 /* This must have a space inserted between the two ':' tokens in
9 preprocessed output. */
10 TEST()COLON()COLON()TEST()
11 /* { dg-final { scan-file c23-scope-2.i "ABC: :ABC" } } */