summaryrefslogtreecommitdiff
path: root/polly/test/CodeGen/constant_condition.c
blob: 171927c6fa269a23e445b57bac22fd0cecdfe9f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include <string.h>
int A[1];

void constant_condition () {
  int a = 0;
  int b = 0;

  if (a == b)
    A[0] = 0;
  else
    A[0] = 1;
}

int main () {
  int i;

  A[0] = 2;

  constant_condition();

  return A[0];
}