aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/bitint-84.c
blob: dffdf160a8451a64218c077d656f69fc2dbe9159 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/* PR tree-optimization/113737 */
/* { dg-do compile { target bitint } } */
/* { dg-options "-O2 -std=c23" } */

#if __BITINT_MAXWIDTH__ >= 129
_BitInt(129) a;
#else
_BitInt(63) a;
#endif

int b[1], c;

int
foo (void)
{
  switch (a)
  case 0:
  case 2:
    return 1;
  return 0;
}

void
bar (int i)
{
  for (;; ++i)
    {
      c = b[i];
      if (!foo ())
	__asm__ ("");
    }
}