gcc/testsuite/gcc.dg/bitint-50.c
raw| 1 | /* PR middle-end/112881 */ |
| 2 | /* { dg-do compile { target bitint } } */ |
| 3 | /* { dg-options "-O2 -std=c23" } */ |
| 4 | |
| 5 | struct S { _BitInt(64) b; }; |
| 6 | |
| 7 | struct S |
| 8 | foo (_BitInt(64) p) |
| 9 | { |
| 10 | return (struct S) { p }; |
| 11 | } |
| 12 | |
| 13 | #if __BITINT_MAXWIDTH__ >= 3924 |
| 14 | struct T { _BitInt(3924) b; }; |
| 15 | |
| 16 | struct T |
| 17 | bar (_BitInt(3924) p) |
| 18 | { |
| 19 | return (struct T) { p }; |
| 20 | } |
| 21 | #endif |