Debian Codegraph @

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

raw
1 /* PR c/102989 */
2 /* { dg-do compile { target { bitint && exceptions } } } */
3 /* { dg-options "-O2 -std=gnu23 -fnon-call-exceptions -fexceptions" } */
4
5 __attribute__((noipa)) void
6 baz (int *p)
7 {
8 }
9
10 #if __BITINT_MAXWIDTH__ >= 575
11 void
12 foo (volatile _BitInt(575) *p, _BitInt(575) q)
13 {
14 int a __attribute__((cleanup (baz))) = 1;
15 *p = q;
16 }
17
18 _BitInt(575)
19 bar (volatile _BitInt(575) *p)
20 {
21 int a __attribute__((cleanup (baz))) = 1;
22 return *p;
23 }
24
25 _BitInt(575)
26 qux (long double l)
27 {
28 int a __attribute__((cleanup (baz))) = 1;
29 return l;
30 }
31
32 long double
33 corge (_BitInt(575) b)
34 {
35 int a __attribute__((cleanup (baz))) = 1;
36 return b;
37 }
38
39 _BitInt(575)
40 garply (_BitInt(575) x, _BitInt(575) y)
41 {
42 int a __attribute__((cleanup (baz))) = 1;
43 return x / y;
44 }
45
46 _BitInt(575)
47 waldo (_BitInt(575) x, _BitInt(575) y)
48 {
49 int a __attribute__((cleanup (baz))) = 1;
50 return x % y;
51 }
52 #endif