gcc/testsuite/gcc.dg/bitint-71.c
raw| 1 | /* PR tree-optimization/113408 */ |
| 2 | /* { dg-do compile { target bitint } } */ |
| 3 | /* { dg-options "-std=c23 -O2" } */ |
| 4 | |
| 5 | #if __BITINT_MAXWIDTH__ >= 713 |
| 6 | struct A { _BitInt(713) b; } g; |
| 7 | #else |
| 8 | struct A { _BitInt(49) b; } g; |
| 9 | #endif |
| 10 | int f; |
| 11 | |
| 12 | void |
| 13 | foo (void) |
| 14 | { |
| 15 | struct A j = g; |
| 16 | if (j.b) |
| 17 | f = 0; |
| 18 | } |