This version is equivalent to commit ba26ebece8f5be84e9bd6315611d412af797147e in the old git repository. llvm-svn: 130476
22 lines
264 B
C
22 lines
264 B
C
#include "limits.h"
|
|
#define N 20
|
|
|
|
int main () {
|
|
unsigned int i;
|
|
unsigned int A[N];
|
|
|
|
A[0] = 0;
|
|
|
|
__sync_synchronize();
|
|
|
|
for (i = 0; i < UINT_MAX; i++)
|
|
A[0] = i;
|
|
|
|
__sync_synchronize();
|
|
|
|
if (A[0] == UINT_MAX - 1)
|
|
return 0;
|
|
else
|
|
return 1;
|
|
}
|