summaryrefslogtreecommitdiffstats
path: root/polly/test/CodeGen/single_loop_zero_iterations.c
diff options
context:
space:
mode:
Diffstat (limited to 'polly/test/CodeGen/single_loop_zero_iterations.c')
-rw-r--r--polly/test/CodeGen/single_loop_zero_iterations.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/polly/test/CodeGen/single_loop_zero_iterations.c b/polly/test/CodeGen/single_loop_zero_iterations.c
new file mode 100644
index 00000000000..87c55962c21
--- /dev/null
+++ b/polly/test/CodeGen/single_loop_zero_iterations.c
@@ -0,0 +1,20 @@
+#define N 20
+
+int main () {
+ int i;
+ int A[N];
+
+ A[0] = 0;
+
+ __sync_synchronize();
+
+ for (i = 0; i < 0; i++)
+ A[i] = 1;
+
+ __sync_synchronize();
+
+ if (A[0] == 0)
+ return 0;
+ else
+ return 1;
+}
OpenPOWER on IntegriCloud