aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/c-c++-common/cpp/embed-13.c
blob: faee87f155e037a950551a7f8cc510ab2505aff8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* { dg-do preprocess } */
/* { dg-options "-P" } */

#if __has_embed(__FILE__ limit(6))
#define FOO 20000,20001,20002
#define BAR 30000,30001,30002
#embed __FILE__ limit (4) prefix(10000,10001,10002+) suffix(+10003,10004,10005)
#embed __FILE__ limit (6) prefix(FOO,) suffix(,BAR)
#endif

/* { dg-final { scan-file embed-13.i "10000,10001,10002\\\+\[ \t\n\r]*\[0-9]+,\[0-9]+,\[0-9]+,\[0-9]+\[ \t\n\r]*\\\+10003,10004,10005" } } */
/* { dg-final { scan-file embed-13.i "20000,20001,20002,\[ \t\n\r]*\[0-9]+,\[0-9]+,\[0-9]+,\[0-9]+,\[0-9]+,\[0-9]+\[ \t\n\r]*,30000,30001,30002" } } */