summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr38271.c
blob: 2c64a9b34a624e0f04b7f4987ccc0109d42ab266 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* { dg-do compile } */
/* { dg-options "-Wuninitialized" } */

struct xxx {
    short a;
    short b;
    void *c;
};

void bar(struct xxx);

void foo(struct xxx *p, int i)
{
  struct xxx s0 = *p;
  struct xxx s = s0;
  if (s.a) i++;
  bar(s);
}