summaryrefslogtreecommitdiffstats
path: root/polly/test/CodeGen/OpenMP/structnames.c
diff options
context:
space:
mode:
Diffstat (limited to 'polly/test/CodeGen/OpenMP/structnames.c')
-rw-r--r--polly/test/CodeGen/OpenMP/structnames.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/polly/test/CodeGen/OpenMP/structnames.c b/polly/test/CodeGen/OpenMP/structnames.c
new file mode 100644
index 00000000000..1cdb2e321f0
--- /dev/null
+++ b/polly/test/CodeGen/OpenMP/structnames.c
@@ -0,0 +1,26 @@
+#include <string.h>
+#include <stdio.h>
+#define N 5
+
+float A[N];
+float B[N];
+
+void loop1_openmp() {
+ for (int i = 0; i <= N; i++)
+ A[i] = 0;
+
+ for (int j = 0; j <= N; j++)
+ for (int k = 0; k <= N; k++)
+ B[k] += j;
+}
+
+int main () {
+ int i;
+ memset(A, 0, sizeof(float) * N);
+ memset(B, 0, sizeof(float) * N);
+
+ loop1_openmp();
+
+ return 0;
+}
+
OpenPOWER on IntegriCloud