libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / torture / bitint-70.c
blob2d693bb5849b27eb17dea09d86ae70b9b30563a2
1 /* PR libgcc/114762 */
2 /* { dg-do run { target bitint } } */
3 /* { dg-options "-std=c23" } */
4 /* { dg-skip-if "" { ! run_expensive_tests } { "*" } { "-O0" "-O2" } } */
5 /* { dg-skip-if "" { ! run_expensive_tests } { "-flto" } { "" } } */
7 #if __BITINT_MAXWIDTH__ >= 255
8 __attribute__((__noipa__)) signed _BitInt(255)
9 foo (signed _BitInt(255) a, signed _BitInt(65) b)
11 return a / b;
13 #endif
15 int
16 main ()
18 #if __BITINT_MAXWIDTH__ >= 255
19 if (foo (1, -0xffffffffffffffffwb - 1wb))
20 __builtin_abort ();
21 #endif