aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr43165.c
blob: 991c3d118b90080d87be839cd9d2cb9479f088fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* PR debug/43165 */
/* { dg-options "-g" } */
/* { dg-require-effective-target int32plus } */

struct __attribute__((packed)) S
{
  unsigned char a;
  unsigned short b;
  unsigned short c;
  unsigned d : 24;
};

void 
foo (struct S p)
{
  for (; p.c; p.c++)
    ;
}