aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/debug/pr78587.c
blob: b368a2ad71cdb8372f6a15c8cf9259606cf208ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* PR debug/78587 */
/* { dg-do compile } */
/* { dg-additional-options "-w" } */

extern void bar (void);

void
foo (long long x)
{
  x ^= 9223372036854775808ULL;
  bar ();
}

struct S { int w[4]; } a[1], b;

void
baz ()
{
  int e = (int) baz;
  if (e <= -80)
    e = 0;
  b = a[e];
}