aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/c-c++-common/pr108605.c
blob: 418b37d70192e07eabbdb89ca84bf19b76271db5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* PR ipa/108605 */
/* { dg-do compile { target { lp64 || llp64 } } } */
/* { dg-options "-O2" } */

struct S {
  char a, b, c;
  int d[__INT_MAX__], e;
};

void
foo (struct S *s)
{
  if (s->b && s->c != 0)
    __builtin_abort ();
}

void
bar (void)
{
  struct S s[2];
  s[0].a = 0;
  s[0].e = 0;
  foo (s);
}