1 // RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s | FileCheck --match-full-lines -implicit-check-not=openmp_structured_block %s
2
test_one(int x)3 void test_one(int x) {
4 #pragma omp parallel for simd
5 for (int i = 0; i < x; i++)
6 ;
7 }
8
test_two(int x,int y)9 void test_two(int x, int y) {
10 #pragma omp parallel for simd
11 for (int i = 0; i < x; i++)
12 for (int i = 0; i < y; i++)
13 ;
14 }
15
test_three(int x,int y)16 void test_three(int x, int y) {
17 #pragma omp parallel for simd collapse(1)
18 for (int i = 0; i < x; i++)
19 for (int i = 0; i < y; i++)
20 ;
21 }
22
test_four(int x,int y)23 void test_four(int x, int y) {
24 #pragma omp parallel for simd collapse(2)
25 for (int i = 0; i < x; i++)
26 for (int i = 0; i < y; i++)
27 ;
28 }
29
test_five(int x,int y,int z)30 void test_five(int x, int y, int z) {
31 #pragma omp parallel for simd collapse(2)
32 for (int i = 0; i < x; i++)
33 for (int i = 0; i < y; i++)
34 for (int i = 0; i < z; i++)
35 ;
36 }
37
38 // CHECK: TranslationUnitDecl {{.*}} <<invalid sloc>> <invalid sloc>
39 // CHECK: |-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-parallel-for-simd.c:3:1, line:7:1> line:3:6 test_one 'void (int)'
40 // CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:15, col:19> col:19 used x 'int'
41 // CHECK-NEXT: | `-CompoundStmt {{.*}} <col:22, line:7:1>
42 // CHECK-NEXT: | `-OMPParallelForSimdDirective {{.*}} <line:4:1, col:30>
43 // CHECK-NEXT: | `-CapturedStmt {{.*}} <line:5:3, line:6:5>
44 // CHECK-NEXT: | |-CapturedDecl {{.*}} <<invalid sloc>> <invalid sloc> nothrow
45 // CHECK-NEXT: | | |-ForStmt {{.*}} <line:5:3, line:6:5>
46 // CHECK-NEXT: | | | |-DeclStmt {{.*}} <line:5:8, col:17>
47 // CHECK-NEXT: | | | | `-VarDecl {{.*}} <col:8, col:16> col:12 used i 'int' cinit
48 // CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} <col:16> 'int' 0
49 // CHECK-NEXT: | | | |-<<<NULL>>>
50 // CHECK-NEXT: | | | |-BinaryOperator {{.*}} <col:19, col:23> 'int' '<'
51 // CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} <col:19> 'int' <LValueToRValue>
52 // CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} <col:19> 'int' lvalue Var {{.*}} 'i' 'int'
53 // CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} <col:23> 'int' <LValueToRValue>
54 // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} <col:23> 'int' lvalue ParmVar {{.*}} 'x' 'int'
55 // CHECK-NEXT: | | | |-UnaryOperator {{.*}} <col:26, col:27> 'int' postfix '++'
56 // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} <col:26> 'int' lvalue Var {{.*}} 'i' 'int'
57 // CHECK-NEXT: | | | `-NullStmt {{.*}} <line:6:5>
58 // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} <line:4:1> col:1 implicit .global_tid. 'const int *const restrict'
59 // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} <col:1> col:1 implicit .bound_tid. 'const int *const restrict'
60 // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} <col:1> col:1 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-parallel-for-simd.c:4:1) *const restrict'
61 // CHECK-NEXT: | | `-VarDecl {{.*}} <line:5:8, col:16> col:12 used i 'int' cinit
62 // CHECK-NEXT: | | `-IntegerLiteral {{.*}} <col:16> 'int' 0
63 // CHECK-NEXT: | `-DeclRefExpr {{.*}} <col:23> 'int' lvalue ParmVar {{.*}} 'x' 'int'
64 // CHECK-NEXT: |-FunctionDecl {{.*}} <line:9:1, line:14:1> line:9:6 test_two 'void (int, int)'
65 // CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:15, col:19> col:19 used x 'int'
66 // CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:22, col:26> col:26 used y 'int'
67 // CHECK-NEXT: | `-CompoundStmt {{.*}} <col:29, line:14:1>
68 // CHECK-NEXT: | `-OMPParallelForSimdDirective {{.*}} <line:10:1, col:30>
69 // CHECK-NEXT: | `-CapturedStmt {{.*}} <line:11:3, line:13:7>
70 // CHECK-NEXT: | |-CapturedDecl {{.*}} <<invalid sloc>> <invalid sloc> nothrow
71 // CHECK-NEXT: | | |-ForStmt {{.*}} <line:11:3, line:13:7>
72 // CHECK-NEXT: | | | |-DeclStmt {{.*}} <line:11:8, col:17>
73 // CHECK-NEXT: | | | | `-VarDecl {{.*}} <col:8, col:16> col:12 used i 'int' cinit
74 // CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} <col:16> 'int' 0
75 // CHECK-NEXT: | | | |-<<<NULL>>>
76 // CHECK-NEXT: | | | |-BinaryOperator {{.*}} <col:19, col:23> 'int' '<'
77 // CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} <col:19> 'int' <LValueToRValue>
78 // CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} <col:19> 'int' lvalue Var {{.*}} 'i' 'int'
79 // CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} <col:23> 'int' <LValueToRValue>
80 // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} <col:23> 'int' lvalue ParmVar {{.*}} 'x' 'int'
81 // CHECK-NEXT: | | | |-UnaryOperator {{.*}} <col:26, col:27> 'int' postfix '++'
82 // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} <col:26> 'int' lvalue Var {{.*}} 'i' 'int'
83 // CHECK-NEXT: | | | `-ForStmt {{.*}} <line:12:5, line:13:7>
84 // CHECK-NEXT: | | | |-DeclStmt {{.*}} <line:12:10, col:19>
85 // CHECK-NEXT: | | | | `-VarDecl {{.*}} <col:10, col:18> col:14 used i 'int' cinit
86 // CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} <col:18> 'int' 0
87 // CHECK-NEXT: | | | |-<<<NULL>>>
88 // CHECK-NEXT: | | | |-BinaryOperator {{.*}} <col:21, col:25> 'int' '<'
89 // CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} <col:21> 'int' <LValueToRValue>
90 // CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} <col:21> 'int' lvalue Var {{.*}} 'i' 'int'
91 // CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} <col:25> 'int' <LValueToRValue>
92 // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} <col:25> 'int' lvalue ParmVar {{.*}} 'y' 'int'
93 // CHECK-NEXT: | | | |-UnaryOperator {{.*}} <col:28, col:29> 'int' postfix '++'
94 // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} <col:28> 'int' lvalue Var {{.*}} 'i' 'int'
95 // CHECK-NEXT: | | | `-NullStmt {{.*}} <line:13:7>
96 // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} <line:10:1> col:1 implicit .global_tid. 'const int *const restrict'
97 // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} <col:1> col:1 implicit .bound_tid. 'const int *const restrict'
98 // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} <col:1> col:1 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-parallel-for-simd.c:10:1) *const restrict'
99 // CHECK-NEXT: | | |-VarDecl {{.*}} <line:11:8, col:16> col:12 used i 'int' cinit
100 // CHECK-NEXT: | | | `-IntegerLiteral {{.*}} <col:16> 'int' 0
101 // CHECK-NEXT: | | `-VarDecl {{.*}} <line:12:10, col:18> col:14 used i 'int' cinit
102 // CHECK-NEXT: | | `-IntegerLiteral {{.*}} <col:18> 'int' 0
103 // CHECK-NEXT: | |-DeclRefExpr {{.*}} <line:11:23> 'int' lvalue ParmVar {{.*}} 'x' 'int'
104 // CHECK-NEXT: | `-DeclRefExpr {{.*}} <line:12:25> 'int' lvalue ParmVar {{.*}} 'y' 'int'
105 // CHECK-NEXT: |-FunctionDecl {{.*}} <line:16:1, line:21:1> line:16:6 test_three 'void (int, int)'
106 // CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:17, col:21> col:21 used x 'int'
107 // CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:24, col:28> col:28 used y 'int'
108 // CHECK-NEXT: | `-CompoundStmt {{.*}} <col:31, line:21:1>
109 // CHECK-NEXT: | `-OMPParallelForSimdDirective {{.*}} <line:17:1, col:42>
110 // CHECK-NEXT: | |-OMPCollapseClause {{.*}} <col:31, col:41>
111 // CHECK-NEXT: | | `-ConstantExpr {{.*}} <col:40> 'int'
112 // CHECK-NEXT: | | `-IntegerLiteral {{.*}} <col:40> 'int' 1
113 // CHECK-NEXT: | `-CapturedStmt {{.*}} <line:18:3, line:20:7>
114 // CHECK-NEXT: | |-CapturedDecl {{.*}} <<invalid sloc>> <invalid sloc> nothrow
115 // CHECK-NEXT: | | |-ForStmt {{.*}} <line:18:3, line:20:7>
116 // CHECK-NEXT: | | | |-DeclStmt {{.*}} <line:18:8, col:17>
117 // CHECK-NEXT: | | | | `-VarDecl {{.*}} <col:8, col:16> col:12 used i 'int' cinit
118 // CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} <col:16> 'int' 0
119 // CHECK-NEXT: | | | |-<<<NULL>>>
120 // CHECK-NEXT: | | | |-BinaryOperator {{.*}} <col:19, col:23> 'int' '<'
121 // CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} <col:19> 'int' <LValueToRValue>
122 // CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} <col:19> 'int' lvalue Var {{.*}} 'i' 'int'
123 // CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} <col:23> 'int' <LValueToRValue>
124 // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} <col:23> 'int' lvalue ParmVar {{.*}} 'x' 'int'
125 // CHECK-NEXT: | | | |-UnaryOperator {{.*}} <col:26, col:27> 'int' postfix '++'
126 // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} <col:26> 'int' lvalue Var {{.*}} 'i' 'int'
127 // CHECK-NEXT: | | | `-ForStmt {{.*}} <line:19:5, line:20:7>
128 // CHECK-NEXT: | | | |-DeclStmt {{.*}} <line:19:10, col:19>
129 // CHECK-NEXT: | | | | `-VarDecl {{.*}} <col:10, col:18> col:14 used i 'int' cinit
130 // CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} <col:18> 'int' 0
131 // CHECK-NEXT: | | | |-<<<NULL>>>
132 // CHECK-NEXT: | | | |-BinaryOperator {{.*}} <col:21, col:25> 'int' '<'
133 // CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} <col:21> 'int' <LValueToRValue>
134 // CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} <col:21> 'int' lvalue Var {{.*}} 'i' 'int'
135 // CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} <col:25> 'int' <LValueToRValue>
136 // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} <col:25> 'int' lvalue ParmVar {{.*}} 'y' 'int'
137 // CHECK-NEXT: | | | |-UnaryOperator {{.*}} <col:28, col:29> 'int' postfix '++'
138 // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} <col:28> 'int' lvalue Var {{.*}} 'i' 'int'
139 // CHECK-NEXT: | | | `-NullStmt {{.*}} <line:20:7>
140 // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} <line:17:1> col:1 implicit .global_tid. 'const int *const restrict'
141 // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} <col:1> col:1 implicit .bound_tid. 'const int *const restrict'
142 // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} <col:1> col:1 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-parallel-for-simd.c:17:1) *const restrict'
143 // CHECK-NEXT: | | |-VarDecl {{.*}} <line:18:8, col:16> col:12 used i 'int' cinit
144 // CHECK-NEXT: | | | `-IntegerLiteral {{.*}} <col:16> 'int' 0
145 // CHECK-NEXT: | | `-VarDecl {{.*}} <line:19:10, col:18> col:14 used i 'int' cinit
146 // CHECK-NEXT: | | `-IntegerLiteral {{.*}} <col:18> 'int' 0
147 // CHECK-NEXT: | |-DeclRefExpr {{.*}} <line:18:23> 'int' lvalue ParmVar {{.*}} 'x' 'int'
148 // CHECK-NEXT: | `-DeclRefExpr {{.*}} <line:19:25> 'int' lvalue ParmVar {{.*}} 'y' 'int'
149 // CHECK-NEXT: |-FunctionDecl {{.*}} <line:23:1, line:28:1> line:23:6 test_four 'void (int, int)'
150 // CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:16, col:20> col:20 used x 'int'
151 // CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:23, col:27> col:27 used y 'int'
152 // CHECK-NEXT: | `-CompoundStmt {{.*}} <col:30, line:28:1>
153 // CHECK-NEXT: | `-OMPParallelForSimdDirective {{.*}} <line:24:1, col:42>
154 // CHECK-NEXT: | |-OMPCollapseClause {{.*}} <col:31, col:41>
155 // CHECK-NEXT: | | `-ConstantExpr {{.*}} <col:40> 'int'
156 // CHECK-NEXT: | | `-IntegerLiteral {{.*}} <col:40> 'int' 2
157 // CHECK-NEXT: | `-CapturedStmt {{.*}} <line:25:3, line:27:7>
158 // CHECK-NEXT: | |-CapturedDecl {{.*}} <<invalid sloc>> <invalid sloc> nothrow
159 // CHECK-NEXT: | | |-ForStmt {{.*}} <line:25:3, line:27:7>
160 // CHECK-NEXT: | | | |-DeclStmt {{.*}} <line:25:8, col:17>
161 // CHECK-NEXT: | | | | `-VarDecl {{.*}} <col:8, col:16> col:12 used i 'int' cinit
162 // CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} <col:16> 'int' 0
163 // CHECK-NEXT: | | | |-<<<NULL>>>
164 // CHECK-NEXT: | | | |-BinaryOperator {{.*}} <col:19, col:23> 'int' '<'
165 // CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} <col:19> 'int' <LValueToRValue>
166 // CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} <col:19> 'int' lvalue Var {{.*}} 'i' 'int'
167 // CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} <col:23> 'int' <LValueToRValue>
168 // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} <col:23> 'int' lvalue ParmVar {{.*}} 'x' 'int'
169 // CHECK-NEXT: | | | |-UnaryOperator {{.*}} <col:26, col:27> 'int' postfix '++'
170 // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} <col:26> 'int' lvalue Var {{.*}} 'i' 'int'
171 // CHECK-NEXT: | | | `-ForStmt {{.*}} <line:26:5, line:27:7>
172 // CHECK-NEXT: | | | |-DeclStmt {{.*}} <line:26:10, col:19>
173 // CHECK-NEXT: | | | | `-VarDecl {{.*}} <col:10, col:18> col:14 used i 'int' cinit
174 // CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} <col:18> 'int' 0
175 // CHECK-NEXT: | | | |-<<<NULL>>>
176 // CHECK-NEXT: | | | |-BinaryOperator {{.*}} <col:21, col:25> 'int' '<'
177 // CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} <col:21> 'int' <LValueToRValue>
178 // CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} <col:21> 'int' lvalue Var {{.*}} 'i' 'int'
179 // CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} <col:25> 'int' <LValueToRValue>
180 // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} <col:25> 'int' lvalue ParmVar {{.*}} 'y' 'int'
181 // CHECK-NEXT: | | | |-UnaryOperator {{.*}} <col:28, col:29> 'int' postfix '++'
182 // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} <col:28> 'int' lvalue Var {{.*}} 'i' 'int'
183 // CHECK-NEXT: | | | `-NullStmt {{.*}} <line:27:7>
184 // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} <line:24:1> col:1 implicit .global_tid. 'const int *const restrict'
185 // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} <col:1> col:1 implicit .bound_tid. 'const int *const restrict'
186 // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} <col:1> col:1 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-parallel-for-simd.c:24:1) *const restrict'
187 // CHECK-NEXT: | | |-VarDecl {{.*}} <line:25:8, col:16> col:12 used i 'int' cinit
188 // CHECK-NEXT: | | | `-IntegerLiteral {{.*}} <col:16> 'int' 0
189 // CHECK-NEXT: | | `-VarDecl {{.*}} <line:26:10, col:18> col:14 used i 'int' cinit
190 // CHECK-NEXT: | | `-IntegerLiteral {{.*}} <col:18> 'int' 0
191 // CHECK-NEXT: | |-DeclRefExpr {{.*}} <line:25:23> 'int' lvalue ParmVar {{.*}} 'x' 'int'
192 // CHECK-NEXT: | `-DeclRefExpr {{.*}} <line:26:25> 'int' lvalue ParmVar {{.*}} 'y' 'int'
193 // CHECK-NEXT: `-FunctionDecl {{.*}} <line:30:1, line:36:1> line:30:6 test_five 'void (int, int, int)'
194 // CHECK-NEXT: |-ParmVarDecl {{.*}} <col:16, col:20> col:20 used x 'int'
195 // CHECK-NEXT: |-ParmVarDecl {{.*}} <col:23, col:27> col:27 used y 'int'
196 // CHECK-NEXT: |-ParmVarDecl {{.*}} <col:30, col:34> col:34 used z 'int'
197 // CHECK-NEXT: `-CompoundStmt {{.*}} <col:37, line:36:1>
198 // CHECK-NEXT: `-OMPParallelForSimdDirective {{.*}} <line:31:1, col:42>
199 // CHECK-NEXT: |-OMPCollapseClause {{.*}} <col:31, col:41>
200 // CHECK-NEXT: | `-ConstantExpr {{.*}} <col:40> 'int'
201 // CHECK-NEXT: | `-IntegerLiteral {{.*}} <col:40> 'int' 2
202 // CHECK-NEXT: `-CapturedStmt {{.*}} <line:32:3, line:35:9>
203 // CHECK-NEXT: |-CapturedDecl {{.*}} <<invalid sloc>> <invalid sloc> nothrow
204 // CHECK-NEXT: | |-ForStmt {{.*}} <line:32:3, line:35:9>
205 // CHECK-NEXT: | | |-DeclStmt {{.*}} <line:32:8, col:17>
206 // CHECK-NEXT: | | | `-VarDecl {{.*}} <col:8, col:16> col:12 used i 'int' cinit
207 // CHECK-NEXT: | | | `-IntegerLiteral {{.*}} <col:16> 'int' 0
208 // CHECK-NEXT: | | |-<<<NULL>>>
209 // CHECK-NEXT: | | |-BinaryOperator {{.*}} <col:19, col:23> 'int' '<'
210 // CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} <col:19> 'int' <LValueToRValue>
211 // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} <col:19> 'int' lvalue Var {{.*}} 'i' 'int'
212 // CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} <col:23> 'int' <LValueToRValue>
213 // CHECK-NEXT: | | | `-DeclRefExpr {{.*}} <col:23> 'int' lvalue ParmVar {{.*}} 'x' 'int'
214 // CHECK-NEXT: | | |-UnaryOperator {{.*}} <col:26, col:27> 'int' postfix '++'
215 // CHECK-NEXT: | | | `-DeclRefExpr {{.*}} <col:26> 'int' lvalue Var {{.*}} 'i' 'int'
216 // CHECK-NEXT: | | `-ForStmt {{.*}} <line:33:5, line:35:9>
217 // CHECK-NEXT: | | |-DeclStmt {{.*}} <line:33:10, col:19>
218 // CHECK-NEXT: | | | `-VarDecl {{.*}} <col:10, col:18> col:14 used i 'int' cinit
219 // CHECK-NEXT: | | | `-IntegerLiteral {{.*}} <col:18> 'int' 0
220 // CHECK-NEXT: | | |-<<<NULL>>>
221 // CHECK-NEXT: | | |-BinaryOperator {{.*}} <col:21, col:25> 'int' '<'
222 // CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} <col:21> 'int' <LValueToRValue>
223 // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} <col:21> 'int' lvalue Var {{.*}} 'i' 'int'
224 // CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} <col:25> 'int' <LValueToRValue>
225 // CHECK-NEXT: | | | `-DeclRefExpr {{.*}} <col:25> 'int' lvalue ParmVar {{.*}} 'y' 'int'
226 // CHECK-NEXT: | | |-UnaryOperator {{.*}} <col:28, col:29> 'int' postfix '++'
227 // CHECK-NEXT: | | | `-DeclRefExpr {{.*}} <col:28> 'int' lvalue Var {{.*}} 'i' 'int'
228 // CHECK-NEXT: | | `-ForStmt {{.*}} <line:34:7, line:35:9>
229 // CHECK-NEXT: | | |-DeclStmt {{.*}} <line:34:12, col:21>
230 // CHECK-NEXT: | | | `-VarDecl {{.*}} <col:12, col:20> col:16 used i 'int' cinit
231 // CHECK-NEXT: | | | `-IntegerLiteral {{.*}} <col:20> 'int' 0
232 // CHECK-NEXT: | | |-<<<NULL>>>
233 // CHECK-NEXT: | | |-BinaryOperator {{.*}} <col:23, col:27> 'int' '<'
234 // CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} <col:23> 'int' <LValueToRValue>
235 // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} <col:23> 'int' lvalue Var {{.*}} 'i' 'int'
236 // CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} <col:27> 'int' <LValueToRValue>
237 // CHECK-NEXT: | | | `-DeclRefExpr {{.*}} <col:27> 'int' lvalue ParmVar {{.*}} 'z' 'int'
238 // CHECK-NEXT: | | |-UnaryOperator {{.*}} <col:30, col:31> 'int' postfix '++'
239 // CHECK-NEXT: | | | `-DeclRefExpr {{.*}} <col:30> 'int' lvalue Var {{.*}} 'i' 'int'
240 // CHECK-NEXT: | | `-NullStmt {{.*}} <line:35:9>
241 // CHECK-NEXT: | |-ImplicitParamDecl {{.*}} <line:31:1> col:1 implicit .global_tid. 'const int *const restrict'
242 // CHECK-NEXT: | |-ImplicitParamDecl {{.*}} <col:1> col:1 implicit .bound_tid. 'const int *const restrict'
243 // CHECK-NEXT: | |-ImplicitParamDecl {{.*}} <col:1> col:1 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-parallel-for-simd.c:31:1) *const restrict'
244 // CHECK-NEXT: | |-VarDecl {{.*}} <line:32:8, col:16> col:12 used i 'int' cinit
245 // CHECK-NEXT: | | `-IntegerLiteral {{.*}} <col:16> 'int' 0
246 // CHECK-NEXT: | |-VarDecl {{.*}} <line:33:10, col:18> col:14 used i 'int' cinit
247 // CHECK-NEXT: | | `-IntegerLiteral {{.*}} <col:18> 'int' 0
248 // CHECK-NEXT: | `-VarDecl {{.*}} <line:34:12, col:20> col:16 used i 'int' cinit
249 // CHECK-NEXT: | `-IntegerLiteral {{.*}} <col:20> 'int' 0
250 // CHECK-NEXT: |-DeclRefExpr {{.*}} <line:32:23> 'int' lvalue ParmVar {{.*}} 'x' 'int'
251 // CHECK-NEXT: |-DeclRefExpr {{.*}} <line:33:25> 'int' lvalue ParmVar {{.*}} 'y' 'int'
252 // CHECK-NEXT: `-DeclRefExpr {{.*}} <line:34:27> 'int' lvalue ParmVar {{.*}} 'z' 'int'
253