| 1 |
/* PR c/102989 */ |
| 2 |
/* { dg-do compile { target bitint } } */ |
| 3 |
/* { dg-options "-O2 -std=c23 -Wno-uninitialized" } */ |
| 4 |
|
| 5 |
#if __BITINT_MAXWIDTH__ >= 135 |
| 6 |
_BitInt(135) |
| 7 |
foo (void) |
| 8 |
{ |
| 9 |
_BitInt(135) d; |
| 10 |
_BitInt(135) e = d + 2wb; |
| 11 |
return e; |
| 12 |
} |
| 13 |
#endif |
| 14 |
|
| 15 |
#if __BITINT_MAXWIDTH__ >= 575 |
| 16 |
_BitInt(575) |
| 17 |
bar (void) |
| 18 |
{ |
| 19 |
_BitInt(575) d; |
| 20 |
_BitInt(575) e = d * 42wb; |
| 21 |
return e; |
| 22 |
} |
| 23 |
|
| 24 |
_BitInt(575) |
| 25 |
baz (int x) |
| 26 |
{ |
| 27 |
_BitInt(575) d; |
| 28 |
if (x) |
| 29 |
return 59843758943759843574wb; |
| 30 |
return d; |
| 31 |
} |
| 32 |
#endif |
| 33 |
|
| 34 |
int x; |