gcc/testsuite/gcc.dg/bitint-82.c
raw| 1 | /* PR tree-optimization/113692 */ |
| 2 | /* { dg-do compile { target bitint } } */ |
| 3 | /* { dg-options "-O2 -std=c23" } */ |
| 4 | |
| 5 | #if __BITINT_MAXWIDTH__ >= 135 |
| 6 | _BitInt(135) i; |
| 7 | #else |
| 8 | _BitInt(63) i; |
| 9 | #endif |
| 10 | |
| 11 | void * |
| 12 | foo (void) |
| 13 | { |
| 14 | void *ret = 0; |
| 15 | if (i & 1) |
| 16 | ret = (void *) 1; |
| 17 | return ret; |
| 18 | } |