summaryrefslogtreecommitdiffstats
path: root/polly/test/CodeGen/single_loop_ull_max_iterations.c
blob: 56d7677495a3c9f31d17022a7519767b8514da70 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include "limits.h"
#define N 20

int main () {
  unsigned long long i;
  unsigned long long A[N];

  A[0] = 0;

  __sync_synchronize();

  for (i = 0; i < ULLONG_MAX; i++)
    A[0] = i;

  __sync_synchronize();

  if (A[0] == ULLONG_MAX - 1)
    return 0;
  else
    return 1;
}
OpenPOWER on IntegriCloud