aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/cpp/c2x-scope-2.c
blob: 73b36e70f5034b9e54694f29c68f6daa3e9edf60 (plain)
1
2
3
4
5
6
7
8
9
10
11
/* Test :: token in C2x: preprocessed output.  */
/* { dg-do preprocess } */
/* { dg-options "-std=c2x -pedantic-errors -P" } */

#define COLON() :
#define TEST() ABC

/* This must have a space inserted between the two ':' tokens in
   preprocessed output.  */
TEST()COLON()COLON()TEST()
/* { dg-final { scan-file c2x-scope-2.i "ABC: :ABC" } } */