| 1 |
/* PR 116479 */ |
| 2 |
/* { dg-do run { target { bitint } } } */ |
| 3 |
/* { dg-additional-options "-O -funroll-loops -finline-stringops -fmodulo-sched --param=max-iterations-computation-cost=637924687 -std=c23" } */ |
| 4 |
|
| 5 |
#if __BITINT_MAXWIDTH__ >= 13577 |
| 6 |
_BitInt (13577) b; |
| 7 |
|
| 8 |
void |
| 9 |
foo (char *ret) |
| 10 |
{ |
| 11 |
__builtin_memset (&b, 4, 697); |
| 12 |
*ret = 0; |
| 13 |
} |
| 14 |
#endif |
| 15 |
|
| 16 |
int |
| 17 |
main () |
| 18 |
{ |
| 19 |
#if __BITINT_MAXWIDTH__ >= 13577 |
| 20 |
char x; |
| 21 |
foo (&x); |
| 22 |
for (unsigned i = 0; i < sizeof (x); i++) |
| 23 |
if (x != 0) |
| 24 |
__builtin_abort (); |
| 25 |
#endif |
| 26 |
} |