Debian Codegraph @

gcc/testsuite/gcc.dg/torture/bitint-48.c

raw
1 /* PR tree-optimization/113370 */
2 /* { dg-do run { target bitint } } */
3 /* { dg-options "-std=c23 -pedantic-errors" } */
4 /* { dg-skip-if "" { ! run_expensive_tests } { "*" } { "-O0" "-O2" } } */
5 /* { dg-skip-if "" { ! run_expensive_tests } { "-flto" } { "" } } */
6
7 #if __BITINT_MAXWIDTH__ >= 255
8 _BitInt(255)
9 foo (int s)
10 {
11 return -(_BitInt(255)) 3 >> s;
12 }
13 #endif
14
15 int
16 main ()
17 {
18 #if __BITINT_MAXWIDTH__ >= 255
19 if (foo (51) != -1)
20 __builtin_abort ();
21 #endif
22 return 0;
23 }