]> git.ipfire.org Git - thirdparty/gcc.git/blob - 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
1 // PR c/102989
2 // { dg-do compile { target bitint } }
3 // { dg-options "-std=c11 -pedantic-errors" }
4
5 _BitInt(63) a; /* { dg-error "ISO C does not support '_BitInt\\\(63\\\)' before C23" } */
6 signed _BitInt(15) b; /* { dg-error "ISO C does not support 'signed _BitInt\\\(15\\\)' before C23" } */
7 unsigned _BitInt(31) c; /* { dg-error "ISO C does not support 'unsigned _BitInt\\\(31\\\)' before C23" } */
8 int d = 21wb; /* { dg-error "ISO C does not support literal 'wb' suffixes before C23" } */
9 long long e = 60594869054uwb; /* { dg-error "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-error "ISO C does not support literal 'wb' suffixes before C23" } */
16 #endif
17 #if 0uwb == 0 /* { dg-error "ISO C does not support literal 'wb' suffixes before C23" } */
18 #endif