summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/pr45059.c
blob: 3f13cdbf8c79809fa308dd1580eb5baf14f2fe0a (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 tree-optimization/45059 */

typedef unsigned int T;
extern void foo (signed char *, int);

static signed char a;
static T b[1] = { -1 };
static unsigned char c;

static inline short int
bar (short v)
{
  c |= a < b[0];
  return 0;
}

int
main ()
{
  signed char *e = &a;
  foo (e, bar (bar (c)));
  return 0;
}