summaryrefslogtreecommitdiff
path: root/support/regression/tests/gcc-torture-execute-pr47155.c
blob: 219b081a784f80efd64a55980e5755f4aa81cad2 (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
/*
   pr47155.c from the execute part of the gcc torture tests.
 */

#include <testfwk.h>

#ifdef __SDCC
#pragma std_c99
#endif

/* PR tree-optimization/47155 */

unsigned int a;
static signed char b = -127;
int c = 1;

void
testTortureExecute (void)
{
  a = b <= (unsigned char) (-6 * c);
  if (!a)
    ASSERT (0);
  return;
}