]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gcc.dg/bitint-23.c
testsuite: Refer more consistently to C23 not C2X
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / bitint-23.c
1 // PR c/102989
2 // { dg-do compile { target bitint } }
3 // { dg-options "-std=c23 -pedantic-errors -Wc11-c23-compat" }
4
5 _BitInt(63) a; /* { dg-warning "ISO C does not support '_BitInt\\\(63\\\)' before C23" } */
6 signed _BitInt(15) b; /* { dg-warning "ISO C does not support 'signed _BitInt\\\(15\\\)' before C23" } */
7 unsigned _BitInt(31) c; /* { dg-warning "ISO C does not support 'unsigned _BitInt\\\(31\\\)' before C23" } */
8 int d = 21wb; /* { dg-warning "ISO C does not support literal 'wb' suffixes before C23" } */
9 long long e = 60594869054uwb; /* { dg-warning "ISO C does not support literal 'wb' suffixes before C23" } */
10 __extension__ _BitInt(63) f;
11 __extension__ _BitInt(15) g;
12 __extension__ unsigned _BitInt(31) h;
13 int i = __extension__ 21wb;
14 long long j = __extension__ 60594869054uwb;
15 #if 0wb == 0 /* { dg-warning "ISO C does not support literal 'wb' suffixes before C23" } */
16 #endif
17 #if 0uwb == 0 /* { dg-warning "ISO C does not support literal 'wb' suffixes before C23" } */
18 #endif