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

int a, b;

static void fn1 (short p1)
{
  a = -p1;
  if (a || b)
    __builtin_printf ("%d\n", b);
}

int main ()
{
  int c[] = { 40000 };
  fn1 (c[0]);
  return 0;
}