Debian Codegraph @

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

raw
1 /* PR c/102989 */
2 /* { dg-do compile { target bitint } } */
3 /* { dg-options "-std=c23 -pedantic-errors" } */
4
5 _BitInt(2)
6 foo (_BitInt(2) x, _BitInt(15) y)
7 {
8 return x + y;
9 }
10
11 _BitInt(64)
12 bar (_BitInt(64) x, _BitInt(64) y)
13 {
14 return x + y;
15 }
16
17 #if __BITINT_MAXWIDTH__ >= 128
18 _BitInt(128) a, b, c;
19
20 _BitInt(128)
21 baz (_BitInt(128) x, _BitInt(128) y)
22 {
23 a = x;
24 b = y;
25 return c;
26 }
27 #endif
28
29 #if __BITINT_MAXWIDTH__ >= 575
30 _BitInt(575) d, e, f;
31
32 _BitInt(575)
33 qux (_BitInt(575) x, _BitInt(575) y)
34 {
35 d = x;
36 e = y;
37 return f;
38 }
39 #endif