aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/bitint-94.c
blob: ca32043a095d2e6eae2d2cb0d1c4ff7d53b08c73 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* PR middle-end/114084 */
/* { dg-do compile { target bitint } } */
/* { dg-options "-std=c23 -pedantic-errors" } */

typedef unsigned _BitInt(31) T;
T a, b;

void
foo (void)
{
  b = (T) ((a | (-1U >> 1)) >> 1 | (a | 5) << 4);
}