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

typedef struct s {
    int value;
} s_t;

static inline int 
read(s_t const *var)
{
  return var->value;
}

int main()
{
  extern union u extern_var;
  return read((s_t *)&extern_var);
}