gcc/testsuite/gcc.dg/bitint-57.c
raw| 1 | /* PR tree-optimization/112941 */ |
| 2 | /* { dg-do compile { target bitint } } */ |
| 3 | /* { dg-options "-std=c23 -O1 -fno-tree-forwprop" } */ |
| 4 | |
| 5 | #if __BITINT_MAXWIDTH__ >= 6384 |
| 6 | unsigned _BitInt(2049) |
| 7 | foo (unsigned _BitInt(6384) x, _BitInt(8) y) |
| 8 | { |
| 9 | unsigned _BitInt(6384) z = y; |
| 10 | return x * z; |
| 11 | } |
| 12 | |
| 13 | _BitInt(2049) |
| 14 | bar (unsigned _BitInt(6384) x, _BitInt(1023) y) |
| 15 | { |
| 16 | unsigned _BitInt(6384) z = y; |
| 17 | return x * z; |
| 18 | } |
| 19 | #else |
| 20 | int i; |
| 21 | #endif |