]>
Commit | Line | Data |
---|---|---|
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" } */ |
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" } */ | |
f76ae436 JJ |
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; | |
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 |