gcc/testsuite/gcc.dg/bitint-25.c
raw| 1 | // PR c/102989 |
| 2 | // { dg-do compile { target bitint } } |
| 3 | // { dg-options "-std=c11 -Wno-c11-c23-compat -pedantic-errors" } |
| 4 | |
| 5 | _BitInt(63) a; |
| 6 | signed _BitInt(15) b; |
| 7 | unsigned _BitInt(31) c; |
| 8 | int d = 21wb; |
| 9 | long long e = 60594869054uwb; |
| 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 |
| 16 | #endif |
| 17 | #if 0uwb == 0 |
| 18 | #endif |