aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/bitint-102.c
blob: 9f9861ee2be5ddb2a97b7beb6acf8c2f55b159f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* PR tree-optimization/114365 */
/* { dg-do compile { target bitint } } */
/* { dg-options "-std=c23 -O2" } */

struct S {
  int : 31;
#if __BITINT_MAXWIDTH__ >= 129
  _BitInt(129) b : 129;
#else
  _BitInt(63) b : 63;
#endif
} s;

void
foo (int a)
{
  s.b <<= a;
}