LLVM OpenMP
nonconstant_incr.c
Go to the documentation of this file.
1// RUN: %libomp-compile-and-run | FileCheck %s --match-full-lines
2
3#include <stdlib.h>
4#include <stdio.h>
5
6int main() {
7 int n = 19;
8 int c = 3;
9 printf("do\n");
10#pragma omp split counts(1, omp_fill, 1)
11 for (int i = 7; i < n; i += c)
12 printf("i=%d\n", i);
13 printf("done\n");
14 return EXIT_SUCCESS;
15}
16
17// CHECK: do
18// CHECK-NEXT: i=7
19// CHECK-NEXT: i=10
20// CHECK-NEXT: i=13
21// CHECK-NEXT: i=16
22// CHECK-NEXT: done
#define i
Definition kmp_stub.cpp:87
int main()