summaryrefslogtreecommitdiffstats
path: root/polly/test/TempScop/reduction-sub.c
diff options
context:
space:
mode:
Diffstat (limited to 'polly/test/TempScop/reduction-sub.c')
-rw-r--r--polly/test/TempScop/reduction-sub.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/polly/test/TempScop/reduction-sub.c b/polly/test/TempScop/reduction-sub.c
new file mode 100644
index 00000000000..e4eba02345f
--- /dev/null
+++ b/polly/test/TempScop/reduction-sub.c
@@ -0,0 +1,12 @@
+#define NUM 128
+
+int A[NUM];
+int R;
+
+int reduction(void) {
+ int i;
+ for (i = 0; i < NUM; i++) {
+ R -= A[i];
+ }
+ return R;
+}
OpenPOWER on IntegriCloud