gcc/testsuite/gcc.dg/bitint-78.c
raw| 1 | /* PR tree-optimization/113568 */ |
| 2 | /* { dg-do compile { target bitint } } */ |
| 3 | /* { dg-options "-O2 -std=c23" } */ |
| 4 | |
| 5 | signed char c; |
| 6 | #if __BITINT_MAXWIDTH__ >= 464 |
| 7 | _BitInt(464) g; |
| 8 | |
| 9 | void |
| 10 | foo (void) |
| 11 | { |
| 12 | _BitInt(464) a[2] = {}; |
| 13 | _BitInt(464) b; |
| 14 | while (c) |
| 15 | { |
| 16 | b = g + 1; |
| 17 | g = a[0]; |
| 18 | a[0] = b; |
| 19 | } |
| 20 | } |
| 21 | #endif |