Debian Codegraph @

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

raw
1 /* PR tree-optimization/113421 */
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__ >= 1024
8 unsigned _BitInt(1024) a = -5wb;
9
10 __attribute__((noipa)) void
11 foo (unsigned _BitInt(1024) x)
12 {
13 a *= x;
14 }
15 #else
16 int a = 30;
17
18 void
19 foo (int)
20 {
21 }
22 #endif
23
24 int
25 main ()
26 {
27 foo (-6wb);
28 if (a != 30wb)
29 __builtin_abort ();
30 return 0;
31 }