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