summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/pr41282.c
blob: 3a0f02d63ab10219658fbc83e214c4a25c4ddfe5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
struct S
{
  unsigned int iu;
};

union U
{
  struct S s;
  signed int is;
};

extern signed int bar ();

struct S foo (void)
{
  union U u;

  u.is = bar ();
  return u.s;
}