Debian Codegraph @

gcc/testsuite/gcc.dg/bitint-62.c

raw
1 /* PR tree-optimization/113120 */
2 /* { dg-do compile { target bitint } } */
3 /* { dg-options "-std=c23 -O2" } */
4
5 _BitInt(8) a;
6 _BitInt(55) b;
7
8 #if __BITINT_MAXWIDTH__ >= 401
9 static __attribute__((noinline, noclone)) void
10 foo (unsigned _BitInt(1) c, _BitInt(401) d)
11 {
12 c /= d << b;
13 a = c;
14 }
15
16 void
17 bar (void)
18 {
19 foo (1, 4);
20 }
21 #endif
22
23 #if __BITINT_MAXWIDTH__ >= 6928
24 _BitInt(6928)
25 baz (int x, _BitInt(6928) y)
26 {
27 if (x)
28 return y;
29 else
30 return 0;
31 }
32 #endif