gcc/testsuite/gcc.dg/bitint-73.c
raw| 1 | /* PR tree-optimization/113459 */ |
| 2 | /* { dg-do compile { target bitint } } */ |
| 3 | /* { dg-options "-std=c23 -O2" } */ |
| 4 | |
| 5 | #if __BITINT_MAXWIDTH__ >= 129 |
| 6 | # define N 129 |
| 7 | #else |
| 8 | # define N 63 |
| 9 | #endif |
| 10 | |
| 11 | _BitInt(N) a; |
| 12 | |
| 13 | _BitInt(N) |
| 14 | foo (void) |
| 15 | { |
| 16 | __builtin_memset (&a, 6, sizeof a); |
| 17 | return a; |
| 18 | } |