aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/pr97404.c
blob: 7e5ce231725e60220eedc012bc43a1dd0481b7ec (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
25
26
27
28
/* PR ipa/97404 */
/* { dg-additional-options "-fno-inline" } */

char a, b;
long c;
short d, e;
long *f = &c;
int g;
char h(signed char i) { return 0; }
static short j(short i, int k) { return i < 0 ? 0 : i >> k; }
void l(void);
void m(void)
{
  e = j(d | 9766, 11);
    *f = e;
}
void l(void)
{
  a = 5 | g;
    b = h(a);
}
int main()
{
  m();
  if (c != 4)
    __builtin_abort();
  return 0;
}