aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr97317.c
blob: fdc1a62d5440c6a0617b9358ef02f149eb8db915 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* { dg-do compile } */
/* { dg-options "-O2" } */
/* { dg-require-effective-target int32plus } */

struct a {
  unsigned c : 17;
};
struct a b;
int d(void) {
  short e = b.c;
  return e ? 0 : b.c;
}