libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / bitint-26.c
blob8869e3fe807fe7c676e146cf154f73b69946c5be
1 // PR c/102989
2 // { dg-do compile { target bitint } }
3 // { dg-options "-std=c11 -pedantic" }
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