1*9120562dSMichael Kruse // RUN: %libomp-compile-and-run | FileCheck %s --match-full-lines 2*9120562dSMichael Kruse 3*9120562dSMichael Kruse #ifndef HEADER 4*9120562dSMichael Kruse #define HEADER 5*9120562dSMichael Kruse 6*9120562dSMichael Kruse #include <stdlib.h> 7*9120562dSMichael Kruse #include <stdio.h> 8*9120562dSMichael Kruse main()9*9120562dSMichael Kruseint main() { 10*9120562dSMichael Kruse printf("do\n"); 11*9120562dSMichael Kruse #pragma omp unroll full 12*9120562dSMichael Kruse for (int i = 7; i < 19; i += 3) 13*9120562dSMichael Kruse printf("i=%d\n", i); 14*9120562dSMichael Kruse printf("done\n"); 15*9120562dSMichael Kruse return EXIT_SUCCESS; 16*9120562dSMichael Kruse } 17*9120562dSMichael Kruse 18*9120562dSMichael Kruse #endif /* HEADER */ 19*9120562dSMichael Kruse 20*9120562dSMichael Kruse // CHECK: do 21*9120562dSMichael Kruse // CHECK-NEXT: i=7 22*9120562dSMichael Kruse // CHECK-NEXT: i=10 23*9120562dSMichael Kruse // CHECK-NEXT: i=13 24*9120562dSMichael Kruse // CHECK-NEXT: i=16 25*9120562dSMichael Kruse // CHECK-NEXT: done 26