summaryrefslogtreecommitdiff
path: root/support/regression/tests/gcc-torture-execute-pr69097-1.c
blob: 863b77b8607c64210cf7964439f9346c8bd2eb0d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/*
   pr69097-1.c from the execute part of the gcc torture tests.
 */

#include <testfwk.h>

#ifdef __SDCC
#pragma std_c99
#endif

/* PR tree-optimization/69097 */

int a, b;
unsigned int c;

void
testTortureExecute (void)
{
  int d = b;
  b = ~(~a + (~d | b));
  a = ~(~c >> b);
  c = a % b;
  return;
}