r356569 - [NFC][clang][astdump] Some baseline tests for OpenMP

Richard Smith via cfe-commits cfe-commits at lists.llvm.org
Fri May 31 16:00:09 PDT 2019


These are change detector tests (
https://testing.googleblog.com/2015/01/testing-on-toilet-change-detector-tests.html)
and create a significant maintenance burden that exceeds their value.

Please either reduce these to tests that actually test specific salient
properties (rather than just being assertions that the AST does not change)
or remove them.

On Wed, 20 Mar 2019 at 11:16, Roman Lebedev via cfe-commits <
cfe-commits at lists.llvm.org> wrote:

> Author: lebedevri
> Date: Wed Mar 20 09:31:47 2019
> New Revision: 356569
>
> URL: http://llvm.org/viewvc/llvm-project?rev=356569&view=rev
> Log:
> [NFC][clang][astdump] Some baseline tests for OpenMP
>
> Summary:
> Split off from D59214.
> Not a fully exhaustive test coverage, but better than what there currently
> is.
>
> Differential Revision: https://reviews.llvm.org/D59306
>
> Added:
>     cfe/trunk/test/AST/ast-dump-openmp-atomic.c
>     cfe/trunk/test/AST/ast-dump-openmp-barrier.c
>     cfe/trunk/test/AST/ast-dump-openmp-cancel.c
>     cfe/trunk/test/AST/ast-dump-openmp-cancellation-point.c
>     cfe/trunk/test/AST/ast-dump-openmp-critical.c
>     cfe/trunk/test/AST/ast-dump-openmp-distribute-parallel-for-simd.c
>     cfe/trunk/test/AST/ast-dump-openmp-distribute-parallel-for.c
>     cfe/trunk/test/AST/ast-dump-openmp-distribute-simd.c
>     cfe/trunk/test/AST/ast-dump-openmp-distribute.c
>     cfe/trunk/test/AST/ast-dump-openmp-flush.c
>     cfe/trunk/test/AST/ast-dump-openmp-for-simd.c
>     cfe/trunk/test/AST/ast-dump-openmp-for.c
>     cfe/trunk/test/AST/ast-dump-openmp-master.c
>     cfe/trunk/test/AST/ast-dump-openmp-ordered.c
>     cfe/trunk/test/AST/ast-dump-openmp-parallel-for-simd.c
>     cfe/trunk/test/AST/ast-dump-openmp-parallel-for.c
>     cfe/trunk/test/AST/ast-dump-openmp-parallel-master-XFAIL.c
>     cfe/trunk/test/AST/ast-dump-openmp-parallel-sections.c
>     cfe/trunk/test/AST/ast-dump-openmp-parallel.c
>     cfe/trunk/test/AST/ast-dump-openmp-section.c
>     cfe/trunk/test/AST/ast-dump-openmp-sections.c
>     cfe/trunk/test/AST/ast-dump-openmp-simd.c
>     cfe/trunk/test/AST/ast-dump-openmp-single.c
>     cfe/trunk/test/AST/ast-dump-openmp-target-data.c
>     cfe/trunk/test/AST/ast-dump-openmp-target-enter-data.c
>     cfe/trunk/test/AST/ast-dump-openmp-target-exit-data.c
>     cfe/trunk/test/AST/ast-dump-openmp-target-parallel-for-simd.c
>     cfe/trunk/test/AST/ast-dump-openmp-target-parallel-for.c
>     cfe/trunk/test/AST/ast-dump-openmp-target-parallel.c
>     cfe/trunk/test/AST/ast-dump-openmp-target-simd.c
>
> cfe/trunk/test/AST/ast-dump-openmp-target-teams-distribute-parallel-for-simd.c
>
> cfe/trunk/test/AST/ast-dump-openmp-target-teams-distribute-parallel-for.c
>     cfe/trunk/test/AST/ast-dump-openmp-target-teams-distribute-simd.c
>     cfe/trunk/test/AST/ast-dump-openmp-target-teams-distribute.c
>     cfe/trunk/test/AST/ast-dump-openmp-target-teams.c
>     cfe/trunk/test/AST/ast-dump-openmp-target-update.c
>     cfe/trunk/test/AST/ast-dump-openmp-target.c
>     cfe/trunk/test/AST/ast-dump-openmp-task.c
>     cfe/trunk/test/AST/ast-dump-openmp-taskgroup.c
>     cfe/trunk/test/AST/ast-dump-openmp-taskloop-simd.c
>     cfe/trunk/test/AST/ast-dump-openmp-taskloop.c
>     cfe/trunk/test/AST/ast-dump-openmp-taskwait.c
>     cfe/trunk/test/AST/ast-dump-openmp-taskyield.c
>     cfe/trunk/test/AST/ast-dump-openmp-teams-distribute-parallel-for-simd.c
>     cfe/trunk/test/AST/ast-dump-openmp-teams-distribute-parallel-for.c
>     cfe/trunk/test/AST/ast-dump-openmp-teams-distribute-simd.c
>     cfe/trunk/test/AST/ast-dump-openmp-teams-distribute.c
>     cfe/trunk/test/AST/ast-dump-openmp-teams.c
>
> Added: cfe/trunk/test/AST/ast-dump-openmp-atomic.c
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/test/AST/ast-dump-openmp-atomic.c?rev=356569&view=auto
>
> ==============================================================================
> --- cfe/trunk/test/AST/ast-dump-openmp-atomic.c (added)
> +++ cfe/trunk/test/AST/ast-dump-openmp-atomic.c Wed Mar 20 09:31:47 2019
> @@ -0,0 +1,18 @@
> +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s |
> FileCheck --match-full-lines -implicit-check-not=openmp_structured_block %s
> +
> +void test(int i) {
> +#pragma omp atomic
> +  ++i;
> +}
> +
> +// CHECK: TranslationUnitDecl {{.*}} <<invalid sloc>> <invalid sloc>
> +// CHECK: `-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-atomic.c:3:1,
> line:6:1> line:3:6 test 'void (int)'
> +// CHECK-NEXT:   |-ParmVarDecl {{.*}} <col:11, col:15> col:15 used i 'int'
> +// CHECK-NEXT:   `-CompoundStmt {{.*}} <col:18, line:6:1>
> +// CHECK-NEXT:     `-OMPAtomicDirective {{.*}} <line:4:9, col:19>
> +// CHECK-NEXT:       `-CapturedStmt {{.*}} <line:5:3, col:5>
> +// CHECK-NEXT:         |-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc>
> +// CHECK-NEXT:         | |-UnaryOperator {{.*}} <col:3, col:5> 'int'
> prefix '++'
> +// CHECK-NEXT:         | | `-DeclRefExpr {{.*}} <col:5> 'int' lvalue
> ParmVar {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | `-ImplicitParamDecl {{.*}} <line:4:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-atomic.c:4:9) *const restrict'
> +// CHECK-NEXT:         `-DeclRefExpr {{.*}} <line:5:5> 'int' lvalue
> ParmVar {{.*}} 'i' 'int'
>
> Added: cfe/trunk/test/AST/ast-dump-openmp-barrier.c
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/test/AST/ast-dump-openmp-barrier.c?rev=356569&view=auto
>
> ==============================================================================
> --- cfe/trunk/test/AST/ast-dump-openmp-barrier.c (added)
> +++ cfe/trunk/test/AST/ast-dump-openmp-barrier.c Wed Mar 20 09:31:47 2019
> @@ -0,0 +1,10 @@
> +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s |
> FileCheck --match-full-lines -implicit-check-not=openmp_structured_block %s
> +
> +void test() {
> +#pragma omp barrier
> +}
> +
> +// CHECK: TranslationUnitDecl {{.*}} <<invalid sloc>> <invalid sloc>
> +// CHECK: `-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-barrier.c:3:1,
> line:5:1> line:3:6 test 'void ()'
> +// CHECK-NEXT:   `-CompoundStmt {{.*}} <col:13, line:5:1>
> +// CHECK-NEXT:     `-OMPBarrierDirective {{.*}} <line:4:9, col:20>
>
> Added: cfe/trunk/test/AST/ast-dump-openmp-cancel.c
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/test/AST/ast-dump-openmp-cancel.c?rev=356569&view=auto
>
> ==============================================================================
> --- cfe/trunk/test/AST/ast-dump-openmp-cancel.c (added)
> +++ cfe/trunk/test/AST/ast-dump-openmp-cancel.c Wed Mar 20 09:31:47 2019
> @@ -0,0 +1,20 @@
> +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s |
> FileCheck --match-full-lines -implicit-check-not=openmp_structured_block %s
> +
> +void test() {
> +#pragma omp parallel
> +  {
> +#pragma omp cancel parallel
> +  }
> +}
> +
> +// CHECK: TranslationUnitDecl {{.*}} <<invalid sloc>> <invalid sloc>
> +// CHECK: `-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-cancel.c:3:1,
> line:8:1> line:3:6 test 'void ()'
> +// CHECK-NEXT:   `-CompoundStmt {{.*}} <col:13, line:8:1>
> +// CHECK-NEXT:     `-OMPParallelDirective {{.*}} <line:4:9, col:21>
> +// CHECK-NEXT:       `-CapturedStmt {{.*}} <line:5:3, line:7:3>
> +// CHECK-NEXT:         `-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc> nothrow
> +// CHECK-NEXT:           |-CompoundStmt {{.*}} <line:5:3, line:7:3>
> +// CHECK-NEXT:           | `-OMPCancelDirective {{.*}} <line:6:9, col:28>
> +// CHECK-NEXT:           |-ImplicitParamDecl {{.*}} <line:4:9> col:9
> implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT:           |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT:           `-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-cancel.c:4:9) *const restrict'
>
> Added: cfe/trunk/test/AST/ast-dump-openmp-cancellation-point.c
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/test/AST/ast-dump-openmp-cancellation-point.c?rev=356569&view=auto
>
> ==============================================================================
> --- cfe/trunk/test/AST/ast-dump-openmp-cancellation-point.c (added)
> +++ cfe/trunk/test/AST/ast-dump-openmp-cancellation-point.c Wed Mar 20
> 09:31:47 2019
> @@ -0,0 +1,20 @@
> +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s |
> FileCheck --match-full-lines -implicit-check-not=openmp_structured_block %s
> +
> +void test() {
> +#pragma omp parallel
> +  {
> +#pragma omp cancellation point parallel
> +  }
> +}
> +
> +// CHECK: TranslationUnitDecl {{.*}} <<invalid sloc>> <invalid sloc>
> +// CHECK: `-FunctionDecl {{.*}}
> <{{.*}}ast-dump-openmp-cancellation-point.c:3:1, line:8:1> line:3:6 test
> 'void ()'
> +// CHECK-NEXT:   `-CompoundStmt {{.*}} <col:13, line:8:1>
> +// CHECK-NEXT:     `-OMPParallelDirective {{.*}} <line:4:9, col:21>
> +// CHECK-NEXT:       `-CapturedStmt {{.*}} <line:5:3, line:7:3>
> +// CHECK-NEXT:         `-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc> nothrow
> +// CHECK-NEXT:           |-CompoundStmt {{.*}} <line:5:3, line:7:3>
> +// CHECK-NEXT:           | `-OMPCancellationPointDirective {{.*}}
> <line:6:9, col:40>
> +// CHECK-NEXT:           |-ImplicitParamDecl {{.*}} <line:4:9> col:9
> implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT:           |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT:           `-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-cancellation-point.c:4:9) *const restrict'
>
> Added: cfe/trunk/test/AST/ast-dump-openmp-critical.c
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/test/AST/ast-dump-openmp-critical.c?rev=356569&view=auto
>
> ==============================================================================
> --- cfe/trunk/test/AST/ast-dump-openmp-critical.c (added)
> +++ cfe/trunk/test/AST/ast-dump-openmp-critical.c Wed Mar 20 09:31:47 2019
> @@ -0,0 +1,15 @@
> +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s |
> FileCheck --match-full-lines -implicit-check-not=openmp_structured_block %s
> +
> +void test() {
> +#pragma omp critical
> +  ;
> +}
> +
> +// CHECK: TranslationUnitDecl {{.*}} <<invalid sloc>> <invalid sloc>
> +// CHECK: `-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-critical.c:3:1,
> line:6:1> line:3:6 test 'void ()'
> +// CHECK-NEXT:   `-CompoundStmt {{.*}} <col:13, line:6:1>
> +// CHECK-NEXT:     `-OMPCriticalDirective {{.*}} <line:4:9, col:21>
> +// CHECK-NEXT:       `-CapturedStmt {{.*}} <line:5:3>
> +// CHECK-NEXT:         `-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc>
> +// CHECK-NEXT:           |-NullStmt {{.*}} <col:3>
> +// CHECK-NEXT:           `-ImplicitParamDecl {{.*}} <line:4:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-critical.c:4:9) *const restrict'
>
> Added: cfe/trunk/test/AST/ast-dump-openmp-distribute-parallel-for-simd.c
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/test/AST/ast-dump-openmp-distribute-parallel-for-simd.c?rev=356569&view=auto
>
> ==============================================================================
> --- cfe/trunk/test/AST/ast-dump-openmp-distribute-parallel-for-simd.c
> (added)
> +++ cfe/trunk/test/AST/ast-dump-openmp-distribute-parallel-for-simd.c Wed
> Mar 20 09:31:47 2019
> @@ -0,0 +1,262 @@
> +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s |
> FileCheck --match-full-lines -implicit-check-not=openmp_structured_block %s
> +
> +void test_one(int x) {
> +#pragma omp distribute parallel for simd
> +  for (int i = 0; i < x; i++)
> +    ;
> +}
> +
> +void test_two(int x, int y) {
> +#pragma omp distribute parallel for simd
> +  for (int i = 0; i < x; i++)
> +    for (int i = 0; i < y; i++)
> +      ;
> +}
> +
> +void test_three(int x, int y) {
> +#pragma omp distribute parallel for simd collapse(1)
> +  for (int i = 0; i < x; i++)
> +    for (int i = 0; i < y; i++)
> +      ;
> +}
> +
> +void test_four(int x, int y) {
> +#pragma omp distribute parallel for simd collapse(2)
> +  for (int i = 0; i < x; i++)
> +    for (int i = 0; i < y; i++)
> +      ;
> +}
> +
> +void test_five(int x, int y, int z) {
> +#pragma omp distribute parallel for simd collapse(2)
> +  for (int i = 0; i < x; i++)
> +    for (int i = 0; i < y; i++)
> +      for (int i = 0; i < z; i++)
> +        ;
> +}
> +
> +// CHECK: TranslationUnitDecl {{.*}} <<invalid sloc>> <invalid sloc>
> +// CHECK: |-FunctionDecl {{.*}}
> <{{.*}}ast-dump-openmp-distribute-parallel-for-simd.c:3:1, line:7:1>
> line:3:6 test_one 'void (int)'
> +// CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:15, col:19> col:19 used x 'int'
> +// CHECK-NEXT: | `-CompoundStmt {{.*}} <col:22, line:7:1>
> +// CHECK-NEXT: |   `-OMPDistributeParallelForSimdDirective {{.*}}
> <line:4:9, col:41>
> +// CHECK-NEXT: |     `-CapturedStmt {{.*}} <line:5:3, line:6:5>
> +// CHECK-NEXT: |       |-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc> nothrow
> +// CHECK-NEXT: |       | |-ForStmt {{.*}} <line:5:3, line:6:5>
> +// CHECK-NEXT: |       | | |-DeclStmt {{.*}} <line:5:8, col:17>
> +// CHECK-NEXT: |       | | | `-VarDecl {{.*}} <col:8, col:16> col:12 used
> i 'int' cinit
> +// CHECK-NEXT: |       | | |   `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       | | |-<<<NULL>>>
> +// CHECK-NEXT: |       | | |-BinaryOperator {{.*}} <col:19, col:23> 'int'
> '<'
> +// CHECK-NEXT: |       | | | |-ImplicitCastExpr {{.*}} <col:19> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | | | | `-DeclRefExpr {{.*}} <col:19> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | `-ImplicitCastExpr {{.*}} <col:23> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | | |   `-DeclRefExpr {{.*}} <col:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | |-UnaryOperator {{.*}} <col:26, col:27> 'int'
> postfix '++'
> +// CHECK-NEXT: |       | | | `-DeclRefExpr {{.*}} <col:26> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | `-NullStmt {{.*}} <line:6:5>
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <line:4:9> col:9
> implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit used .previous.lb. 'const unsigned long'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit used .previous.ub. 'const unsigned long'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-distribute-parallel-for-simd.c:4:9) *const restrict'
> +// CHECK-NEXT: |       | `-VarDecl {{.*}} <line:5:8, col:16> col:12 used
> i 'int' cinit
> +// CHECK-NEXT: |       |   `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       `-DeclRefExpr {{.*}} <col:23> 'int' lvalue ParmVar
> {{.*}} 'x' 'int'
> +// CHECK-NEXT: |-FunctionDecl {{.*}} <line:9:1, line:14:1> line:9:6
> test_two 'void (int, int)'
> +// CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:15, col:19> col:19 used x 'int'
> +// CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:22, col:26> col:26 used y 'int'
> +// CHECK-NEXT: | `-CompoundStmt {{.*}} <col:29, line:14:1>
> +// CHECK-NEXT: |   `-OMPDistributeParallelForSimdDirective {{.*}}
> <line:10:9, col:41>
> +// CHECK-NEXT: |     `-CapturedStmt {{.*}} <line:11:3, line:13:7>
> +// CHECK-NEXT: |       |-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc> nothrow
> +// CHECK-NEXT: |       | |-ForStmt {{.*}} <line:11:3, line:13:7>
> +// CHECK-NEXT: |       | | |-DeclStmt {{.*}} <line:11:8, col:17>
> +// CHECK-NEXT: |       | | | `-VarDecl {{.*}} <col:8, col:16> col:12 used
> i 'int' cinit
> +// CHECK-NEXT: |       | | |   `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       | | |-<<<NULL>>>
> +// CHECK-NEXT: |       | | |-BinaryOperator {{.*}} <col:19, col:23> 'int'
> '<'
> +// CHECK-NEXT: |       | | | |-ImplicitCastExpr {{.*}} <col:19> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | | | | `-DeclRefExpr {{.*}} <col:19> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | `-ImplicitCastExpr {{.*}} <col:23> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | | |   `-DeclRefExpr {{.*}} <col:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | |-UnaryOperator {{.*}} <col:26, col:27> 'int'
> postfix '++'
> +// CHECK-NEXT: |       | | | `-DeclRefExpr {{.*}} <col:26> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | `-ForStmt {{.*}} <line:12:5, line:13:7>
> +// CHECK-NEXT: |       | |   |-DeclStmt {{.*}} <line:12:10, col:19>
> +// CHECK-NEXT: |       | |   | `-VarDecl {{.*}} <col:10, col:18> col:14
> used i 'int' cinit
> +// CHECK-NEXT: |       | |   |   `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT: |       | |   |-<<<NULL>>>
> +// CHECK-NEXT: |       | |   |-BinaryOperator {{.*}} <col:21, col:25>
> 'int' '<'
> +// CHECK-NEXT: |       | |   | |-ImplicitCastExpr {{.*}} <col:21> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | |   | | `-DeclRefExpr {{.*}} <col:21> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | |   | `-ImplicitCastExpr {{.*}} <col:25> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | |   |   `-DeclRefExpr {{.*}} <col:25> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | |   |-UnaryOperator {{.*}} <col:28, col:29>
> 'int' postfix '++'
> +// CHECK-NEXT: |       | |   | `-DeclRefExpr {{.*}} <col:28> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | |   `-NullStmt {{.*}} <line:13:7>
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <line:10:9> col:9
> implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit used .previous.lb. 'const unsigned long'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit used .previous.ub. 'const unsigned long'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-distribute-parallel-for-simd.c:10:9) *const restrict'
> +// CHECK-NEXT: |       | |-VarDecl {{.*}} <line:11:8, col:16> col:12 used
> i 'int' cinit
> +// CHECK-NEXT: |       | | `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       | `-VarDecl {{.*}} <line:12:10, col:18> col:14
> used i 'int' cinit
> +// CHECK-NEXT: |       |   `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT: |       |-DeclRefExpr {{.*}} <line:11:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       `-DeclRefExpr {{.*}} <line:12:25> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |-FunctionDecl {{.*}} <line:16:1, line:21:1> line:16:6
> test_three 'void (int, int)'
> +// CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:17, col:21> col:21 used x 'int'
> +// CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:24, col:28> col:28 used y 'int'
> +// CHECK-NEXT: | `-CompoundStmt {{.*}} <col:31, line:21:1>
> +// CHECK-NEXT: |   `-OMPDistributeParallelForSimdDirective {{.*}}
> <line:17:9, col:53>
> +// CHECK-NEXT: |     |-OMPCollapseClause {{.*}} <col:42, col:52>
> +// CHECK-NEXT: |     | `-ConstantExpr {{.*}} <col:51> 'int'
> +// CHECK-NEXT: |     |   `-IntegerLiteral {{.*}} <col:51> 'int' 1
> +// CHECK-NEXT: |     `-CapturedStmt {{.*}} <line:18:3, line:20:7>
> +// CHECK-NEXT: |       |-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc> nothrow
> +// CHECK-NEXT: |       | |-ForStmt {{.*}} <line:18:3, line:20:7>
> +// CHECK-NEXT: |       | | |-DeclStmt {{.*}} <line:18:8, col:17>
> +// CHECK-NEXT: |       | | | `-VarDecl {{.*}} <col:8, col:16> col:12 used
> i 'int' cinit
> +// CHECK-NEXT: |       | | |   `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       | | |-<<<NULL>>>
> +// CHECK-NEXT: |       | | |-BinaryOperator {{.*}} <col:19, col:23> 'int'
> '<'
> +// CHECK-NEXT: |       | | | |-ImplicitCastExpr {{.*}} <col:19> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | | | | `-DeclRefExpr {{.*}} <col:19> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | `-ImplicitCastExpr {{.*}} <col:23> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | | |   `-DeclRefExpr {{.*}} <col:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | |-UnaryOperator {{.*}} <col:26, col:27> 'int'
> postfix '++'
> +// CHECK-NEXT: |       | | | `-DeclRefExpr {{.*}} <col:26> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | `-ForStmt {{.*}} <line:19:5, line:20:7>
> +// CHECK-NEXT: |       | |   |-DeclStmt {{.*}} <line:19:10, col:19>
> +// CHECK-NEXT: |       | |   | `-VarDecl {{.*}} <col:10, col:18> col:14
> used i 'int' cinit
> +// CHECK-NEXT: |       | |   |   `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT: |       | |   |-<<<NULL>>>
> +// CHECK-NEXT: |       | |   |-BinaryOperator {{.*}} <col:21, col:25>
> 'int' '<'
> +// CHECK-NEXT: |       | |   | |-ImplicitCastExpr {{.*}} <col:21> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | |   | | `-DeclRefExpr {{.*}} <col:21> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | |   | `-ImplicitCastExpr {{.*}} <col:25> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | |   |   `-DeclRefExpr {{.*}} <col:25> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | |   |-UnaryOperator {{.*}} <col:28, col:29>
> 'int' postfix '++'
> +// CHECK-NEXT: |       | |   | `-DeclRefExpr {{.*}} <col:28> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | |   `-NullStmt {{.*}} <line:20:7>
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <line:17:9> col:9
> implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit used .previous.lb. 'const unsigned long'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit used .previous.ub. 'const unsigned long'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-distribute-parallel-for-simd.c:17:9) *const restrict'
> +// CHECK-NEXT: |       | |-VarDecl {{.*}} <line:18:8, col:16> col:12 used
> i 'int' cinit
> +// CHECK-NEXT: |       | | `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       | `-VarDecl {{.*}} <line:19:10, col:18> col:14
> used i 'int' cinit
> +// CHECK-NEXT: |       |   `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT: |       |-DeclRefExpr {{.*}} <line:18:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       `-DeclRefExpr {{.*}} <line:19:25> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |-FunctionDecl {{.*}} <line:23:1, line:28:1> line:23:6
> test_four 'void (int, int)'
> +// CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:16, col:20> col:20 used x 'int'
> +// CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:23, col:27> col:27 used y 'int'
> +// CHECK-NEXT: | `-CompoundStmt {{.*}} <col:30, line:28:1>
> +// CHECK-NEXT: |   `-OMPDistributeParallelForSimdDirective {{.*}}
> <line:24:9, col:53>
> +// CHECK-NEXT: |     |-OMPCollapseClause {{.*}} <col:42, col:52>
> +// CHECK-NEXT: |     | `-ConstantExpr {{.*}} <col:51> 'int'
> +// CHECK-NEXT: |     |   `-IntegerLiteral {{.*}} <col:51> 'int' 2
> +// CHECK-NEXT: |     `-CapturedStmt {{.*}} <line:25:3, line:27:7>
> +// CHECK-NEXT: |       |-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc> nothrow
> +// CHECK-NEXT: |       | |-ForStmt {{.*}} <line:25:3, line:27:7>
> +// CHECK-NEXT: |       | | |-DeclStmt {{.*}} <line:25:8, col:17>
> +// CHECK-NEXT: |       | | | `-VarDecl {{.*}} <col:8, col:16> col:12 used
> i 'int' cinit
> +// CHECK-NEXT: |       | | |   `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       | | |-<<<NULL>>>
> +// CHECK-NEXT: |       | | |-BinaryOperator {{.*}} <col:19, col:23> 'int'
> '<'
> +// CHECK-NEXT: |       | | | |-ImplicitCastExpr {{.*}} <col:19> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | | | | `-DeclRefExpr {{.*}} <col:19> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | `-ImplicitCastExpr {{.*}} <col:23> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | | |   `-DeclRefExpr {{.*}} <col:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | |-UnaryOperator {{.*}} <col:26, col:27> 'int'
> postfix '++'
> +// CHECK-NEXT: |       | | | `-DeclRefExpr {{.*}} <col:26> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | `-ForStmt {{.*}} <line:26:5, line:27:7>
> +// CHECK-NEXT: |       | |   |-DeclStmt {{.*}} <line:26:10, col:19>
> +// CHECK-NEXT: |       | |   | `-VarDecl {{.*}} <col:10, col:18> col:14
> used i 'int' cinit
> +// CHECK-NEXT: |       | |   |   `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT: |       | |   |-<<<NULL>>>
> +// CHECK-NEXT: |       | |   |-BinaryOperator {{.*}} <col:21, col:25>
> 'int' '<'
> +// CHECK-NEXT: |       | |   | |-ImplicitCastExpr {{.*}} <col:21> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | |   | | `-DeclRefExpr {{.*}} <col:21> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | |   | `-ImplicitCastExpr {{.*}} <col:25> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | |   |   `-DeclRefExpr {{.*}} <col:25> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | |   |-UnaryOperator {{.*}} <col:28, col:29>
> 'int' postfix '++'
> +// CHECK-NEXT: |       | |   | `-DeclRefExpr {{.*}} <col:28> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | |   `-NullStmt {{.*}} <line:27:7>
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <line:24:9> col:9
> implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit used .previous.lb. 'const unsigned long'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit used .previous.ub. 'const unsigned long'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-distribute-parallel-for-simd.c:24:9) *const restrict'
> +// CHECK-NEXT: |       | |-VarDecl {{.*}} <line:25:8, col:16> col:12 used
> i 'int' cinit
> +// CHECK-NEXT: |       | | `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       | `-VarDecl {{.*}} <line:26:10, col:18> col:14
> used i 'int' cinit
> +// CHECK-NEXT: |       |   `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT: |       |-DeclRefExpr {{.*}} <line:25:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       `-DeclRefExpr {{.*}} <line:26:25> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: `-FunctionDecl {{.*}} <line:30:1, line:36:1> line:30:6
> test_five 'void (int, int, int)'
> +// CHECK-NEXT:   |-ParmVarDecl {{.*}} <col:16, col:20> col:20 used x 'int'
> +// CHECK-NEXT:   |-ParmVarDecl {{.*}} <col:23, col:27> col:27 used y 'int'
> +// CHECK-NEXT:   |-ParmVarDecl {{.*}} <col:30, col:34> col:34 used z 'int'
> +// CHECK-NEXT:   `-CompoundStmt {{.*}} <col:37, line:36:1>
> +// CHECK-NEXT:     `-OMPDistributeParallelForSimdDirective {{.*}}
> <line:31:9, col:53>
> +// CHECK-NEXT:       |-OMPCollapseClause {{.*}} <col:42, col:52>
> +// CHECK-NEXT:       | `-ConstantExpr {{.*}} <col:51> 'int'
> +// CHECK-NEXT:       |   `-IntegerLiteral {{.*}} <col:51> 'int' 2
> +// CHECK-NEXT:       `-CapturedStmt {{.*}} <line:32:3, line:35:9>
> +// CHECK-NEXT:         |-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc> nothrow
> +// CHECK-NEXT:         | |-ForStmt {{.*}} <line:32:3, line:35:9>
> +// CHECK-NEXT:         | | |-DeclStmt {{.*}} <line:32:8, col:17>
> +// CHECK-NEXT:         | | | `-VarDecl {{.*}} <col:8, col:16> col:12 used
> i 'int' cinit
> +// CHECK-NEXT:         | | |   `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT:         | | |-<<<NULL>>>
> +// CHECK-NEXT:         | | |-BinaryOperator {{.*}} <col:19, col:23> 'int'
> '<'
> +// CHECK-NEXT:         | | | |-ImplicitCastExpr {{.*}} <col:19> 'int'
> <LValueToRValue>
> +// CHECK-NEXT:         | | | | `-DeclRefExpr {{.*}} <col:19> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | | `-ImplicitCastExpr {{.*}} <col:23> 'int'
> <LValueToRValue>
> +// CHECK-NEXT:         | | |   `-DeclRefExpr {{.*}} <col:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT:         | | |-UnaryOperator {{.*}} <col:26, col:27> 'int'
> postfix '++'
> +// CHECK-NEXT:         | | | `-DeclRefExpr {{.*}} <col:26> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | `-ForStmt {{.*}} <line:33:5, line:35:9>
> +// CHECK-NEXT:         | |   |-DeclStmt {{.*}} <line:33:10, col:19>
> +// CHECK-NEXT:         | |   | `-VarDecl {{.*}} <col:10, col:18> col:14
> used i 'int' cinit
> +// CHECK-NEXT:         | |   |   `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT:         | |   |-<<<NULL>>>
> +// CHECK-NEXT:         | |   |-BinaryOperator {{.*}} <col:21, col:25>
> 'int' '<'
> +// CHECK-NEXT:         | |   | |-ImplicitCastExpr {{.*}} <col:21> 'int'
> <LValueToRValue>
> +// CHECK-NEXT:         | |   | | `-DeclRefExpr {{.*}} <col:21> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | |   | `-ImplicitCastExpr {{.*}} <col:25> 'int'
> <LValueToRValue>
> +// CHECK-NEXT:         | |   |   `-DeclRefExpr {{.*}} <col:25> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT:         | |   |-UnaryOperator {{.*}} <col:28, col:29>
> 'int' postfix '++'
> +// CHECK-NEXT:         | |   | `-DeclRefExpr {{.*}} <col:28> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | |   `-ForStmt {{.*}} <line:34:7, line:35:9>
> +// CHECK-NEXT:         | |     |-DeclStmt {{.*}} <line:34:12, col:21>
> +// CHECK-NEXT:         | |     | `-VarDecl {{.*}} <col:12, col:20> col:16
> used i 'int' cinit
> +// CHECK-NEXT:         | |     |   `-IntegerLiteral {{.*}} <col:20> 'int'
> 0
> +// CHECK-NEXT:         | |     |-<<<NULL>>>
> +// CHECK-NEXT:         | |     |-BinaryOperator {{.*}} <col:23, col:27>
> 'int' '<'
> +// CHECK-NEXT:         | |     | |-ImplicitCastExpr {{.*}} <col:23> 'int'
> <LValueToRValue>
> +// CHECK-NEXT:         | |     | | `-DeclRefExpr {{.*}} <col:23> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | |     | `-ImplicitCastExpr {{.*}} <col:27> 'int'
> <LValueToRValue>
> +// CHECK-NEXT:         | |     |   `-DeclRefExpr {{.*}} <col:27> 'int'
> lvalue ParmVar {{.*}} 'z' 'int'
> +// CHECK-NEXT:         | |     |-UnaryOperator {{.*}} <col:30, col:31>
> 'int' postfix '++'
> +// CHECK-NEXT:         | |     | `-DeclRefExpr {{.*}} <col:30> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | |     `-NullStmt {{.*}} <line:35:9>
> +// CHECK-NEXT:         | |-ImplicitParamDecl {{.*}} <line:31:9> col:9
> implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT:         | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT:         | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit used .previous.lb. 'const unsigned long'
> +// CHECK-NEXT:         | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit used .previous.ub. 'const unsigned long'
> +// CHECK-NEXT:         | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-distribute-parallel-for-simd.c:31:9) *const restrict'
> +// CHECK-NEXT:         | |-VarDecl {{.*}} <line:32:8, col:16> col:12 used
> i 'int' cinit
> +// CHECK-NEXT:         | | `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT:         | |-VarDecl {{.*}} <line:33:10, col:18> col:14
> used i 'int' cinit
> +// CHECK-NEXT:         | | `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT:         | `-VarDecl {{.*}} <line:34:12, col:20> col:16
> used i 'int' cinit
> +// CHECK-NEXT:         |   `-IntegerLiteral {{.*}} <col:20> 'int' 0
> +// CHECK-NEXT:         |-DeclRefExpr {{.*}} <line:32:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT:         |-DeclRefExpr {{.*}} <line:33:25> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT:         `-DeclRefExpr {{.*}} <line:34:27> 'int' lvalue
> ParmVar {{.*}} 'z' 'int'
>
> Added: cfe/trunk/test/AST/ast-dump-openmp-distribute-parallel-for.c
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/test/AST/ast-dump-openmp-distribute-parallel-for.c?rev=356569&view=auto
>
> ==============================================================================
> --- cfe/trunk/test/AST/ast-dump-openmp-distribute-parallel-for.c (added)
> +++ cfe/trunk/test/AST/ast-dump-openmp-distribute-parallel-for.c Wed Mar
> 20 09:31:47 2019
> @@ -0,0 +1,262 @@
> +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s |
> FileCheck --match-full-lines -implicit-check-not=openmp_structured_block %s
> +
> +void test_one(int x) {
> +#pragma omp distribute parallel for
> +  for (int i = 0; i < x; i++)
> +    ;
> +}
> +
> +void test_two(int x, int y) {
> +#pragma omp distribute parallel for
> +  for (int i = 0; i < x; i++)
> +    for (int i = 0; i < y; i++)
> +      ;
> +}
> +
> +void test_three(int x, int y) {
> +#pragma omp distribute parallel for collapse(1)
> +  for (int i = 0; i < x; i++)
> +    for (int i = 0; i < y; i++)
> +      ;
> +}
> +
> +void test_four(int x, int y) {
> +#pragma omp distribute parallel for collapse(2)
> +  for (int i = 0; i < x; i++)
> +    for (int i = 0; i < y; i++)
> +      ;
> +}
> +
> +void test_five(int x, int y, int z) {
> +#pragma omp distribute parallel for collapse(2)
> +  for (int i = 0; i < x; i++)
> +    for (int i = 0; i < y; i++)
> +      for (int i = 0; i < z; i++)
> +        ;
> +}
> +
> +// CHECK: TranslationUnitDecl {{.*}} <<invalid sloc>> <invalid sloc>
> +// CHECK: |-FunctionDecl {{.*}}
> <{{.*}}ast-dump-openmp-distribute-parallel-for.c:3:1, line:7:1> line:3:6
> test_one 'void (int)'
> +// CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:15, col:19> col:19 used x 'int'
> +// CHECK-NEXT: | `-CompoundStmt {{.*}} <col:22, line:7:1>
> +// CHECK-NEXT: |   `-OMPDistributeParallelForDirective {{.*}} <line:4:9,
> col:36>
> +// CHECK-NEXT: |     `-CapturedStmt {{.*}} <line:5:3, line:6:5>
> +// CHECK-NEXT: |       |-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc> nothrow
> +// CHECK-NEXT: |       | |-ForStmt {{.*}} <line:5:3, line:6:5>
> +// CHECK-NEXT: |       | | |-DeclStmt {{.*}} <line:5:8, col:17>
> +// CHECK-NEXT: |       | | | `-VarDecl {{.*}} <col:8, col:16> col:12 used
> i 'int' cinit
> +// CHECK-NEXT: |       | | |   `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       | | |-<<<NULL>>>
> +// CHECK-NEXT: |       | | |-BinaryOperator {{.*}} <col:19, col:23> 'int'
> '<'
> +// CHECK-NEXT: |       | | | |-ImplicitCastExpr {{.*}} <col:19> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | | | | `-DeclRefExpr {{.*}} <col:19> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | `-ImplicitCastExpr {{.*}} <col:23> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | | |   `-DeclRefExpr {{.*}} <col:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | |-UnaryOperator {{.*}} <col:26, col:27> 'int'
> postfix '++'
> +// CHECK-NEXT: |       | | | `-DeclRefExpr {{.*}} <col:26> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | `-NullStmt {{.*}} <line:6:5>
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <line:4:9> col:9
> implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit used .previous.lb. 'const unsigned long'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit used .previous.ub. 'const unsigned long'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-distribute-parallel-for.c:4:9) *const restrict'
> +// CHECK-NEXT: |       | `-VarDecl {{.*}} <line:5:8, col:16> col:12 used
> i 'int' cinit
> +// CHECK-NEXT: |       |   `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       `-DeclRefExpr {{.*}} <col:3> 'int' lvalue ParmVar
> {{.*}} 'x' 'int'
> +// CHECK-NEXT: |-FunctionDecl {{.*}} <line:9:1, line:14:1> line:9:6
> test_two 'void (int, int)'
> +// CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:15, col:19> col:19 used x 'int'
> +// CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:22, col:26> col:26 used y 'int'
> +// CHECK-NEXT: | `-CompoundStmt {{.*}} <col:29, line:14:1>
> +// CHECK-NEXT: |   `-OMPDistributeParallelForDirective {{.*}} <line:10:9,
> col:36>
> +// CHECK-NEXT: |     `-CapturedStmt {{.*}} <line:11:3, line:13:7>
> +// CHECK-NEXT: |       |-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc> nothrow
> +// CHECK-NEXT: |       | |-ForStmt {{.*}} <line:11:3, line:13:7>
> +// CHECK-NEXT: |       | | |-DeclStmt {{.*}} <line:11:8, col:17>
> +// CHECK-NEXT: |       | | | `-VarDecl {{.*}} <col:8, col:16> col:12 used
> i 'int' cinit
> +// CHECK-NEXT: |       | | |   `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       | | |-<<<NULL>>>
> +// CHECK-NEXT: |       | | |-BinaryOperator {{.*}} <col:19, col:23> 'int'
> '<'
> +// CHECK-NEXT: |       | | | |-ImplicitCastExpr {{.*}} <col:19> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | | | | `-DeclRefExpr {{.*}} <col:19> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | `-ImplicitCastExpr {{.*}} <col:23> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | | |   `-DeclRefExpr {{.*}} <col:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | |-UnaryOperator {{.*}} <col:26, col:27> 'int'
> postfix '++'
> +// CHECK-NEXT: |       | | | `-DeclRefExpr {{.*}} <col:26> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | `-ForStmt {{.*}} <line:12:5, line:13:7>
> +// CHECK-NEXT: |       | |   |-DeclStmt {{.*}} <line:12:10, col:19>
> +// CHECK-NEXT: |       | |   | `-VarDecl {{.*}} <col:10, col:18> col:14
> used i 'int' cinit
> +// CHECK-NEXT: |       | |   |   `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT: |       | |   |-<<<NULL>>>
> +// CHECK-NEXT: |       | |   |-BinaryOperator {{.*}} <col:21, col:25>
> 'int' '<'
> +// CHECK-NEXT: |       | |   | |-ImplicitCastExpr {{.*}} <col:21> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | |   | | `-DeclRefExpr {{.*}} <col:21> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | |   | `-ImplicitCastExpr {{.*}} <col:25> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | |   |   `-DeclRefExpr {{.*}} <col:25> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | |   |-UnaryOperator {{.*}} <col:28, col:29>
> 'int' postfix '++'
> +// CHECK-NEXT: |       | |   | `-DeclRefExpr {{.*}} <col:28> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | |   `-NullStmt {{.*}} <line:13:7>
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <line:10:9> col:9
> implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit used .previous.lb. 'const unsigned long'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit used .previous.ub. 'const unsigned long'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-distribute-parallel-for.c:10:9) *const restrict'
> +// CHECK-NEXT: |       | |-VarDecl {{.*}} <line:11:8, col:16> col:12 used
> i 'int' cinit
> +// CHECK-NEXT: |       | | `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       | `-VarDecl {{.*}} <line:12:10, col:18> col:14
> used i 'int' cinit
> +// CHECK-NEXT: |       |   `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT: |       |-DeclRefExpr {{.*}} <line:11:3> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       `-DeclRefExpr {{.*}} <line:12:25> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |-FunctionDecl {{.*}} <line:16:1, line:21:1> line:16:6
> test_three 'void (int, int)'
> +// CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:17, col:21> col:21 used x 'int'
> +// CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:24, col:28> col:28 used y 'int'
> +// CHECK-NEXT: | `-CompoundStmt {{.*}} <col:31, line:21:1>
> +// CHECK-NEXT: |   `-OMPDistributeParallelForDirective {{.*}} <line:17:9,
> col:48>
> +// CHECK-NEXT: |     |-OMPCollapseClause {{.*}} <col:37, col:47>
> +// CHECK-NEXT: |     | `-ConstantExpr {{.*}} <col:46> 'int'
> +// CHECK-NEXT: |     |   `-IntegerLiteral {{.*}} <col:46> 'int' 1
> +// CHECK-NEXT: |     `-CapturedStmt {{.*}} <line:18:3, line:20:7>
> +// CHECK-NEXT: |       |-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc> nothrow
> +// CHECK-NEXT: |       | |-ForStmt {{.*}} <line:18:3, line:20:7>
> +// CHECK-NEXT: |       | | |-DeclStmt {{.*}} <line:18:8, col:17>
> +// CHECK-NEXT: |       | | | `-VarDecl {{.*}} <col:8, col:16> col:12 used
> i 'int' cinit
> +// CHECK-NEXT: |       | | |   `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       | | |-<<<NULL>>>
> +// CHECK-NEXT: |       | | |-BinaryOperator {{.*}} <col:19, col:23> 'int'
> '<'
> +// CHECK-NEXT: |       | | | |-ImplicitCastExpr {{.*}} <col:19> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | | | | `-DeclRefExpr {{.*}} <col:19> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | `-ImplicitCastExpr {{.*}} <col:23> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | | |   `-DeclRefExpr {{.*}} <col:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | |-UnaryOperator {{.*}} <col:26, col:27> 'int'
> postfix '++'
> +// CHECK-NEXT: |       | | | `-DeclRefExpr {{.*}} <col:26> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | `-ForStmt {{.*}} <line:19:5, line:20:7>
> +// CHECK-NEXT: |       | |   |-DeclStmt {{.*}} <line:19:10, col:19>
> +// CHECK-NEXT: |       | |   | `-VarDecl {{.*}} <col:10, col:18> col:14
> used i 'int' cinit
> +// CHECK-NEXT: |       | |   |   `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT: |       | |   |-<<<NULL>>>
> +// CHECK-NEXT: |       | |   |-BinaryOperator {{.*}} <col:21, col:25>
> 'int' '<'
> +// CHECK-NEXT: |       | |   | |-ImplicitCastExpr {{.*}} <col:21> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | |   | | `-DeclRefExpr {{.*}} <col:21> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | |   | `-ImplicitCastExpr {{.*}} <col:25> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | |   |   `-DeclRefExpr {{.*}} <col:25> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | |   |-UnaryOperator {{.*}} <col:28, col:29>
> 'int' postfix '++'
> +// CHECK-NEXT: |       | |   | `-DeclRefExpr {{.*}} <col:28> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | |   `-NullStmt {{.*}} <line:20:7>
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <line:17:9> col:9
> implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit used .previous.lb. 'const unsigned long'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit used .previous.ub. 'const unsigned long'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-distribute-parallel-for.c:17:9) *const restrict'
> +// CHECK-NEXT: |       | |-VarDecl {{.*}} <line:18:8, col:16> col:12 used
> i 'int' cinit
> +// CHECK-NEXT: |       | | `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       | `-VarDecl {{.*}} <line:19:10, col:18> col:14
> used i 'int' cinit
> +// CHECK-NEXT: |       |   `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT: |       |-DeclRefExpr {{.*}} <line:18:3> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       `-DeclRefExpr {{.*}} <line:19:25> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |-FunctionDecl {{.*}} <line:23:1, line:28:1> line:23:6
> test_four 'void (int, int)'
> +// CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:16, col:20> col:20 used x 'int'
> +// CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:23, col:27> col:27 used y 'int'
> +// CHECK-NEXT: | `-CompoundStmt {{.*}} <col:30, line:28:1>
> +// CHECK-NEXT: |   `-OMPDistributeParallelForDirective {{.*}} <line:24:9,
> col:48>
> +// CHECK-NEXT: |     |-OMPCollapseClause {{.*}} <col:37, col:47>
> +// CHECK-NEXT: |     | `-ConstantExpr {{.*}} <col:46> 'int'
> +// CHECK-NEXT: |     |   `-IntegerLiteral {{.*}} <col:46> 'int' 2
> +// CHECK-NEXT: |     `-CapturedStmt {{.*}} <line:25:3, line:27:7>
> +// CHECK-NEXT: |       |-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc> nothrow
> +// CHECK-NEXT: |       | |-ForStmt {{.*}} <line:25:3, line:27:7>
> +// CHECK-NEXT: |       | | |-DeclStmt {{.*}} <line:25:8, col:17>
> +// CHECK-NEXT: |       | | | `-VarDecl {{.*}} <col:8, col:16> col:12 used
> i 'int' cinit
> +// CHECK-NEXT: |       | | |   `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       | | |-<<<NULL>>>
> +// CHECK-NEXT: |       | | |-BinaryOperator {{.*}} <col:19, col:23> 'int'
> '<'
> +// CHECK-NEXT: |       | | | |-ImplicitCastExpr {{.*}} <col:19> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | | | | `-DeclRefExpr {{.*}} <col:19> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | `-ImplicitCastExpr {{.*}} <col:23> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | | |   `-DeclRefExpr {{.*}} <col:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | |-UnaryOperator {{.*}} <col:26, col:27> 'int'
> postfix '++'
> +// CHECK-NEXT: |       | | | `-DeclRefExpr {{.*}} <col:26> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | `-ForStmt {{.*}} <line:26:5, line:27:7>
> +// CHECK-NEXT: |       | |   |-DeclStmt {{.*}} <line:26:10, col:19>
> +// CHECK-NEXT: |       | |   | `-VarDecl {{.*}} <col:10, col:18> col:14
> used i 'int' cinit
> +// CHECK-NEXT: |       | |   |   `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT: |       | |   |-<<<NULL>>>
> +// CHECK-NEXT: |       | |   |-BinaryOperator {{.*}} <col:21, col:25>
> 'int' '<'
> +// CHECK-NEXT: |       | |   | |-ImplicitCastExpr {{.*}} <col:21> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | |   | | `-DeclRefExpr {{.*}} <col:21> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | |   | `-ImplicitCastExpr {{.*}} <col:25> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | |   |   `-DeclRefExpr {{.*}} <col:25> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | |   |-UnaryOperator {{.*}} <col:28, col:29>
> 'int' postfix '++'
> +// CHECK-NEXT: |       | |   | `-DeclRefExpr {{.*}} <col:28> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | |   `-NullStmt {{.*}} <line:27:7>
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <line:24:9> col:9
> implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit used .previous.lb. 'const unsigned long'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit used .previous.ub. 'const unsigned long'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-distribute-parallel-for.c:24:9) *const restrict'
> +// CHECK-NEXT: |       | |-VarDecl {{.*}} <line:25:8, col:16> col:12 used
> i 'int' cinit
> +// CHECK-NEXT: |       | | `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       | `-VarDecl {{.*}} <line:26:10, col:18> col:14
> used i 'int' cinit
> +// CHECK-NEXT: |       |   `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT: |       |-DeclRefExpr {{.*}} <line:25:3> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       `-DeclRefExpr {{.*}} <line:26:5> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: `-FunctionDecl {{.*}} <line:30:1, line:36:1> line:30:6
> test_five 'void (int, int, int)'
> +// CHECK-NEXT:   |-ParmVarDecl {{.*}} <col:16, col:20> col:20 used x 'int'
> +// CHECK-NEXT:   |-ParmVarDecl {{.*}} <col:23, col:27> col:27 used y 'int'
> +// CHECK-NEXT:   |-ParmVarDecl {{.*}} <col:30, col:34> col:34 used z 'int'
> +// CHECK-NEXT:   `-CompoundStmt {{.*}} <col:37, line:36:1>
> +// CHECK-NEXT:     `-OMPDistributeParallelForDirective {{.*}} <line:31:9,
> col:48>
> +// CHECK-NEXT:       |-OMPCollapseClause {{.*}} <col:37, col:47>
> +// CHECK-NEXT:       | `-ConstantExpr {{.*}} <col:46> 'int'
> +// CHECK-NEXT:       |   `-IntegerLiteral {{.*}} <col:46> 'int' 2
> +// CHECK-NEXT:       `-CapturedStmt {{.*}} <line:32:3, line:35:9>
> +// CHECK-NEXT:         |-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc> nothrow
> +// CHECK-NEXT:         | |-ForStmt {{.*}} <line:32:3, line:35:9>
> +// CHECK-NEXT:         | | |-DeclStmt {{.*}} <line:32:8, col:17>
> +// CHECK-NEXT:         | | | `-VarDecl {{.*}} <col:8, col:16> col:12 used
> i 'int' cinit
> +// CHECK-NEXT:         | | |   `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT:         | | |-<<<NULL>>>
> +// CHECK-NEXT:         | | |-BinaryOperator {{.*}} <col:19, col:23> 'int'
> '<'
> +// CHECK-NEXT:         | | | |-ImplicitCastExpr {{.*}} <col:19> 'int'
> <LValueToRValue>
> +// CHECK-NEXT:         | | | | `-DeclRefExpr {{.*}} <col:19> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | | `-ImplicitCastExpr {{.*}} <col:23> 'int'
> <LValueToRValue>
> +// CHECK-NEXT:         | | |   `-DeclRefExpr {{.*}} <col:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT:         | | |-UnaryOperator {{.*}} <col:26, col:27> 'int'
> postfix '++'
> +// CHECK-NEXT:         | | | `-DeclRefExpr {{.*}} <col:26> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | `-ForStmt {{.*}} <line:33:5, line:35:9>
> +// CHECK-NEXT:         | |   |-DeclStmt {{.*}} <line:33:10, col:19>
> +// CHECK-NEXT:         | |   | `-VarDecl {{.*}} <col:10, col:18> col:14
> used i 'int' cinit
> +// CHECK-NEXT:         | |   |   `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT:         | |   |-<<<NULL>>>
> +// CHECK-NEXT:         | |   |-BinaryOperator {{.*}} <col:21, col:25>
> 'int' '<'
> +// CHECK-NEXT:         | |   | |-ImplicitCastExpr {{.*}} <col:21> 'int'
> <LValueToRValue>
> +// CHECK-NEXT:         | |   | | `-DeclRefExpr {{.*}} <col:21> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | |   | `-ImplicitCastExpr {{.*}} <col:25> 'int'
> <LValueToRValue>
> +// CHECK-NEXT:         | |   |   `-DeclRefExpr {{.*}} <col:25> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT:         | |   |-UnaryOperator {{.*}} <col:28, col:29>
> 'int' postfix '++'
> +// CHECK-NEXT:         | |   | `-DeclRefExpr {{.*}} <col:28> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | |   `-ForStmt {{.*}} <line:34:7, line:35:9>
> +// CHECK-NEXT:         | |     |-DeclStmt {{.*}} <line:34:12, col:21>
> +// CHECK-NEXT:         | |     | `-VarDecl {{.*}} <col:12, col:20> col:16
> used i 'int' cinit
> +// CHECK-NEXT:         | |     |   `-IntegerLiteral {{.*}} <col:20> 'int'
> 0
> +// CHECK-NEXT:         | |     |-<<<NULL>>>
> +// CHECK-NEXT:         | |     |-BinaryOperator {{.*}} <col:23, col:27>
> 'int' '<'
> +// CHECK-NEXT:         | |     | |-ImplicitCastExpr {{.*}} <col:23> 'int'
> <LValueToRValue>
> +// CHECK-NEXT:         | |     | | `-DeclRefExpr {{.*}} <col:23> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | |     | `-ImplicitCastExpr {{.*}} <col:27> 'int'
> <LValueToRValue>
> +// CHECK-NEXT:         | |     |   `-DeclRefExpr {{.*}} <col:27> 'int'
> lvalue ParmVar {{.*}} 'z' 'int'
> +// CHECK-NEXT:         | |     |-UnaryOperator {{.*}} <col:30, col:31>
> 'int' postfix '++'
> +// CHECK-NEXT:         | |     | `-DeclRefExpr {{.*}} <col:30> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | |     `-NullStmt {{.*}} <line:35:9>
> +// CHECK-NEXT:         | |-ImplicitParamDecl {{.*}} <line:31:9> col:9
> implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT:         | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT:         | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit used .previous.lb. 'const unsigned long'
> +// CHECK-NEXT:         | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit used .previous.ub. 'const unsigned long'
> +// CHECK-NEXT:         | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-distribute-parallel-for.c:31:9) *const restrict'
> +// CHECK-NEXT:         | |-VarDecl {{.*}} <line:32:8, col:16> col:12 used
> i 'int' cinit
> +// CHECK-NEXT:         | | `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT:         | |-VarDecl {{.*}} <line:33:10, col:18> col:14
> used i 'int' cinit
> +// CHECK-NEXT:         | | `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT:         | `-VarDecl {{.*}} <line:34:12, col:20> col:16
> used i 'int' cinit
> +// CHECK-NEXT:         |   `-IntegerLiteral {{.*}} <col:20> 'int' 0
> +// CHECK-NEXT:         |-DeclRefExpr {{.*}} <line:32:3> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT:         |-DeclRefExpr {{.*}} <line:33:5> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT:         `-DeclRefExpr {{.*}} <line:34:27> 'int' lvalue
> ParmVar {{.*}} 'z' 'int'
>
> Added: cfe/trunk/test/AST/ast-dump-openmp-distribute-simd.c
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/test/AST/ast-dump-openmp-distribute-simd.c?rev=356569&view=auto
>
> ==============================================================================
> --- cfe/trunk/test/AST/ast-dump-openmp-distribute-simd.c (added)
> +++ cfe/trunk/test/AST/ast-dump-openmp-distribute-simd.c Wed Mar 20
> 09:31:47 2019
> @@ -0,0 +1,242 @@
> +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s |
> FileCheck --match-full-lines -implicit-check-not=openmp_structured_block %s
> +
> +void test_one(int x) {
> +#pragma omp distribute simd
> +  for (int i = 0; i < x; i++)
> +    ;
> +}
> +
> +void test_two(int x, int y) {
> +#pragma omp distribute simd
> +  for (int i = 0; i < x; i++)
> +    for (int i = 0; i < y; i++)
> +      ;
> +}
> +
> +void test_three(int x, int y) {
> +#pragma omp distribute simd collapse(1)
> +  for (int i = 0; i < x; i++)
> +    for (int i = 0; i < y; i++)
> +      ;
> +}
> +
> +void test_four(int x, int y) {
> +#pragma omp distribute simd collapse(2)
> +  for (int i = 0; i < x; i++)
> +    for (int i = 0; i < y; i++)
> +      ;
> +}
> +
> +void test_five(int x, int y, int z) {
> +#pragma omp distribute simd collapse(2)
> +  for (int i = 0; i < x; i++)
> +    for (int i = 0; i < y; i++)
> +      for (int i = 0; i < z; i++)
> +        ;
> +}
> +
> +// CHECK: TranslationUnitDecl {{.*}} <<invalid sloc>> <invalid sloc>
> +// CHECK: |-FunctionDecl {{.*}}
> <{{.*}}ast-dump-openmp-distribute-simd.c:3:1, line:7:1> line:3:6 test_one
> 'void (int)'
> +// CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:15, col:19> col:19 used x 'int'
> +// CHECK-NEXT: | `-CompoundStmt {{.*}} <col:22, line:7:1>
> +// CHECK-NEXT: |   `-OMPDistributeSimdDirective {{.*}} <line:4:9, col:28>
> +// CHECK-NEXT: |     `-CapturedStmt {{.*}} <line:5:3, line:6:5>
> +// CHECK-NEXT: |       |-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc> nothrow
> +// CHECK-NEXT: |       | |-ForStmt {{.*}} <line:5:3, line:6:5>
> +// CHECK-NEXT: |       | | |-DeclStmt {{.*}} <line:5:8, col:17>
> +// CHECK-NEXT: |       | | | `-VarDecl {{.*}} <col:8, col:16> col:12 used
> i 'int' cinit
> +// CHECK-NEXT: |       | | |   `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       | | |-<<<NULL>>>
> +// CHECK-NEXT: |       | | |-BinaryOperator {{.*}} <col:19, col:23> 'int'
> '<'
> +// CHECK-NEXT: |       | | | |-ImplicitCastExpr {{.*}} <col:19> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | | | | `-DeclRefExpr {{.*}} <col:19> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | `-ImplicitCastExpr {{.*}} <col:23> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | | |   `-DeclRefExpr {{.*}} <col:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | |-UnaryOperator {{.*}} <col:26, col:27> 'int'
> postfix '++'
> +// CHECK-NEXT: |       | | | `-DeclRefExpr {{.*}} <col:26> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | `-NullStmt {{.*}} <line:6:5>
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <line:4:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-distribute-simd.c:4:9) *const restrict'
> +// CHECK-NEXT: |       | `-VarDecl {{.*}} <line:5:8, col:16> col:12 used
> i 'int' cinit
> +// CHECK-NEXT: |       |   `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       `-DeclRefExpr {{.*}} <col:23> 'int' lvalue ParmVar
> {{.*}} 'x' 'int'
> +// CHECK-NEXT: |-FunctionDecl {{.*}} <line:9:1, line:14:1> line:9:6
> test_two 'void (int, int)'
> +// CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:15, col:19> col:19 used x 'int'
> +// CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:22, col:26> col:26 used y 'int'
> +// CHECK-NEXT: | `-CompoundStmt {{.*}} <col:29, line:14:1>
> +// CHECK-NEXT: |   `-OMPDistributeSimdDirective {{.*}} <line:10:9, col:28>
> +// CHECK-NEXT: |     `-CapturedStmt {{.*}} <line:11:3, line:13:7>
> +// CHECK-NEXT: |       |-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc> nothrow
> +// CHECK-NEXT: |       | |-ForStmt {{.*}} <line:11:3, line:13:7>
> +// CHECK-NEXT: |       | | |-DeclStmt {{.*}} <line:11:8, col:17>
> +// CHECK-NEXT: |       | | | `-VarDecl {{.*}} <col:8, col:16> col:12 used
> i 'int' cinit
> +// CHECK-NEXT: |       | | |   `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       | | |-<<<NULL>>>
> +// CHECK-NEXT: |       | | |-BinaryOperator {{.*}} <col:19, col:23> 'int'
> '<'
> +// CHECK-NEXT: |       | | | |-ImplicitCastExpr {{.*}} <col:19> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | | | | `-DeclRefExpr {{.*}} <col:19> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | `-ImplicitCastExpr {{.*}} <col:23> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | | |   `-DeclRefExpr {{.*}} <col:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | |-UnaryOperator {{.*}} <col:26, col:27> 'int'
> postfix '++'
> +// CHECK-NEXT: |       | | | `-DeclRefExpr {{.*}} <col:26> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | `-ForStmt {{.*}} <line:12:5, line:13:7>
> +// CHECK-NEXT: |       | |   |-DeclStmt {{.*}} <line:12:10, col:19>
> +// CHECK-NEXT: |       | |   | `-VarDecl {{.*}} <col:10, col:18> col:14
> used i 'int' cinit
> +// CHECK-NEXT: |       | |   |   `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT: |       | |   |-<<<NULL>>>
> +// CHECK-NEXT: |       | |   |-BinaryOperator {{.*}} <col:21, col:25>
> 'int' '<'
> +// CHECK-NEXT: |       | |   | |-ImplicitCastExpr {{.*}} <col:21> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | |   | | `-DeclRefExpr {{.*}} <col:21> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | |   | `-ImplicitCastExpr {{.*}} <col:25> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | |   |   `-DeclRefExpr {{.*}} <col:25> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | |   |-UnaryOperator {{.*}} <col:28, col:29>
> 'int' postfix '++'
> +// CHECK-NEXT: |       | |   | `-DeclRefExpr {{.*}} <col:28> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | |   `-NullStmt {{.*}} <line:13:7>
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <line:10:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-distribute-simd.c:10:9) *const restrict'
> +// CHECK-NEXT: |       | |-VarDecl {{.*}} <line:11:8, col:16> col:12 used
> i 'int' cinit
> +// CHECK-NEXT: |       | | `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       | `-VarDecl {{.*}} <line:12:10, col:18> col:14
> used i 'int' cinit
> +// CHECK-NEXT: |       |   `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT: |       |-DeclRefExpr {{.*}} <line:11:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       `-DeclRefExpr {{.*}} <line:12:25> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |-FunctionDecl {{.*}} <line:16:1, line:21:1> line:16:6
> test_three 'void (int, int)'
> +// CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:17, col:21> col:21 used x 'int'
> +// CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:24, col:28> col:28 used y 'int'
> +// CHECK-NEXT: | `-CompoundStmt {{.*}} <col:31, line:21:1>
> +// CHECK-NEXT: |   `-OMPDistributeSimdDirective {{.*}} <line:17:9, col:40>
> +// CHECK-NEXT: |     |-OMPCollapseClause {{.*}} <col:29, col:39>
> +// CHECK-NEXT: |     | `-ConstantExpr {{.*}} <col:38> 'int'
> +// CHECK-NEXT: |     |   `-IntegerLiteral {{.*}} <col:38> 'int' 1
> +// CHECK-NEXT: |     `-CapturedStmt {{.*}} <line:18:3, line:20:7>
> +// CHECK-NEXT: |       |-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc> nothrow
> +// CHECK-NEXT: |       | |-ForStmt {{.*}} <line:18:3, line:20:7>
> +// CHECK-NEXT: |       | | |-DeclStmt {{.*}} <line:18:8, col:17>
> +// CHECK-NEXT: |       | | | `-VarDecl {{.*}} <col:8, col:16> col:12 used
> i 'int' cinit
> +// CHECK-NEXT: |       | | |   `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       | | |-<<<NULL>>>
> +// CHECK-NEXT: |       | | |-BinaryOperator {{.*}} <col:19, col:23> 'int'
> '<'
> +// CHECK-NEXT: |       | | | |-ImplicitCastExpr {{.*}} <col:19> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | | | | `-DeclRefExpr {{.*}} <col:19> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | `-ImplicitCastExpr {{.*}} <col:23> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | | |   `-DeclRefExpr {{.*}} <col:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | |-UnaryOperator {{.*}} <col:26, col:27> 'int'
> postfix '++'
> +// CHECK-NEXT: |       | | | `-DeclRefExpr {{.*}} <col:26> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | `-ForStmt {{.*}} <line:19:5, line:20:7>
> +// CHECK-NEXT: |       | |   |-DeclStmt {{.*}} <line:19:10, col:19>
> +// CHECK-NEXT: |       | |   | `-VarDecl {{.*}} <col:10, col:18> col:14
> used i 'int' cinit
> +// CHECK-NEXT: |       | |   |   `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT: |       | |   |-<<<NULL>>>
> +// CHECK-NEXT: |       | |   |-BinaryOperator {{.*}} <col:21, col:25>
> 'int' '<'
> +// CHECK-NEXT: |       | |   | |-ImplicitCastExpr {{.*}} <col:21> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | |   | | `-DeclRefExpr {{.*}} <col:21> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | |   | `-ImplicitCastExpr {{.*}} <col:25> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | |   |   `-DeclRefExpr {{.*}} <col:25> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | |   |-UnaryOperator {{.*}} <col:28, col:29>
> 'int' postfix '++'
> +// CHECK-NEXT: |       | |   | `-DeclRefExpr {{.*}} <col:28> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | |   `-NullStmt {{.*}} <line:20:7>
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <line:17:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-distribute-simd.c:17:9) *const restrict'
> +// CHECK-NEXT: |       | |-VarDecl {{.*}} <line:18:8, col:16> col:12 used
> i 'int' cinit
> +// CHECK-NEXT: |       | | `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       | `-VarDecl {{.*}} <line:19:10, col:18> col:14
> used i 'int' cinit
> +// CHECK-NEXT: |       |   `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT: |       |-DeclRefExpr {{.*}} <line:18:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       `-DeclRefExpr {{.*}} <line:19:25> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |-FunctionDecl {{.*}} <line:23:1, line:28:1> line:23:6
> test_four 'void (int, int)'
> +// CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:16, col:20> col:20 used x 'int'
> +// CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:23, col:27> col:27 used y 'int'
> +// CHECK-NEXT: | `-CompoundStmt {{.*}} <col:30, line:28:1>
> +// CHECK-NEXT: |   `-OMPDistributeSimdDirective {{.*}} <line:24:9, col:40>
> +// CHECK-NEXT: |     |-OMPCollapseClause {{.*}} <col:29, col:39>
> +// CHECK-NEXT: |     | `-ConstantExpr {{.*}} <col:38> 'int'
> +// CHECK-NEXT: |     |   `-IntegerLiteral {{.*}} <col:38> 'int' 2
> +// CHECK-NEXT: |     `-CapturedStmt {{.*}} <line:25:3, line:27:7>
> +// CHECK-NEXT: |       |-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc> nothrow
> +// CHECK-NEXT: |       | |-ForStmt {{.*}} <line:25:3, line:27:7>
> +// CHECK-NEXT: |       | | |-DeclStmt {{.*}} <line:25:8, col:17>
> +// CHECK-NEXT: |       | | | `-VarDecl {{.*}} <col:8, col:16> col:12 used
> i 'int' cinit
> +// CHECK-NEXT: |       | | |   `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       | | |-<<<NULL>>>
> +// CHECK-NEXT: |       | | |-BinaryOperator {{.*}} <col:19, col:23> 'int'
> '<'
> +// CHECK-NEXT: |       | | | |-ImplicitCastExpr {{.*}} <col:19> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | | | | `-DeclRefExpr {{.*}} <col:19> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | `-ImplicitCastExpr {{.*}} <col:23> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | | |   `-DeclRefExpr {{.*}} <col:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | |-UnaryOperator {{.*}} <col:26, col:27> 'int'
> postfix '++'
> +// CHECK-NEXT: |       | | | `-DeclRefExpr {{.*}} <col:26> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | `-ForStmt {{.*}} <line:26:5, line:27:7>
> +// CHECK-NEXT: |       | |   |-DeclStmt {{.*}} <line:26:10, col:19>
> +// CHECK-NEXT: |       | |   | `-VarDecl {{.*}} <col:10, col:18> col:14
> used i 'int' cinit
> +// CHECK-NEXT: |       | |   |   `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT: |       | |   |-<<<NULL>>>
> +// CHECK-NEXT: |       | |   |-BinaryOperator {{.*}} <col:21, col:25>
> 'int' '<'
> +// CHECK-NEXT: |       | |   | |-ImplicitCastExpr {{.*}} <col:21> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | |   | | `-DeclRefExpr {{.*}} <col:21> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | |   | `-ImplicitCastExpr {{.*}} <col:25> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | |   |   `-DeclRefExpr {{.*}} <col:25> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | |   |-UnaryOperator {{.*}} <col:28, col:29>
> 'int' postfix '++'
> +// CHECK-NEXT: |       | |   | `-DeclRefExpr {{.*}} <col:28> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | |   `-NullStmt {{.*}} <line:27:7>
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <line:24:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-distribute-simd.c:24:9) *const restrict'
> +// CHECK-NEXT: |       | |-VarDecl {{.*}} <line:25:8, col:16> col:12 used
> i 'int' cinit
> +// CHECK-NEXT: |       | | `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       | `-VarDecl {{.*}} <line:26:10, col:18> col:14
> used i 'int' cinit
> +// CHECK-NEXT: |       |   `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT: |       |-DeclRefExpr {{.*}} <line:25:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       `-DeclRefExpr {{.*}} <line:26:25> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: `-FunctionDecl {{.*}} <line:30:1, line:36:1> line:30:6
> test_five 'void (int, int, int)'
> +// CHECK-NEXT:   |-ParmVarDecl {{.*}} <col:16, col:20> col:20 used x 'int'
> +// CHECK-NEXT:   |-ParmVarDecl {{.*}} <col:23, col:27> col:27 used y 'int'
> +// CHECK-NEXT:   |-ParmVarDecl {{.*}} <col:30, col:34> col:34 used z 'int'
> +// CHECK-NEXT:   `-CompoundStmt {{.*}} <col:37, line:36:1>
> +// CHECK-NEXT:     `-OMPDistributeSimdDirective {{.*}} <line:31:9, col:40>
> +// CHECK-NEXT:       |-OMPCollapseClause {{.*}} <col:29, col:39>
> +// CHECK-NEXT:       | `-ConstantExpr {{.*}} <col:38> 'int'
> +// CHECK-NEXT:       |   `-IntegerLiteral {{.*}} <col:38> 'int' 2
> +// CHECK-NEXT:       `-CapturedStmt {{.*}} <line:32:3, line:35:9>
> +// CHECK-NEXT:         |-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc> nothrow
> +// CHECK-NEXT:         | |-ForStmt {{.*}} <line:32:3, line:35:9>
> +// CHECK-NEXT:         | | |-DeclStmt {{.*}} <line:32:8, col:17>
> +// CHECK-NEXT:         | | | `-VarDecl {{.*}} <col:8, col:16> col:12 used
> i 'int' cinit
> +// CHECK-NEXT:         | | |   `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT:         | | |-<<<NULL>>>
> +// CHECK-NEXT:         | | |-BinaryOperator {{.*}} <col:19, col:23> 'int'
> '<'
> +// CHECK-NEXT:         | | | |-ImplicitCastExpr {{.*}} <col:19> 'int'
> <LValueToRValue>
> +// CHECK-NEXT:         | | | | `-DeclRefExpr {{.*}} <col:19> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | | `-ImplicitCastExpr {{.*}} <col:23> 'int'
> <LValueToRValue>
> +// CHECK-NEXT:         | | |   `-DeclRefExpr {{.*}} <col:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT:         | | |-UnaryOperator {{.*}} <col:26, col:27> 'int'
> postfix '++'
> +// CHECK-NEXT:         | | | `-DeclRefExpr {{.*}} <col:26> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | `-ForStmt {{.*}} <line:33:5, line:35:9>
> +// CHECK-NEXT:         | |   |-DeclStmt {{.*}} <line:33:10, col:19>
> +// CHECK-NEXT:         | |   | `-VarDecl {{.*}} <col:10, col:18> col:14
> used i 'int' cinit
> +// CHECK-NEXT:         | |   |   `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT:         | |   |-<<<NULL>>>
> +// CHECK-NEXT:         | |   |-BinaryOperator {{.*}} <col:21, col:25>
> 'int' '<'
> +// CHECK-NEXT:         | |   | |-ImplicitCastExpr {{.*}} <col:21> 'int'
> <LValueToRValue>
> +// CHECK-NEXT:         | |   | | `-DeclRefExpr {{.*}} <col:21> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | |   | `-ImplicitCastExpr {{.*}} <col:25> 'int'
> <LValueToRValue>
> +// CHECK-NEXT:         | |   |   `-DeclRefExpr {{.*}} <col:25> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT:         | |   |-UnaryOperator {{.*}} <col:28, col:29>
> 'int' postfix '++'
> +// CHECK-NEXT:         | |   | `-DeclRefExpr {{.*}} <col:28> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | |   `-ForStmt {{.*}} <line:34:7, line:35:9>
> +// CHECK-NEXT:         | |     |-DeclStmt {{.*}} <line:34:12, col:21>
> +// CHECK-NEXT:         | |     | `-VarDecl {{.*}} <col:12, col:20> col:16
> used i 'int' cinit
> +// CHECK-NEXT:         | |     |   `-IntegerLiteral {{.*}} <col:20> 'int'
> 0
> +// CHECK-NEXT:         | |     |-<<<NULL>>>
> +// CHECK-NEXT:         | |     |-BinaryOperator {{.*}} <col:23, col:27>
> 'int' '<'
> +// CHECK-NEXT:         | |     | |-ImplicitCastExpr {{.*}} <col:23> 'int'
> <LValueToRValue>
> +// CHECK-NEXT:         | |     | | `-DeclRefExpr {{.*}} <col:23> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | |     | `-ImplicitCastExpr {{.*}} <col:27> 'int'
> <LValueToRValue>
> +// CHECK-NEXT:         | |     |   `-DeclRefExpr {{.*}} <col:27> 'int'
> lvalue ParmVar {{.*}} 'z' 'int'
> +// CHECK-NEXT:         | |     |-UnaryOperator {{.*}} <col:30, col:31>
> 'int' postfix '++'
> +// CHECK-NEXT:         | |     | `-DeclRefExpr {{.*}} <col:30> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | |     `-NullStmt {{.*}} <line:35:9>
> +// CHECK-NEXT:         | |-ImplicitParamDecl {{.*}} <line:31:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-distribute-simd.c:31:9) *const restrict'
> +// CHECK-NEXT:         | |-VarDecl {{.*}} <line:32:8, col:16> col:12 used
> i 'int' cinit
> +// CHECK-NEXT:         | | `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT:         | |-VarDecl {{.*}} <line:33:10, col:18> col:14
> used i 'int' cinit
> +// CHECK-NEXT:         | | `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT:         | `-VarDecl {{.*}} <line:34:12, col:20> col:16
> used i 'int' cinit
> +// CHECK-NEXT:         |   `-IntegerLiteral {{.*}} <col:20> 'int' 0
> +// CHECK-NEXT:         |-DeclRefExpr {{.*}} <line:32:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT:         |-DeclRefExpr {{.*}} <line:33:25> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT:         `-DeclRefExpr {{.*}} <line:34:27> 'int' lvalue
> ParmVar {{.*}} 'z' 'int'
>
> Added: cfe/trunk/test/AST/ast-dump-openmp-distribute.c
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/test/AST/ast-dump-openmp-distribute.c?rev=356569&view=auto
>
> ==============================================================================
> --- cfe/trunk/test/AST/ast-dump-openmp-distribute.c (added)
> +++ cfe/trunk/test/AST/ast-dump-openmp-distribute.c Wed Mar 20 09:31:47
> 2019
> @@ -0,0 +1,242 @@
> +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s |
> FileCheck --match-full-lines -implicit-check-not=openmp_structured_block %s
> +
> +void test_one(int x) {
> +#pragma omp distribute
> +  for (int i = 0; i < x; i++)
> +    ;
> +}
> +
> +void test_two(int x, int y) {
> +#pragma omp distribute
> +  for (int i = 0; i < x; i++)
> +    for (int i = 0; i < y; i++)
> +      ;
> +}
> +
> +void test_three(int x, int y) {
> +#pragma omp distribute collapse(1)
> +  for (int i = 0; i < x; i++)
> +    for (int i = 0; i < y; i++)
> +      ;
> +}
> +
> +void test_four(int x, int y) {
> +#pragma omp distribute collapse(2)
> +  for (int i = 0; i < x; i++)
> +    for (int i = 0; i < y; i++)
> +      ;
> +}
> +
> +void test_five(int x, int y, int z) {
> +#pragma omp distribute collapse(2)
> +  for (int i = 0; i < x; i++)
> +    for (int i = 0; i < y; i++)
> +      for (int i = 0; i < z; i++)
> +        ;
> +}
> +
> +// CHECK: TranslationUnitDecl {{.*}} <<invalid sloc>> <invalid sloc>
> +// CHECK: |-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-distribute.c:3:1,
> line:7:1> line:3:6 test_one 'void (int)'
> +// CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:15, col:19> col:19 used x 'int'
> +// CHECK-NEXT: | `-CompoundStmt {{.*}} <col:22, line:7:1>
> +// CHECK-NEXT: |   `-OMPDistributeDirective {{.*}} <line:4:9, col:23>
> +// CHECK-NEXT: |     `-CapturedStmt {{.*}} <line:5:3, line:6:5>
> +// CHECK-NEXT: |       |-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc>
> +// CHECK-NEXT: |       | |-ForStmt {{.*}} <line:5:3, line:6:5>
> +// CHECK-NEXT: |       | | |-DeclStmt {{.*}} <line:5:8, col:17>
> +// CHECK-NEXT: |       | | | `-VarDecl {{.*}} <col:8, col:16> col:12 used
> i 'int' cinit
> +// CHECK-NEXT: |       | | |   `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       | | |-<<<NULL>>>
> +// CHECK-NEXT: |       | | |-BinaryOperator {{.*}} <col:19, col:23> 'int'
> '<'
> +// CHECK-NEXT: |       | | | |-ImplicitCastExpr {{.*}} <col:19> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | | | | `-DeclRefExpr {{.*}} <col:19> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | `-ImplicitCastExpr {{.*}} <col:23> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | | |   `-DeclRefExpr {{.*}} <col:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | |-UnaryOperator {{.*}} <col:26, col:27> 'int'
> postfix '++'
> +// CHECK-NEXT: |       | | | `-DeclRefExpr {{.*}} <col:26> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | `-NullStmt {{.*}} <line:6:5>
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <line:4:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-distribute.c:4:9) *const restrict'
> +// CHECK-NEXT: |       | `-VarDecl {{.*}} <line:5:8, col:16> col:12 used
> i 'int' cinit
> +// CHECK-NEXT: |       |   `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       `-DeclRefExpr {{.*}} <col:3> 'int' lvalue ParmVar
> {{.*}} 'x' 'int'
> +// CHECK-NEXT: |-FunctionDecl {{.*}} <line:9:1, line:14:1> line:9:6
> test_two 'void (int, int)'
> +// CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:15, col:19> col:19 used x 'int'
> +// CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:22, col:26> col:26 used y 'int'
> +// CHECK-NEXT: | `-CompoundStmt {{.*}} <col:29, line:14:1>
> +// CHECK-NEXT: |   `-OMPDistributeDirective {{.*}} <line:10:9, col:23>
> +// CHECK-NEXT: |     `-CapturedStmt {{.*}} <line:11:3, line:13:7>
> +// CHECK-NEXT: |       |-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc>
> +// CHECK-NEXT: |       | |-ForStmt {{.*}} <line:11:3, line:13:7>
> +// CHECK-NEXT: |       | | |-DeclStmt {{.*}} <line:11:8, col:17>
> +// CHECK-NEXT: |       | | | `-VarDecl {{.*}} <col:8, col:16> col:12 used
> i 'int' cinit
> +// CHECK-NEXT: |       | | |   `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       | | |-<<<NULL>>>
> +// CHECK-NEXT: |       | | |-BinaryOperator {{.*}} <col:19, col:23> 'int'
> '<'
> +// CHECK-NEXT: |       | | | |-ImplicitCastExpr {{.*}} <col:19> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | | | | `-DeclRefExpr {{.*}} <col:19> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | `-ImplicitCastExpr {{.*}} <col:23> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | | |   `-DeclRefExpr {{.*}} <col:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | |-UnaryOperator {{.*}} <col:26, col:27> 'int'
> postfix '++'
> +// CHECK-NEXT: |       | | | `-DeclRefExpr {{.*}} <col:26> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | `-ForStmt {{.*}} <line:12:5, line:13:7>
> +// CHECK-NEXT: |       | |   |-DeclStmt {{.*}} <line:12:10, col:19>
> +// CHECK-NEXT: |       | |   | `-VarDecl {{.*}} <col:10, col:18> col:14
> used i 'int' cinit
> +// CHECK-NEXT: |       | |   |   `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT: |       | |   |-<<<NULL>>>
> +// CHECK-NEXT: |       | |   |-BinaryOperator {{.*}} <col:21, col:25>
> 'int' '<'
> +// CHECK-NEXT: |       | |   | |-ImplicitCastExpr {{.*}} <col:21> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | |   | | `-DeclRefExpr {{.*}} <col:21> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | |   | `-ImplicitCastExpr {{.*}} <col:25> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | |   |   `-DeclRefExpr {{.*}} <col:25> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | |   |-UnaryOperator {{.*}} <col:28, col:29>
> 'int' postfix '++'
> +// CHECK-NEXT: |       | |   | `-DeclRefExpr {{.*}} <col:28> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | |   `-NullStmt {{.*}} <line:13:7>
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <line:10:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-distribute.c:10:9) *const restrict'
> +// CHECK-NEXT: |       | |-VarDecl {{.*}} <line:11:8, col:16> col:12 used
> i 'int' cinit
> +// CHECK-NEXT: |       | | `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       | `-VarDecl {{.*}} <line:12:10, col:18> col:14
> used i 'int' cinit
> +// CHECK-NEXT: |       |   `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT: |       |-DeclRefExpr {{.*}} <line:11:3> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       `-DeclRefExpr {{.*}} <line:12:25> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |-FunctionDecl {{.*}} <line:16:1, line:21:1> line:16:6
> test_three 'void (int, int)'
> +// CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:17, col:21> col:21 used x 'int'
> +// CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:24, col:28> col:28 used y 'int'
> +// CHECK-NEXT: | `-CompoundStmt {{.*}} <col:31, line:21:1>
> +// CHECK-NEXT: |   `-OMPDistributeDirective {{.*}} <line:17:9, col:35>
> +// CHECK-NEXT: |     |-OMPCollapseClause {{.*}} <col:24, col:34>
> +// CHECK-NEXT: |     | `-ConstantExpr {{.*}} <col:33> 'int'
> +// CHECK-NEXT: |     |   `-IntegerLiteral {{.*}} <col:33> 'int' 1
> +// CHECK-NEXT: |     `-CapturedStmt {{.*}} <line:18:3, line:20:7>
> +// CHECK-NEXT: |       |-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc>
> +// CHECK-NEXT: |       | |-ForStmt {{.*}} <line:18:3, line:20:7>
> +// CHECK-NEXT: |       | | |-DeclStmt {{.*}} <line:18:8, col:17>
> +// CHECK-NEXT: |       | | | `-VarDecl {{.*}} <col:8, col:16> col:12 used
> i 'int' cinit
> +// CHECK-NEXT: |       | | |   `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       | | |-<<<NULL>>>
> +// CHECK-NEXT: |       | | |-BinaryOperator {{.*}} <col:19, col:23> 'int'
> '<'
> +// CHECK-NEXT: |       | | | |-ImplicitCastExpr {{.*}} <col:19> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | | | | `-DeclRefExpr {{.*}} <col:19> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | `-ImplicitCastExpr {{.*}} <col:23> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | | |   `-DeclRefExpr {{.*}} <col:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | |-UnaryOperator {{.*}} <col:26, col:27> 'int'
> postfix '++'
> +// CHECK-NEXT: |       | | | `-DeclRefExpr {{.*}} <col:26> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | `-ForStmt {{.*}} <line:19:5, line:20:7>
> +// CHECK-NEXT: |       | |   |-DeclStmt {{.*}} <line:19:10, col:19>
> +// CHECK-NEXT: |       | |   | `-VarDecl {{.*}} <col:10, col:18> col:14
> used i 'int' cinit
> +// CHECK-NEXT: |       | |   |   `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT: |       | |   |-<<<NULL>>>
> +// CHECK-NEXT: |       | |   |-BinaryOperator {{.*}} <col:21, col:25>
> 'int' '<'
> +// CHECK-NEXT: |       | |   | |-ImplicitCastExpr {{.*}} <col:21> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | |   | | `-DeclRefExpr {{.*}} <col:21> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | |   | `-ImplicitCastExpr {{.*}} <col:25> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | |   |   `-DeclRefExpr {{.*}} <col:25> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | |   |-UnaryOperator {{.*}} <col:28, col:29>
> 'int' postfix '++'
> +// CHECK-NEXT: |       | |   | `-DeclRefExpr {{.*}} <col:28> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | |   `-NullStmt {{.*}} <line:20:7>
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <line:17:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-distribute.c:17:9) *const restrict'
> +// CHECK-NEXT: |       | |-VarDecl {{.*}} <line:18:8, col:16> col:12 used
> i 'int' cinit
> +// CHECK-NEXT: |       | | `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       | `-VarDecl {{.*}} <line:19:10, col:18> col:14
> used i 'int' cinit
> +// CHECK-NEXT: |       |   `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT: |       |-DeclRefExpr {{.*}} <line:18:3> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       `-DeclRefExpr {{.*}} <line:19:25> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |-FunctionDecl {{.*}} <line:23:1, line:28:1> line:23:6
> test_four 'void (int, int)'
> +// CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:16, col:20> col:20 used x 'int'
> +// CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:23, col:27> col:27 used y 'int'
> +// CHECK-NEXT: | `-CompoundStmt {{.*}} <col:30, line:28:1>
> +// CHECK-NEXT: |   `-OMPDistributeDirective {{.*}} <line:24:9, col:35>
> +// CHECK-NEXT: |     |-OMPCollapseClause {{.*}} <col:24, col:34>
> +// CHECK-NEXT: |     | `-ConstantExpr {{.*}} <col:33> 'int'
> +// CHECK-NEXT: |     |   `-IntegerLiteral {{.*}} <col:33> 'int' 2
> +// CHECK-NEXT: |     `-CapturedStmt {{.*}} <line:25:3, line:27:7>
> +// CHECK-NEXT: |       |-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc>
> +// CHECK-NEXT: |       | |-ForStmt {{.*}} <line:25:3, line:27:7>
> +// CHECK-NEXT: |       | | |-DeclStmt {{.*}} <line:25:8, col:17>
> +// CHECK-NEXT: |       | | | `-VarDecl {{.*}} <col:8, col:16> col:12 used
> i 'int' cinit
> +// CHECK-NEXT: |       | | |   `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       | | |-<<<NULL>>>
> +// CHECK-NEXT: |       | | |-BinaryOperator {{.*}} <col:19, col:23> 'int'
> '<'
> +// CHECK-NEXT: |       | | | |-ImplicitCastExpr {{.*}} <col:19> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | | | | `-DeclRefExpr {{.*}} <col:19> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | `-ImplicitCastExpr {{.*}} <col:23> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | | |   `-DeclRefExpr {{.*}} <col:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | |-UnaryOperator {{.*}} <col:26, col:27> 'int'
> postfix '++'
> +// CHECK-NEXT: |       | | | `-DeclRefExpr {{.*}} <col:26> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | `-ForStmt {{.*}} <line:26:5, line:27:7>
> +// CHECK-NEXT: |       | |   |-DeclStmt {{.*}} <line:26:10, col:19>
> +// CHECK-NEXT: |       | |   | `-VarDecl {{.*}} <col:10, col:18> col:14
> used i 'int' cinit
> +// CHECK-NEXT: |       | |   |   `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT: |       | |   |-<<<NULL>>>
> +// CHECK-NEXT: |       | |   |-BinaryOperator {{.*}} <col:21, col:25>
> 'int' '<'
> +// CHECK-NEXT: |       | |   | |-ImplicitCastExpr {{.*}} <col:21> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | |   | | `-DeclRefExpr {{.*}} <col:21> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | |   | `-ImplicitCastExpr {{.*}} <col:25> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | |   |   `-DeclRefExpr {{.*}} <col:25> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | |   |-UnaryOperator {{.*}} <col:28, col:29>
> 'int' postfix '++'
> +// CHECK-NEXT: |       | |   | `-DeclRefExpr {{.*}} <col:28> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | |   `-NullStmt {{.*}} <line:27:7>
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <line:24:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-distribute.c:24:9) *const restrict'
> +// CHECK-NEXT: |       | |-VarDecl {{.*}} <line:25:8, col:16> col:12 used
> i 'int' cinit
> +// CHECK-NEXT: |       | | `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       | `-VarDecl {{.*}} <line:26:10, col:18> col:14
> used i 'int' cinit
> +// CHECK-NEXT: |       |   `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT: |       |-DeclRefExpr {{.*}} <line:25:3> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       `-DeclRefExpr {{.*}} <line:26:5> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: `-FunctionDecl {{.*}} <line:30:1, line:36:1> line:30:6
> test_five 'void (int, int, int)'
> +// CHECK-NEXT:   |-ParmVarDecl {{.*}} <col:16, col:20> col:20 used x 'int'
> +// CHECK-NEXT:   |-ParmVarDecl {{.*}} <col:23, col:27> col:27 used y 'int'
> +// CHECK-NEXT:   |-ParmVarDecl {{.*}} <col:30, col:34> col:34 used z 'int'
> +// CHECK-NEXT:   `-CompoundStmt {{.*}} <col:37, line:36:1>
> +// CHECK-NEXT:     `-OMPDistributeDirective {{.*}} <line:31:9, col:35>
> +// CHECK-NEXT:       |-OMPCollapseClause {{.*}} <col:24, col:34>
> +// CHECK-NEXT:       | `-ConstantExpr {{.*}} <col:33> 'int'
> +// CHECK-NEXT:       |   `-IntegerLiteral {{.*}} <col:33> 'int' 2
> +// CHECK-NEXT:       `-CapturedStmt {{.*}} <line:32:3, line:35:9>
> +// CHECK-NEXT:         |-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc>
> +// CHECK-NEXT:         | |-ForStmt {{.*}} <line:32:3, line:35:9>
> +// CHECK-NEXT:         | | |-DeclStmt {{.*}} <line:32:8, col:17>
> +// CHECK-NEXT:         | | | `-VarDecl {{.*}} <col:8, col:16> col:12 used
> i 'int' cinit
> +// CHECK-NEXT:         | | |   `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT:         | | |-<<<NULL>>>
> +// CHECK-NEXT:         | | |-BinaryOperator {{.*}} <col:19, col:23> 'int'
> '<'
> +// CHECK-NEXT:         | | | |-ImplicitCastExpr {{.*}} <col:19> 'int'
> <LValueToRValue>
> +// CHECK-NEXT:         | | | | `-DeclRefExpr {{.*}} <col:19> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | | `-ImplicitCastExpr {{.*}} <col:23> 'int'
> <LValueToRValue>
> +// CHECK-NEXT:         | | |   `-DeclRefExpr {{.*}} <col:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT:         | | |-UnaryOperator {{.*}} <col:26, col:27> 'int'
> postfix '++'
> +// CHECK-NEXT:         | | | `-DeclRefExpr {{.*}} <col:26> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | `-ForStmt {{.*}} <line:33:5, line:35:9>
> +// CHECK-NEXT:         | |   |-DeclStmt {{.*}} <line:33:10, col:19>
> +// CHECK-NEXT:         | |   | `-VarDecl {{.*}} <col:10, col:18> col:14
> used i 'int' cinit
> +// CHECK-NEXT:         | |   |   `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT:         | |   |-<<<NULL>>>
> +// CHECK-NEXT:         | |   |-BinaryOperator {{.*}} <col:21, col:25>
> 'int' '<'
> +// CHECK-NEXT:         | |   | |-ImplicitCastExpr {{.*}} <col:21> 'int'
> <LValueToRValue>
> +// CHECK-NEXT:         | |   | | `-DeclRefExpr {{.*}} <col:21> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | |   | `-ImplicitCastExpr {{.*}} <col:25> 'int'
> <LValueToRValue>
> +// CHECK-NEXT:         | |   |   `-DeclRefExpr {{.*}} <col:25> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT:         | |   |-UnaryOperator {{.*}} <col:28, col:29>
> 'int' postfix '++'
> +// CHECK-NEXT:         | |   | `-DeclRefExpr {{.*}} <col:28> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | |   `-ForStmt {{.*}} <line:34:7, line:35:9>
> +// CHECK-NEXT:         | |     |-DeclStmt {{.*}} <line:34:12, col:21>
> +// CHECK-NEXT:         | |     | `-VarDecl {{.*}} <col:12, col:20> col:16
> used i 'int' cinit
> +// CHECK-NEXT:         | |     |   `-IntegerLiteral {{.*}} <col:20> 'int'
> 0
> +// CHECK-NEXT:         | |     |-<<<NULL>>>
> +// CHECK-NEXT:         | |     |-BinaryOperator {{.*}} <col:23, col:27>
> 'int' '<'
> +// CHECK-NEXT:         | |     | |-ImplicitCastExpr {{.*}} <col:23> 'int'
> <LValueToRValue>
> +// CHECK-NEXT:         | |     | | `-DeclRefExpr {{.*}} <col:23> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | |     | `-ImplicitCastExpr {{.*}} <col:27> 'int'
> <LValueToRValue>
> +// CHECK-NEXT:         | |     |   `-DeclRefExpr {{.*}} <col:27> 'int'
> lvalue ParmVar {{.*}} 'z' 'int'
> +// CHECK-NEXT:         | |     |-UnaryOperator {{.*}} <col:30, col:31>
> 'int' postfix '++'
> +// CHECK-NEXT:         | |     | `-DeclRefExpr {{.*}} <col:30> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | |     `-NullStmt {{.*}} <line:35:9>
> +// CHECK-NEXT:         | |-ImplicitParamDecl {{.*}} <line:31:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-distribute.c:31:9) *const restrict'
> +// CHECK-NEXT:         | |-VarDecl {{.*}} <line:32:8, col:16> col:12 used
> i 'int' cinit
> +// CHECK-NEXT:         | | `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT:         | |-VarDecl {{.*}} <line:33:10, col:18> col:14
> used i 'int' cinit
> +// CHECK-NEXT:         | | `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT:         | `-VarDecl {{.*}} <line:34:12, col:20> col:16
> used i 'int' cinit
> +// CHECK-NEXT:         |   `-IntegerLiteral {{.*}} <col:20> 'int' 0
> +// CHECK-NEXT:         |-DeclRefExpr {{.*}} <line:32:3> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT:         |-DeclRefExpr {{.*}} <line:33:5> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT:         `-DeclRefExpr {{.*}} <line:34:27> 'int' lvalue
> ParmVar {{.*}} 'z' 'int'
>
> Added: cfe/trunk/test/AST/ast-dump-openmp-flush.c
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/test/AST/ast-dump-openmp-flush.c?rev=356569&view=auto
>
> ==============================================================================
> --- cfe/trunk/test/AST/ast-dump-openmp-flush.c (added)
> +++ cfe/trunk/test/AST/ast-dump-openmp-flush.c Wed Mar 20 09:31:47 2019
> @@ -0,0 +1,10 @@
> +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s |
> FileCheck --match-full-lines -implicit-check-not=openmp_structured_block %s
> +
> +void test() {
> +#pragma omp flush
> +}
> +
> +// CHECK: TranslationUnitDecl {{.*}} <<invalid sloc>> <invalid sloc>
> +// CHECK: `-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-flush.c:3:1,
> line:5:1> line:3:6 test 'void ()'
> +// CHECK-NEXT:   `-CompoundStmt {{.*}} <col:13, line:5:1>
> +// CHECK-NEXT:     `-OMPFlushDirective {{.*}} <line:4:9, col:18>
>
> Added: cfe/trunk/test/AST/ast-dump-openmp-for-simd.c
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/test/AST/ast-dump-openmp-for-simd.c?rev=356569&view=auto
>
> ==============================================================================
> --- cfe/trunk/test/AST/ast-dump-openmp-for-simd.c (added)
> +++ cfe/trunk/test/AST/ast-dump-openmp-for-simd.c Wed Mar 20 09:31:47 2019
> @@ -0,0 +1,242 @@
> +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s |
> FileCheck --match-full-lines -implicit-check-not=openmp_structured_block %s
> +
> +void test_one(int x) {
> +#pragma omp for simd
> +  for (int i = 0; i < x; i++)
> +    ;
> +}
> +
> +void test_two(int x, int y) {
> +#pragma omp for simd
> +  for (int i = 0; i < x; i++)
> +    for (int i = 0; i < y; i++)
> +      ;
> +}
> +
> +void test_three(int x, int y) {
> +#pragma omp for simd collapse(1)
> +  for (int i = 0; i < x; i++)
> +    for (int i = 0; i < y; i++)
> +      ;
> +}
> +
> +void test_four(int x, int y) {
> +#pragma omp for simd collapse(2)
> +  for (int i = 0; i < x; i++)
> +    for (int i = 0; i < y; i++)
> +      ;
> +}
> +
> +void test_five(int x, int y, int z) {
> +#pragma omp for simd collapse(2)
> +  for (int i = 0; i < x; i++)
> +    for (int i = 0; i < y; i++)
> +      for (int i = 0; i < z; i++)
> +        ;
> +}
> +
> +// CHECK: TranslationUnitDecl {{.*}} <<invalid sloc>> <invalid sloc>
> +// CHECK: |-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-for-simd.c:3:1,
> line:7:1> line:3:6 test_one 'void (int)'
> +// CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:15, col:19> col:19 used x 'int'
> +// CHECK-NEXT: | `-CompoundStmt {{.*}} <col:22, line:7:1>
> +// CHECK-NEXT: |   `-OMPForSimdDirective {{.*}} <line:4:9, col:21>
> +// CHECK-NEXT: |     `-CapturedStmt {{.*}} <line:5:3, line:6:5>
> +// CHECK-NEXT: |       |-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc>
> +// CHECK-NEXT: |       | |-ForStmt {{.*}} <line:5:3, line:6:5>
> +// CHECK-NEXT: |       | | |-DeclStmt {{.*}} <line:5:8, col:17>
> +// CHECK-NEXT: |       | | | `-VarDecl {{.*}} <col:8, col:16> col:12 used
> i 'int' cinit
> +// CHECK-NEXT: |       | | |   `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       | | |-<<<NULL>>>
> +// CHECK-NEXT: |       | | |-BinaryOperator {{.*}} <col:19, col:23> 'int'
> '<'
> +// CHECK-NEXT: |       | | | |-ImplicitCastExpr {{.*}} <col:19> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | | | | `-DeclRefExpr {{.*}} <col:19> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | `-ImplicitCastExpr {{.*}} <col:23> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | | |   `-DeclRefExpr {{.*}} <col:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | |-UnaryOperator {{.*}} <col:26, col:27> 'int'
> postfix '++'
> +// CHECK-NEXT: |       | | | `-DeclRefExpr {{.*}} <col:26> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | `-NullStmt {{.*}} <line:6:5>
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <line:4:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-for-simd.c:4:9) *const restrict'
> +// CHECK-NEXT: |       | `-VarDecl {{.*}} <line:5:8, col:16> col:12 used
> i 'int' cinit
> +// CHECK-NEXT: |       |   `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       `-DeclRefExpr {{.*}} <col:23> 'int' lvalue ParmVar
> {{.*}} 'x' 'int'
> +// CHECK-NEXT: |-FunctionDecl {{.*}} <line:9:1, line:14:1> line:9:6
> test_two 'void (int, int)'
> +// CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:15, col:19> col:19 used x 'int'
> +// CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:22, col:26> col:26 used y 'int'
> +// CHECK-NEXT: | `-CompoundStmt {{.*}} <col:29, line:14:1>
> +// CHECK-NEXT: |   `-OMPForSimdDirective {{.*}} <line:10:9, col:21>
> +// CHECK-NEXT: |     `-CapturedStmt {{.*}} <line:11:3, line:13:7>
> +// CHECK-NEXT: |       |-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc>
> +// CHECK-NEXT: |       | |-ForStmt {{.*}} <line:11:3, line:13:7>
> +// CHECK-NEXT: |       | | |-DeclStmt {{.*}} <line:11:8, col:17>
> +// CHECK-NEXT: |       | | | `-VarDecl {{.*}} <col:8, col:16> col:12 used
> i 'int' cinit
> +// CHECK-NEXT: |       | | |   `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       | | |-<<<NULL>>>
> +// CHECK-NEXT: |       | | |-BinaryOperator {{.*}} <col:19, col:23> 'int'
> '<'
> +// CHECK-NEXT: |       | | | |-ImplicitCastExpr {{.*}} <col:19> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | | | | `-DeclRefExpr {{.*}} <col:19> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | `-ImplicitCastExpr {{.*}} <col:23> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | | |   `-DeclRefExpr {{.*}} <col:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | |-UnaryOperator {{.*}} <col:26, col:27> 'int'
> postfix '++'
> +// CHECK-NEXT: |       | | | `-DeclRefExpr {{.*}} <col:26> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | `-ForStmt {{.*}} <line:12:5, line:13:7>
> +// CHECK-NEXT: |       | |   |-DeclStmt {{.*}} <line:12:10, col:19>
> +// CHECK-NEXT: |       | |   | `-VarDecl {{.*}} <col:10, col:18> col:14
> used i 'int' cinit
> +// CHECK-NEXT: |       | |   |   `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT: |       | |   |-<<<NULL>>>
> +// CHECK-NEXT: |       | |   |-BinaryOperator {{.*}} <col:21, col:25>
> 'int' '<'
> +// CHECK-NEXT: |       | |   | |-ImplicitCastExpr {{.*}} <col:21> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | |   | | `-DeclRefExpr {{.*}} <col:21> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | |   | `-ImplicitCastExpr {{.*}} <col:25> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | |   |   `-DeclRefExpr {{.*}} <col:25> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | |   |-UnaryOperator {{.*}} <col:28, col:29>
> 'int' postfix '++'
> +// CHECK-NEXT: |       | |   | `-DeclRefExpr {{.*}} <col:28> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | |   `-NullStmt {{.*}} <line:13:7>
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <line:10:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-for-simd.c:10:9) *const restrict'
> +// CHECK-NEXT: |       | |-VarDecl {{.*}} <line:11:8, col:16> col:12 used
> i 'int' cinit
> +// CHECK-NEXT: |       | | `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       | `-VarDecl {{.*}} <line:12:10, col:18> col:14
> used i 'int' cinit
> +// CHECK-NEXT: |       |   `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT: |       |-DeclRefExpr {{.*}} <line:11:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       `-DeclRefExpr {{.*}} <line:12:25> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |-FunctionDecl {{.*}} <line:16:1, line:21:1> line:16:6
> test_three 'void (int, int)'
> +// CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:17, col:21> col:21 used x 'int'
> +// CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:24, col:28> col:28 used y 'int'
> +// CHECK-NEXT: | `-CompoundStmt {{.*}} <col:31, line:21:1>
> +// CHECK-NEXT: |   `-OMPForSimdDirective {{.*}} <line:17:9, col:33>
> +// CHECK-NEXT: |     |-OMPCollapseClause {{.*}} <col:22, col:32>
> +// CHECK-NEXT: |     | `-ConstantExpr {{.*}} <col:31> 'int'
> +// CHECK-NEXT: |     |   `-IntegerLiteral {{.*}} <col:31> 'int' 1
> +// CHECK-NEXT: |     `-CapturedStmt {{.*}} <line:18:3, line:20:7>
> +// CHECK-NEXT: |       |-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc>
> +// CHECK-NEXT: |       | |-ForStmt {{.*}} <line:18:3, line:20:7>
> +// CHECK-NEXT: |       | | |-DeclStmt {{.*}} <line:18:8, col:17>
> +// CHECK-NEXT: |       | | | `-VarDecl {{.*}} <col:8, col:16> col:12 used
> i 'int' cinit
> +// CHECK-NEXT: |       | | |   `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       | | |-<<<NULL>>>
> +// CHECK-NEXT: |       | | |-BinaryOperator {{.*}} <col:19, col:23> 'int'
> '<'
> +// CHECK-NEXT: |       | | | |-ImplicitCastExpr {{.*}} <col:19> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | | | | `-DeclRefExpr {{.*}} <col:19> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | `-ImplicitCastExpr {{.*}} <col:23> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | | |   `-DeclRefExpr {{.*}} <col:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | |-UnaryOperator {{.*}} <col:26, col:27> 'int'
> postfix '++'
> +// CHECK-NEXT: |       | | | `-DeclRefExpr {{.*}} <col:26> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | `-ForStmt {{.*}} <line:19:5, line:20:7>
> +// CHECK-NEXT: |       | |   |-DeclStmt {{.*}} <line:19:10, col:19>
> +// CHECK-NEXT: |       | |   | `-VarDecl {{.*}} <col:10, col:18> col:14
> used i 'int' cinit
> +// CHECK-NEXT: |       | |   |   `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT: |       | |   |-<<<NULL>>>
> +// CHECK-NEXT: |       | |   |-BinaryOperator {{.*}} <col:21, col:25>
> 'int' '<'
> +// CHECK-NEXT: |       | |   | |-ImplicitCastExpr {{.*}} <col:21> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | |   | | `-DeclRefExpr {{.*}} <col:21> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | |   | `-ImplicitCastExpr {{.*}} <col:25> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | |   |   `-DeclRefExpr {{.*}} <col:25> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | |   |-UnaryOperator {{.*}} <col:28, col:29>
> 'int' postfix '++'
> +// CHECK-NEXT: |       | |   | `-DeclRefExpr {{.*}} <col:28> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | |   `-NullStmt {{.*}} <line:20:7>
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <line:17:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-for-simd.c:17:9) *const restrict'
> +// CHECK-NEXT: |       | |-VarDecl {{.*}} <line:18:8, col:16> col:12 used
> i 'int' cinit
> +// CHECK-NEXT: |       | | `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       | `-VarDecl {{.*}} <line:19:10, col:18> col:14
> used i 'int' cinit
> +// CHECK-NEXT: |       |   `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT: |       |-DeclRefExpr {{.*}} <line:18:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       `-DeclRefExpr {{.*}} <line:19:25> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |-FunctionDecl {{.*}} <line:23:1, line:28:1> line:23:6
> test_four 'void (int, int)'
> +// CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:16, col:20> col:20 used x 'int'
> +// CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:23, col:27> col:27 used y 'int'
> +// CHECK-NEXT: | `-CompoundStmt {{.*}} <col:30, line:28:1>
> +// CHECK-NEXT: |   `-OMPForSimdDirective {{.*}} <line:24:9, col:33>
> +// CHECK-NEXT: |     |-OMPCollapseClause {{.*}} <col:22, col:32>
> +// CHECK-NEXT: |     | `-ConstantExpr {{.*}} <col:31> 'int'
> +// CHECK-NEXT: |     |   `-IntegerLiteral {{.*}} <col:31> 'int' 2
> +// CHECK-NEXT: |     `-CapturedStmt {{.*}} <line:25:3, line:27:7>
> +// CHECK-NEXT: |       |-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc>
> +// CHECK-NEXT: |       | |-ForStmt {{.*}} <line:25:3, line:27:7>
> +// CHECK-NEXT: |       | | |-DeclStmt {{.*}} <line:25:8, col:17>
> +// CHECK-NEXT: |       | | | `-VarDecl {{.*}} <col:8, col:16> col:12 used
> i 'int' cinit
> +// CHECK-NEXT: |       | | |   `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       | | |-<<<NULL>>>
> +// CHECK-NEXT: |       | | |-BinaryOperator {{.*}} <col:19, col:23> 'int'
> '<'
> +// CHECK-NEXT: |       | | | |-ImplicitCastExpr {{.*}} <col:19> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | | | | `-DeclRefExpr {{.*}} <col:19> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | `-ImplicitCastExpr {{.*}} <col:23> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | | |   `-DeclRefExpr {{.*}} <col:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | |-UnaryOperator {{.*}} <col:26, col:27> 'int'
> postfix '++'
> +// CHECK-NEXT: |       | | | `-DeclRefExpr {{.*}} <col:26> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | `-ForStmt {{.*}} <line:26:5, line:27:7>
> +// CHECK-NEXT: |       | |   |-DeclStmt {{.*}} <line:26:10, col:19>
> +// CHECK-NEXT: |       | |   | `-VarDecl {{.*}} <col:10, col:18> col:14
> used i 'int' cinit
> +// CHECK-NEXT: |       | |   |   `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT: |       | |   |-<<<NULL>>>
> +// CHECK-NEXT: |       | |   |-BinaryOperator {{.*}} <col:21, col:25>
> 'int' '<'
> +// CHECK-NEXT: |       | |   | |-ImplicitCastExpr {{.*}} <col:21> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | |   | | `-DeclRefExpr {{.*}} <col:21> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | |   | `-ImplicitCastExpr {{.*}} <col:25> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | |   |   `-DeclRefExpr {{.*}} <col:25> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | |   |-UnaryOperator {{.*}} <col:28, col:29>
> 'int' postfix '++'
> +// CHECK-NEXT: |       | |   | `-DeclRefExpr {{.*}} <col:28> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | |   `-NullStmt {{.*}} <line:27:7>
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <line:24:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-for-simd.c:24:9) *const restrict'
> +// CHECK-NEXT: |       | |-VarDecl {{.*}} <line:25:8, col:16> col:12 used
> i 'int' cinit
> +// CHECK-NEXT: |       | | `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       | `-VarDecl {{.*}} <line:26:10, col:18> col:14
> used i 'int' cinit
> +// CHECK-NEXT: |       |   `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT: |       |-DeclRefExpr {{.*}} <line:25:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       `-DeclRefExpr {{.*}} <line:26:25> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: `-FunctionDecl {{.*}} <line:30:1, line:36:1> line:30:6
> test_five 'void (int, int, int)'
> +// CHECK-NEXT:   |-ParmVarDecl {{.*}} <col:16, col:20> col:20 used x 'int'
> +// CHECK-NEXT:   |-ParmVarDecl {{.*}} <col:23, col:27> col:27 used y 'int'
> +// CHECK-NEXT:   |-ParmVarDecl {{.*}} <col:30, col:34> col:34 used z 'int'
> +// CHECK-NEXT:   `-CompoundStmt {{.*}} <col:37, line:36:1>
> +// CHECK-NEXT:     `-OMPForSimdDirective {{.*}} <line:31:9, col:33>
> +// CHECK-NEXT:       |-OMPCollapseClause {{.*}} <col:22, col:32>
> +// CHECK-NEXT:       | `-ConstantExpr {{.*}} <col:31> 'int'
> +// CHECK-NEXT:       |   `-IntegerLiteral {{.*}} <col:31> 'int' 2
> +// CHECK-NEXT:       `-CapturedStmt {{.*}} <line:32:3, line:35:9>
> +// CHECK-NEXT:         |-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc>
> +// CHECK-NEXT:         | |-ForStmt {{.*}} <line:32:3, line:35:9>
> +// CHECK-NEXT:         | | |-DeclStmt {{.*}} <line:32:8, col:17>
> +// CHECK-NEXT:         | | | `-VarDecl {{.*}} <col:8, col:16> col:12 used
> i 'int' cinit
> +// CHECK-NEXT:         | | |   `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT:         | | |-<<<NULL>>>
> +// CHECK-NEXT:         | | |-BinaryOperator {{.*}} <col:19, col:23> 'int'
> '<'
> +// CHECK-NEXT:         | | | |-ImplicitCastExpr {{.*}} <col:19> 'int'
> <LValueToRValue>
> +// CHECK-NEXT:         | | | | `-DeclRefExpr {{.*}} <col:19> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | | `-ImplicitCastExpr {{.*}} <col:23> 'int'
> <LValueToRValue>
> +// CHECK-NEXT:         | | |   `-DeclRefExpr {{.*}} <col:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT:         | | |-UnaryOperator {{.*}} <col:26, col:27> 'int'
> postfix '++'
> +// CHECK-NEXT:         | | | `-DeclRefExpr {{.*}} <col:26> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | `-ForStmt {{.*}} <line:33:5, line:35:9>
> +// CHECK-NEXT:         | |   |-DeclStmt {{.*}} <line:33:10, col:19>
> +// CHECK-NEXT:         | |   | `-VarDecl {{.*}} <col:10, col:18> col:14
> used i 'int' cinit
> +// CHECK-NEXT:         | |   |   `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT:         | |   |-<<<NULL>>>
> +// CHECK-NEXT:         | |   |-BinaryOperator {{.*}} <col:21, col:25>
> 'int' '<'
> +// CHECK-NEXT:         | |   | |-ImplicitCastExpr {{.*}} <col:21> 'int'
> <LValueToRValue>
> +// CHECK-NEXT:         | |   | | `-DeclRefExpr {{.*}} <col:21> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | |   | `-ImplicitCastExpr {{.*}} <col:25> 'int'
> <LValueToRValue>
> +// CHECK-NEXT:         | |   |   `-DeclRefExpr {{.*}} <col:25> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT:         | |   |-UnaryOperator {{.*}} <col:28, col:29>
> 'int' postfix '++'
> +// CHECK-NEXT:         | |   | `-DeclRefExpr {{.*}} <col:28> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | |   `-ForStmt {{.*}} <line:34:7, line:35:9>
> +// CHECK-NEXT:         | |     |-DeclStmt {{.*}} <line:34:12, col:21>
> +// CHECK-NEXT:         | |     | `-VarDecl {{.*}} <col:12, col:20> col:16
> used i 'int' cinit
> +// CHECK-NEXT:         | |     |   `-IntegerLiteral {{.*}} <col:20> 'int'
> 0
> +// CHECK-NEXT:         | |     |-<<<NULL>>>
> +// CHECK-NEXT:         | |     |-BinaryOperator {{.*}} <col:23, col:27>
> 'int' '<'
> +// CHECK-NEXT:         | |     | |-ImplicitCastExpr {{.*}} <col:23> 'int'
> <LValueToRValue>
> +// CHECK-NEXT:         | |     | | `-DeclRefExpr {{.*}} <col:23> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | |     | `-ImplicitCastExpr {{.*}} <col:27> 'int'
> <LValueToRValue>
> +// CHECK-NEXT:         | |     |   `-DeclRefExpr {{.*}} <col:27> 'int'
> lvalue ParmVar {{.*}} 'z' 'int'
> +// CHECK-NEXT:         | |     |-UnaryOperator {{.*}} <col:30, col:31>
> 'int' postfix '++'
> +// CHECK-NEXT:         | |     | `-DeclRefExpr {{.*}} <col:30> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | |     `-NullStmt {{.*}} <line:35:9>
> +// CHECK-NEXT:         | |-ImplicitParamDecl {{.*}} <line:31:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-for-simd.c:31:9) *const restrict'
> +// CHECK-NEXT:         | |-VarDecl {{.*}} <line:32:8, col:16> col:12 used
> i 'int' cinit
> +// CHECK-NEXT:         | | `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT:         | |-VarDecl {{.*}} <line:33:10, col:18> col:14
> used i 'int' cinit
> +// CHECK-NEXT:         | | `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT:         | `-VarDecl {{.*}} <line:34:12, col:20> col:16
> used i 'int' cinit
> +// CHECK-NEXT:         |   `-IntegerLiteral {{.*}} <col:20> 'int' 0
> +// CHECK-NEXT:         |-DeclRefExpr {{.*}} <line:32:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT:         |-DeclRefExpr {{.*}} <line:33:25> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT:         `-DeclRefExpr {{.*}} <line:34:27> 'int' lvalue
> ParmVar {{.*}} 'z' 'int'
>
> Added: cfe/trunk/test/AST/ast-dump-openmp-for.c
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/test/AST/ast-dump-openmp-for.c?rev=356569&view=auto
>
> ==============================================================================
> --- cfe/trunk/test/AST/ast-dump-openmp-for.c (added)
> +++ cfe/trunk/test/AST/ast-dump-openmp-for.c Wed Mar 20 09:31:47 2019
> @@ -0,0 +1,242 @@
> +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s |
> FileCheck --match-full-lines -implicit-check-not=openmp_structured_block %s
> +
> +void test_one(int x) {
> +#pragma omp for
> +  for (int i = 0; i < x; i++)
> +    ;
> +}
> +
> +void test_two(int x, int y) {
> +#pragma omp for
> +  for (int i = 0; i < x; i++)
> +    for (int i = 0; i < y; i++)
> +      ;
> +}
> +
> +void test_three(int x, int y) {
> +#pragma omp for collapse(1)
> +  for (int i = 0; i < x; i++)
> +    for (int i = 0; i < y; i++)
> +      ;
> +}
> +
> +void test_four(int x, int y) {
> +#pragma omp for collapse(2)
> +  for (int i = 0; i < x; i++)
> +    for (int i = 0; i < y; i++)
> +      ;
> +}
> +
> +void test_five(int x, int y, int z) {
> +#pragma omp for collapse(2)
> +  for (int i = 0; i < x; i++)
> +    for (int i = 0; i < y; i++)
> +      for (int i = 0; i < z; i++)
> +        ;
> +}
> +
> +// CHECK: TranslationUnitDecl 0x{{.*}} <<invalid sloc>> <invalid sloc>
> +// CHECK: |-FunctionDecl 0x{{.*}} <{{.*}}ast-dump-openmp-for.c:3:1,
> line:7:1> line:3:6 test_one 'void (int)'
> +// CHECK-NEXT: | |-ParmVarDecl 0x{{.*}} <col:15, col:19> col:19 used x
> 'int'
> +// CHECK-NEXT: | `-CompoundStmt 0x{{.*}} <col:22, line:7:1>
> +// CHECK-NEXT: |   `-OMPForDirective 0x{{.*}} <line:4:9, col:16>
> +// CHECK-NEXT: |     `-CapturedStmt 0x{{.*}} <line:5:3, line:6:5>
> +// CHECK-NEXT: |       |-CapturedDecl 0x{{.*}} <<invalid sloc>> <invalid
> sloc>
> +// CHECK-NEXT: |       | |-ForStmt 0x{{.*}} <line:5:3, line:6:5>
> +// CHECK-NEXT: |       | | |-DeclStmt 0x{{.*}} <line:5:8, col:17>
> +// CHECK-NEXT: |       | | | `-VarDecl 0x{{.*}} <col:8, col:16> col:12
> used i 'int' cinit
> +// CHECK-NEXT: |       | | |   `-IntegerLiteral 0x{{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       | | |-<<<NULL>>>
> +// CHECK-NEXT: |       | | |-BinaryOperator 0x{{.*}} <col:19, col:23>
> 'int' '<'
> +// CHECK-NEXT: |       | | | |-ImplicitCastExpr 0x{{.*}} <col:19> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | | | | `-DeclRefExpr 0x{{.*}} <col:19> 'int'
> lvalue Var 0x{{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | `-ImplicitCastExpr 0x{{.*}} <col:23> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | | |   `-DeclRefExpr 0x{{.*}} <col:23> 'int'
> lvalue ParmVar 0x{{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | |-UnaryOperator 0x{{.*}} <col:26, col:27>
> 'int' postfix '++'
> +// CHECK-NEXT: |       | | | `-DeclRefExpr 0x{{.*}} <col:26> 'int' lvalue
> Var 0x{{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | `-NullStmt 0x{{.*}} <line:6:5>
> +// CHECK-NEXT: |       | |-ImplicitParamDecl 0x{{.*}} <line:4:9> col:9
> implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-for.c:4:9)
> *const restrict'
> +// CHECK-NEXT: |       | `-VarDecl 0x{{.*}} <line:5:8, col:16> col:12
> used i 'int' cinit
> +// CHECK-NEXT: |       |   `-IntegerLiteral 0x{{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       `-DeclRefExpr 0x{{.*}} <col:3> 'int' lvalue
> ParmVar 0x{{.*}} 'x' 'int'
> +// CHECK-NEXT: |-FunctionDecl 0x{{.*}} <line:9:1, line:14:1> line:9:6
> test_two 'void (int, int)'
> +// CHECK-NEXT: | |-ParmVarDecl 0x{{.*}} <col:15, col:19> col:19 used x
> 'int'
> +// CHECK-NEXT: | |-ParmVarDecl 0x{{.*}} <col:22, col:26> col:26 used y
> 'int'
> +// CHECK-NEXT: | `-CompoundStmt 0x{{.*}} <col:29, line:14:1>
> +// CHECK-NEXT: |   `-OMPForDirective 0x{{.*}} <line:10:9, col:16>
> +// CHECK-NEXT: |     `-CapturedStmt 0x{{.*}} <line:11:3, line:13:7>
> +// CHECK-NEXT: |       |-CapturedDecl 0x{{.*}} <<invalid sloc>> <invalid
> sloc>
> +// CHECK-NEXT: |       | |-ForStmt 0x{{.*}} <line:11:3, line:13:7>
> +// CHECK-NEXT: |       | | |-DeclStmt 0x{{.*}} <line:11:8, col:17>
> +// CHECK-NEXT: |       | | | `-VarDecl 0x{{.*}} <col:8, col:16> col:12
> used i 'int' cinit
> +// CHECK-NEXT: |       | | |   `-IntegerLiteral 0x{{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       | | |-<<<NULL>>>
> +// CHECK-NEXT: |       | | |-BinaryOperator 0x{{.*}} <col:19, col:23>
> 'int' '<'
> +// CHECK-NEXT: |       | | | |-ImplicitCastExpr 0x{{.*}} <col:19> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | | | | `-DeclRefExpr 0x{{.*}} <col:19> 'int'
> lvalue Var 0x{{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | `-ImplicitCastExpr 0x{{.*}} <col:23> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | | |   `-DeclRefExpr 0x{{.*}} <col:23> 'int'
> lvalue ParmVar 0x{{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | |-UnaryOperator 0x{{.*}} <col:26, col:27>
> 'int' postfix '++'
> +// CHECK-NEXT: |       | | | `-DeclRefExpr 0x{{.*}} <col:26> 'int' lvalue
> Var 0x{{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | `-ForStmt 0x{{.*}} <line:12:5, line:13:7>
> +// CHECK-NEXT: |       | |   |-DeclStmt 0x{{.*}} <line:12:10, col:19>
> +// CHECK-NEXT: |       | |   | `-VarDecl 0x{{.*}} <col:10, col:18> col:14
> used i 'int' cinit
> +// CHECK-NEXT: |       | |   |   `-IntegerLiteral 0x{{.*}} <col:18> 'int'
> 0
> +// CHECK-NEXT: |       | |   |-<<<NULL>>>
> +// CHECK-NEXT: |       | |   |-BinaryOperator 0x{{.*}} <col:21, col:25>
> 'int' '<'
> +// CHECK-NEXT: |       | |   | |-ImplicitCastExpr 0x{{.*}} <col:21> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | |   | | `-DeclRefExpr 0x{{.*}} <col:21> 'int'
> lvalue Var 0x{{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | |   | `-ImplicitCastExpr 0x{{.*}} <col:25> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | |   |   `-DeclRefExpr 0x{{.*}} <col:25> 'int'
> lvalue ParmVar 0x{{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | |   |-UnaryOperator 0x{{.*}} <col:28, col:29>
> 'int' postfix '++'
> +// CHECK-NEXT: |       | |   | `-DeclRefExpr 0x{{.*}} <col:28> 'int'
> lvalue Var 0x{{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | |   `-NullStmt 0x{{.*}} <line:13:7>
> +// CHECK-NEXT: |       | |-ImplicitParamDecl 0x{{.*}} <line:10:9> col:9
> implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-for.c:10:9)
> *const restrict'
> +// CHECK-NEXT: |       | |-VarDecl 0x{{.*}} <line:11:8, col:16> col:12
> used i 'int' cinit
> +// CHECK-NEXT: |       | | `-IntegerLiteral 0x{{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       | `-VarDecl 0x{{.*}} <line:12:10, col:18> col:14
> used i 'int' cinit
> +// CHECK-NEXT: |       |   `-IntegerLiteral 0x{{.*}} <col:18> 'int' 0
> +// CHECK-NEXT: |       |-DeclRefExpr 0x{{.*}} <line:11:3> 'int' lvalue
> ParmVar 0x{{.*}} 'x' 'int'
> +// CHECK-NEXT: |       `-DeclRefExpr 0x{{.*}} <line:12:25> 'int' lvalue
> ParmVar 0x{{.*}} 'y' 'int'
> +// CHECK-NEXT: |-FunctionDecl 0x{{.*}} <line:16:1, line:21:1> line:16:6
> test_three 'void (int, int)'
> +// CHECK-NEXT: | |-ParmVarDecl 0x{{.*}} <col:17, col:21> col:21 used x
> 'int'
> +// CHECK-NEXT: | |-ParmVarDecl 0x{{.*}} <col:24, col:28> col:28 used y
> 'int'
> +// CHECK-NEXT: | `-CompoundStmt 0x{{.*}} <col:31, line:21:1>
> +// CHECK-NEXT: |   `-OMPForDirective 0x{{.*}} <line:17:9, col:28>
> +// CHECK-NEXT: |     |-OMPCollapseClause 0x{{.*}} <col:17, col:27>
> +// CHECK-NEXT: |     | `-ConstantExpr 0x{{.*}} <col:26> 'int'
> +// CHECK-NEXT: |     |   `-IntegerLiteral 0x{{.*}} <col:26> 'int' 1
> +// CHECK-NEXT: |     `-CapturedStmt 0x{{.*}} <line:18:3, line:20:7>
> +// CHECK-NEXT: |       |-CapturedDecl 0x{{.*}} <<invalid sloc>> <invalid
> sloc>
> +// CHECK-NEXT: |       | |-ForStmt 0x{{.*}} <line:18:3, line:20:7>
> +// CHECK-NEXT: |       | | |-DeclStmt 0x{{.*}} <line:18:8, col:17>
> +// CHECK-NEXT: |       | | | `-VarDecl 0x{{.*}} <col:8, col:16> col:12
> used i 'int' cinit
> +// CHECK-NEXT: |       | | |   `-IntegerLiteral 0x{{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       | | |-<<<NULL>>>
> +// CHECK-NEXT: |       | | |-BinaryOperator 0x{{.*}} <col:19, col:23>
> 'int' '<'
> +// CHECK-NEXT: |       | | | |-ImplicitCastExpr 0x{{.*}} <col:19> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | | | | `-DeclRefExpr 0x{{.*}} <col:19> 'int'
> lvalue Var 0x{{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | `-ImplicitCastExpr 0x{{.*}} <col:23> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | | |   `-DeclRefExpr 0x{{.*}} <col:23> 'int'
> lvalue ParmVar 0x{{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | |-UnaryOperator 0x{{.*}} <col:26, col:27>
> 'int' postfix '++'
> +// CHECK-NEXT: |       | | | `-DeclRefExpr 0x{{.*}} <col:26> 'int' lvalue
> Var 0x{{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | `-ForStmt 0x{{.*}} <line:19:5, line:20:7>
> +// CHECK-NEXT: |       | |   |-DeclStmt 0x{{.*}} <line:19:10, col:19>
> +// CHECK-NEXT: |       | |   | `-VarDecl 0x{{.*}} <col:10, col:18> col:14
> used i 'int' cinit
> +// CHECK-NEXT: |       | |   |   `-IntegerLiteral 0x{{.*}} <col:18> 'int'
> 0
> +// CHECK-NEXT: |       | |   |-<<<NULL>>>
> +// CHECK-NEXT: |       | |   |-BinaryOperator 0x{{.*}} <col:21, col:25>
> 'int' '<'
> +// CHECK-NEXT: |       | |   | |-ImplicitCastExpr 0x{{.*}} <col:21> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | |   | | `-DeclRefExpr 0x{{.*}} <col:21> 'int'
> lvalue Var 0x{{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | |   | `-ImplicitCastExpr 0x{{.*}} <col:25> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | |   |   `-DeclRefExpr 0x{{.*}} <col:25> 'int'
> lvalue ParmVar 0x{{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | |   |-UnaryOperator 0x{{.*}} <col:28, col:29>
> 'int' postfix '++'
> +// CHECK-NEXT: |       | |   | `-DeclRefExpr 0x{{.*}} <col:28> 'int'
> lvalue Var 0x{{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | |   `-NullStmt 0x{{.*}} <line:20:7>
> +// CHECK-NEXT: |       | |-ImplicitParamDecl 0x{{.*}} <line:17:9> col:9
> implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-for.c:17:9)
> *const restrict'
> +// CHECK-NEXT: |       | |-VarDecl 0x{{.*}} <line:18:8, col:16> col:12
> used i 'int' cinit
> +// CHECK-NEXT: |       | | `-IntegerLiteral 0x{{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       | `-VarDecl 0x{{.*}} <line:19:10, col:18> col:14
> used i 'int' cinit
> +// CHECK-NEXT: |       |   `-IntegerLiteral 0x{{.*}} <col:18> 'int' 0
> +// CHECK-NEXT: |       |-DeclRefExpr 0x{{.*}} <line:18:3> 'int' lvalue
> ParmVar 0x{{.*}} 'x' 'int'
> +// CHECK-NEXT: |       `-DeclRefExpr 0x{{.*}} <line:19:25> 'int' lvalue
> ParmVar 0x{{.*}} 'y' 'int'
> +// CHECK-NEXT: |-FunctionDecl 0x{{.*}} <line:23:1, line:28:1> line:23:6
> test_four 'void (int, int)'
> +// CHECK-NEXT: | |-ParmVarDecl 0x{{.*}} <col:16, col:20> col:20 used x
> 'int'
> +// CHECK-NEXT: | |-ParmVarDecl 0x{{.*}} <col:23, col:27> col:27 used y
> 'int'
> +// CHECK-NEXT: | `-CompoundStmt 0x{{.*}} <col:30, line:28:1>
> +// CHECK-NEXT: |   `-OMPForDirective 0x{{.*}} <line:24:9, col:28>
> +// CHECK-NEXT: |     |-OMPCollapseClause 0x{{.*}} <col:17, col:27>
> +// CHECK-NEXT: |     | `-ConstantExpr 0x{{.*}} <col:26> 'int'
> +// CHECK-NEXT: |     |   `-IntegerLiteral 0x{{.*}} <col:26> 'int' 2
> +// CHECK-NEXT: |     `-CapturedStmt 0x{{.*}} <line:25:3, line:27:7>
> +// CHECK-NEXT: |       |-CapturedDecl 0x{{.*}} <<invalid sloc>> <invalid
> sloc>
> +// CHECK-NEXT: |       | |-ForStmt 0x{{.*}} <line:25:3, line:27:7>
> +// CHECK-NEXT: |       | | |-DeclStmt 0x{{.*}} <line:25:8, col:17>
> +// CHECK-NEXT: |       | | | `-VarDecl 0x{{.*}} <col:8, col:16> col:12
> used i 'int' cinit
> +// CHECK-NEXT: |       | | |   `-IntegerLiteral 0x{{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       | | |-<<<NULL>>>
> +// CHECK-NEXT: |       | | |-BinaryOperator 0x{{.*}} <col:19, col:23>
> 'int' '<'
> +// CHECK-NEXT: |       | | | |-ImplicitCastExpr 0x{{.*}} <col:19> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | | | | `-DeclRefExpr 0x{{.*}} <col:19> 'int'
> lvalue Var 0x{{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | `-ImplicitCastExpr 0x{{.*}} <col:23> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | | |   `-DeclRefExpr 0x{{.*}} <col:23> 'int'
> lvalue ParmVar 0x{{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | |-UnaryOperator 0x{{.*}} <col:26, col:27>
> 'int' postfix '++'
> +// CHECK-NEXT: |       | | | `-DeclRefExpr 0x{{.*}} <col:26> 'int' lvalue
> Var 0x{{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | `-ForStmt 0x{{.*}} <line:26:5, line:27:7>
> +// CHECK-NEXT: |       | |   |-DeclStmt 0x{{.*}} <line:26:10, col:19>
> +// CHECK-NEXT: |       | |   | `-VarDecl 0x{{.*}} <col:10, col:18> col:14
> used i 'int' cinit
> +// CHECK-NEXT: |       | |   |   `-IntegerLiteral 0x{{.*}} <col:18> 'int'
> 0
> +// CHECK-NEXT: |       | |   |-<<<NULL>>>
> +// CHECK-NEXT: |       | |   |-BinaryOperator 0x{{.*}} <col:21, col:25>
> 'int' '<'
> +// CHECK-NEXT: |       | |   | |-ImplicitCastExpr 0x{{.*}} <col:21> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | |   | | `-DeclRefExpr 0x{{.*}} <col:21> 'int'
> lvalue Var 0x{{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | |   | `-ImplicitCastExpr 0x{{.*}} <col:25> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | |   |   `-DeclRefExpr 0x{{.*}} <col:25> 'int'
> lvalue ParmVar 0x{{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | |   |-UnaryOperator 0x{{.*}} <col:28, col:29>
> 'int' postfix '++'
> +// CHECK-NEXT: |       | |   | `-DeclRefExpr 0x{{.*}} <col:28> 'int'
> lvalue Var 0x{{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | |   `-NullStmt 0x{{.*}} <line:27:7>
> +// CHECK-NEXT: |       | |-ImplicitParamDecl 0x{{.*}} <line:24:9> col:9
> implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-for.c:24:9)
> *const restrict'
> +// CHECK-NEXT: |       | |-VarDecl 0x{{.*}} <line:25:8, col:16> col:12
> used i 'int' cinit
> +// CHECK-NEXT: |       | | `-IntegerLiteral 0x{{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       | `-VarDecl 0x{{.*}} <line:26:10, col:18> col:14
> used i 'int' cinit
> +// CHECK-NEXT: |       |   `-IntegerLiteral 0x{{.*}} <col:18> 'int' 0
> +// CHECK-NEXT: |       |-DeclRefExpr 0x{{.*}} <line:25:3> 'int' lvalue
> ParmVar 0x{{.*}} 'x' 'int'
> +// CHECK-NEXT: |       `-DeclRefExpr 0x{{.*}} <line:26:5> 'int' lvalue
> ParmVar 0x{{.*}} 'y' 'int'
> +// CHECK-NEXT: `-FunctionDecl 0x{{.*}} <line:30:1, line:36:1> line:30:6
> test_five 'void (int, int, int)'
> +// CHECK-NEXT:   |-ParmVarDecl 0x{{.*}} <col:16, col:20> col:20 used x
> 'int'
> +// CHECK-NEXT:   |-ParmVarDecl 0x{{.*}} <col:23, col:27> col:27 used y
> 'int'
> +// CHECK-NEXT:   |-ParmVarDecl 0x{{.*}} <col:30, col:34> col:34 used z
> 'int'
> +// CHECK-NEXT:   `-CompoundStmt 0x{{.*}} <col:37, line:36:1>
> +// CHECK-NEXT:     `-OMPForDirective 0x{{.*}} <line:31:9, col:28>
> +// CHECK-NEXT:       |-OMPCollapseClause 0x{{.*}} <col:17, col:27>
> +// CHECK-NEXT:       | `-ConstantExpr 0x{{.*}} <col:26> 'int'
> +// CHECK-NEXT:       |   `-IntegerLiteral 0x{{.*}} <col:26> 'int' 2
> +// CHECK-NEXT:       `-CapturedStmt 0x{{.*}} <line:32:3, line:35:9>
> +// CHECK-NEXT:         |-CapturedDecl 0x{{.*}} <<invalid sloc>> <invalid
> sloc>
> +// CHECK-NEXT:         | |-ForStmt 0x{{.*}} <line:32:3, line:35:9>
> +// CHECK-NEXT:         | | |-DeclStmt 0x{{.*}} <line:32:8, col:17>
> +// CHECK-NEXT:         | | | `-VarDecl 0x{{.*}} <col:8, col:16> col:12
> used i 'int' cinit
> +// CHECK-NEXT:         | | |   `-IntegerLiteral 0x{{.*}} <col:16> 'int' 0
> +// CHECK-NEXT:         | | |-<<<NULL>>>
> +// CHECK-NEXT:         | | |-BinaryOperator 0x{{.*}} <col:19, col:23>
> 'int' '<'
> +// CHECK-NEXT:         | | | |-ImplicitCastExpr 0x{{.*}} <col:19> 'int'
> <LValueToRValue>
> +// CHECK-NEXT:         | | | | `-DeclRefExpr 0x{{.*}} <col:19> 'int'
> lvalue Var 0x{{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | | `-ImplicitCastExpr 0x{{.*}} <col:23> 'int'
> <LValueToRValue>
> +// CHECK-NEXT:         | | |   `-DeclRefExpr 0x{{.*}} <col:23> 'int'
> lvalue ParmVar 0x{{.*}} 'x' 'int'
> +// CHECK-NEXT:         | | |-UnaryOperator 0x{{.*}} <col:26, col:27>
> 'int' postfix '++'
> +// CHECK-NEXT:         | | | `-DeclRefExpr 0x{{.*}} <col:26> 'int' lvalue
> Var 0x{{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | `-ForStmt 0x{{.*}} <line:33:5, line:35:9>
> +// CHECK-NEXT:         | |   |-DeclStmt 0x{{.*}} <line:33:10, col:19>
> +// CHECK-NEXT:         | |   | `-VarDecl 0x{{.*}} <col:10, col:18> col:14
> used i 'int' cinit
> +// CHECK-NEXT:         | |   |   `-IntegerLiteral 0x{{.*}} <col:18> 'int'
> 0
> +// CHECK-NEXT:         | |   |-<<<NULL>>>
> +// CHECK-NEXT:         | |   |-BinaryOperator 0x{{.*}} <col:21, col:25>
> 'int' '<'
> +// CHECK-NEXT:         | |   | |-ImplicitCastExpr 0x{{.*}} <col:21> 'int'
> <LValueToRValue>
> +// CHECK-NEXT:         | |   | | `-DeclRefExpr 0x{{.*}} <col:21> 'int'
> lvalue Var 0x{{.*}} 'i' 'int'
> +// CHECK-NEXT:         | |   | `-ImplicitCastExpr 0x{{.*}} <col:25> 'int'
> <LValueToRValue>
> +// CHECK-NEXT:         | |   |   `-DeclRefExpr 0x{{.*}} <col:25> 'int'
> lvalue ParmVar 0x{{.*}} 'y' 'int'
> +// CHECK-NEXT:         | |   |-UnaryOperator 0x{{.*}} <col:28, col:29>
> 'int' postfix '++'
> +// CHECK-NEXT:         | |   | `-DeclRefExpr 0x{{.*}} <col:28> 'int'
> lvalue Var 0x{{.*}} 'i' 'int'
> +// CHECK-NEXT:         | |   `-ForStmt 0x{{.*}} <line:34:7, line:35:9>
> +// CHECK-NEXT:         | |     |-DeclStmt 0x{{.*}} <line:34:12, col:21>
> +// CHECK-NEXT:         | |     | `-VarDecl 0x{{.*}} <col:12, col:20>
> col:16 used i 'int' cinit
> +// CHECK-NEXT:         | |     |   `-IntegerLiteral 0x{{.*}} <col:20>
> 'int' 0
> +// CHECK-NEXT:         | |     |-<<<NULL>>>
> +// CHECK-NEXT:         | |     |-BinaryOperator 0x{{.*}} <col:23, col:27>
> 'int' '<'
> +// CHECK-NEXT:         | |     | |-ImplicitCastExpr 0x{{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         | |     | | `-DeclRefExpr 0x{{.*}} <col:23> 'int'
> lvalue Var 0x{{.*}} 'i' 'int'
> +// CHECK-NEXT:         | |     | `-ImplicitCastExpr 0x{{.*}} <col:27>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         | |     |   `-DeclRefExpr 0x{{.*}} <col:27> 'int'
> lvalue ParmVar 0x{{.*}} 'z' 'int'
> +// CHECK-NEXT:         | |     |-UnaryOperator 0x{{.*}} <col:30, col:31>
> 'int' postfix '++'
> +// CHECK-NEXT:         | |     | `-DeclRefExpr 0x{{.*}} <col:30> 'int'
> lvalue Var 0x{{.*}} 'i' 'int'
> +// CHECK-NEXT:         | |     `-NullStmt 0x{{.*}} <line:35:9>
> +// CHECK-NEXT:         | |-ImplicitParamDecl 0x{{.*}} <line:31:9> col:9
> implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-for.c:31:9)
> *const restrict'
> +// CHECK-NEXT:         | |-VarDecl 0x{{.*}} <line:32:8, col:16> col:12
> used i 'int' cinit
> +// CHECK-NEXT:         | | `-IntegerLiteral 0x{{.*}} <col:16> 'int' 0
> +// CHECK-NEXT:         | |-VarDecl 0x{{.*}} <line:33:10, col:18> col:14
> used i 'int' cinit
> +// CHECK-NEXT:         | | `-IntegerLiteral 0x{{.*}} <col:18> 'int' 0
> +// CHECK-NEXT:         | `-VarDecl 0x{{.*}} <line:34:12, col:20> col:16
> used i 'int' cinit
> +// CHECK-NEXT:         |   `-IntegerLiteral 0x{{.*}} <col:20> 'int' 0
> +// CHECK-NEXT:         |-DeclRefExpr 0x{{.*}} <line:32:3> 'int' lvalue
> ParmVar 0x{{.*}} 'x' 'int'
> +// CHECK-NEXT:         |-DeclRefExpr 0x{{.*}} <line:33:5> 'int' lvalue
> ParmVar 0x{{.*}} 'y' 'int'
> +// CHECK-NEXT:         `-DeclRefExpr 0x{{.*}} <line:34:27> 'int' lvalue
> ParmVar 0x{{.*}} 'z' 'int'
>
> Added: cfe/trunk/test/AST/ast-dump-openmp-master.c
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/test/AST/ast-dump-openmp-master.c?rev=356569&view=auto
>
> ==============================================================================
> --- cfe/trunk/test/AST/ast-dump-openmp-master.c (added)
> +++ cfe/trunk/test/AST/ast-dump-openmp-master.c Wed Mar 20 09:31:47 2019
> @@ -0,0 +1,15 @@
> +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s |
> FileCheck --match-full-lines -implicit-check-not=openmp_structured_block %s
> +
> +void test() {
> +#pragma omp master
> +  ;
> +}
> +
> +// CHECK: TranslationUnitDecl {{.*}} <<invalid sloc>> <invalid sloc>
> +// CHECK: `-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-master.c:3:1,
> line:6:1> line:3:6 test 'void ()'
> +// CHECK-NEXT:   `-CompoundStmt {{.*}} <col:13, line:6:1>
> +// CHECK-NEXT:     `-OMPMasterDirective {{.*}} <line:4:9, col:19>
> +// CHECK-NEXT:       `-CapturedStmt {{.*}} <line:5:3>
> +// CHECK-NEXT:         `-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc>
> +// CHECK-NEXT:           |-NullStmt {{.*}} <col:3>
> +// CHECK-NEXT:           `-ImplicitParamDecl {{.*}} <line:4:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-master.c:4:9) *const restrict'
>
> Added: cfe/trunk/test/AST/ast-dump-openmp-ordered.c
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/test/AST/ast-dump-openmp-ordered.c?rev=356569&view=auto
>
> ==============================================================================
> --- cfe/trunk/test/AST/ast-dump-openmp-ordered.c (added)
> +++ cfe/trunk/test/AST/ast-dump-openmp-ordered.c Wed Mar 20 09:31:47 2019
> @@ -0,0 +1,82 @@
> +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s |
> FileCheck --match-full-lines -implicit-check-not=openmp_structured_block %s
> +
> +void test_one() {
> +#pragma omp ordered
> +  ;
> +}
> +
> +void test_two(int x) {
> +#pragma omp for ordered
> +  for (int i = 0; i < x; i++)
> +    ;
> +}
> +
> +void test_three(int x) {
> +#pragma omp for ordered(1)
> +  for (int i = 0; i < x; i++) {
> +#pragma omp ordered depend(source)
> +  }
> +}
> +
> +// CHECK: TranslationUnitDecl {{.*}} <<invalid sloc>> <invalid sloc>
> +// CHECK: |-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-ordered.c:3:1,
> line:6:1> line:3:6 test_one 'void ()'
> +// CHECK-NEXT: | `-CompoundStmt {{.*}} <col:17, line:6:1>
> +// CHECK-NEXT: |   `-OMPOrderedDirective {{.*}} <line:4:9, col:20>
> +// CHECK-NEXT: |     `-CapturedStmt {{.*}} <line:5:3>
> +// CHECK-NEXT: |       `-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc>
> +// CHECK-NEXT: |         |-NullStmt {{.*}} <col:3>
> +// CHECK-NEXT: |         `-ImplicitParamDecl {{.*}} <line:4:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-ordered.c:4:9) *const restrict'
> +// CHECK-NEXT: |-FunctionDecl {{.*}} <line:8:1, line:12:1> line:8:6
> test_two 'void (int)'
> +// CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:15, col:19> col:19 used x 'int'
> +// CHECK-NEXT: | `-CompoundStmt {{.*}} <col:22, line:12:1>
> +// CHECK-NEXT: |   `-OMPForDirective {{.*}} <line:9:9, col:24>
> +// CHECK-NEXT: |     |-OMPOrderedClause {{.*}} <col:17, col:24>
> +// CHECK-NEXT: |     | `-<<<NULL>>>
> +// CHECK-NEXT: |     `-CapturedStmt {{.*}} <line:10:3, line:11:5>
> +// CHECK-NEXT: |       |-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc>
> +// CHECK-NEXT: |       | |-ForStmt {{.*}} <line:10:3, line:11:5>
> +// CHECK-NEXT: |       | | |-DeclStmt {{.*}} <line:10:8, col:17>
> +// CHECK-NEXT: |       | | | `-VarDecl {{.*}} <col:8, col:16> col:12 used
> i 'int' cinit
> +// CHECK-NEXT: |       | | |   `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       | | |-<<<NULL>>>
> +// CHECK-NEXT: |       | | |-BinaryOperator {{.*}} <col:19, col:23> 'int'
> '<'
> +// CHECK-NEXT: |       | | | |-ImplicitCastExpr {{.*}} <col:19> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | | | | `-DeclRefExpr {{.*}} <col:19> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | `-ImplicitCastExpr {{.*}} <col:23> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | | |   `-DeclRefExpr {{.*}} <col:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | |-UnaryOperator {{.*}} <col:26, col:27> 'int'
> postfix '++'
> +// CHECK-NEXT: |       | | | `-DeclRefExpr {{.*}} <col:26> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | `-NullStmt {{.*}} <line:11:5>
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <line:9:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-ordered.c:9:9) *const restrict'
> +// CHECK-NEXT: |       | `-VarDecl {{.*}} <line:10:8, col:16> col:12 used
> i 'int' cinit
> +// CHECK-NEXT: |       |   `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       `-DeclRefExpr {{.*}} <col:3> 'int' lvalue ParmVar
> {{.*}} 'x' 'int'
> +// CHECK-NEXT: `-FunctionDecl {{.*}} <line:14:1, line:19:1> line:14:6
> test_three 'void (int)'
> +// CHECK-NEXT:   |-ParmVarDecl {{.*}} <col:17, col:21> col:21 used x 'int'
> +// CHECK-NEXT:   `-CompoundStmt {{.*}} <col:24, line:19:1>
> +// CHECK-NEXT:     `-OMPForDirective {{.*}} <line:15:9, col:27>
> +// CHECK-NEXT:       |-OMPOrderedClause {{.*}} <col:17, col:26>
> +// CHECK-NEXT:       | `-ConstantExpr {{.*}} <col:25> 'int'
> +// CHECK-NEXT:       |   `-IntegerLiteral {{.*}} <col:25> 'int' 1
> +// CHECK-NEXT:       `-CapturedStmt {{.*}} <line:16:3, line:18:3>
> +// CHECK-NEXT:         |-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc>
> +// CHECK-NEXT:         | |-ForStmt {{.*}} <line:16:3, line:18:3>
> +// CHECK-NEXT:         | | |-DeclStmt {{.*}} <line:16:8, col:17>
> +// CHECK-NEXT:         | | | `-VarDecl {{.*}} <col:8, col:16> col:12 used
> i 'int' cinit
> +// CHECK-NEXT:         | | |   `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT:         | | |-<<<NULL>>>
> +// CHECK-NEXT:         | | |-BinaryOperator {{.*}} <col:19, col:23> 'int'
> '<'
> +// CHECK-NEXT:         | | | |-ImplicitCastExpr {{.*}} <col:19> 'int'
> <LValueToRValue>
> +// CHECK-NEXT:         | | | | `-DeclRefExpr {{.*}} <col:19> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | | `-ImplicitCastExpr {{.*}} <col:23> 'int'
> <LValueToRValue>
> +// CHECK-NEXT:         | | |   `-DeclRefExpr {{.*}} <col:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT:         | | |-UnaryOperator {{.*}} <col:26, col:27> 'int'
> postfix '++'
> +// CHECK-NEXT:         | | | `-DeclRefExpr {{.*}} <col:26> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | `-CompoundStmt {{.*}} <col:31, line:18:3>
> +// CHECK-NEXT:         | |   `-OMPOrderedDirective {{.*}} <line:17:9,
> col:35>
> +// CHECK-NEXT:         | |     |-OMPDependClause {{.*}} <col:21, <invalid
> sloc>>
> +// CHECK-NEXT:         | |     `-<<<NULL>>>
> +// CHECK-NEXT:         | |-ImplicitParamDecl {{.*}} <line:15:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-ordered.c:15:9) *const restrict'
> +// CHECK-NEXT:         | `-VarDecl {{.*}} <line:16:8, col:16> col:12 used
> i 'int' cinit
> +// CHECK-NEXT:         |   `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT:         `-DeclRefExpr {{.*}} <col:3> 'int' lvalue ParmVar
> {{.*}} 'x' 'int'
>
> Added: cfe/trunk/test/AST/ast-dump-openmp-parallel-for-simd.c
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/test/AST/ast-dump-openmp-parallel-for-simd.c?rev=356569&view=auto
>
> ==============================================================================
> --- cfe/trunk/test/AST/ast-dump-openmp-parallel-for-simd.c (added)
> +++ cfe/trunk/test/AST/ast-dump-openmp-parallel-for-simd.c Wed Mar 20
> 09:31:47 2019
> @@ -0,0 +1,252 @@
> +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s |
> FileCheck --match-full-lines -implicit-check-not=openmp_structured_block %s
> +
> +void test_one(int x) {
> +#pragma omp parallel for simd
> +  for (int i = 0; i < x; i++)
> +    ;
> +}
> +
> +void test_two(int x, int y) {
> +#pragma omp parallel for simd
> +  for (int i = 0; i < x; i++)
> +    for (int i = 0; i < y; i++)
> +      ;
> +}
> +
> +void test_three(int x, int y) {
> +#pragma omp parallel for simd collapse(1)
> +  for (int i = 0; i < x; i++)
> +    for (int i = 0; i < y; i++)
> +      ;
> +}
> +
> +void test_four(int x, int y) {
> +#pragma omp parallel for simd collapse(2)
> +  for (int i = 0; i < x; i++)
> +    for (int i = 0; i < y; i++)
> +      ;
> +}
> +
> +void test_five(int x, int y, int z) {
> +#pragma omp parallel for simd collapse(2)
> +  for (int i = 0; i < x; i++)
> +    for (int i = 0; i < y; i++)
> +      for (int i = 0; i < z; i++)
> +        ;
> +}
> +
> +// CHECK: TranslationUnitDecl {{.*}} <<invalid sloc>> <invalid sloc>
> +// CHECK: |-FunctionDecl {{.*}}
> <{{.*}}ast-dump-openmp-parallel-for-simd.c:3:1, line:7:1> line:3:6 test_one
> 'void (int)'
> +// CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:15, col:19> col:19 used x 'int'
> +// CHECK-NEXT: | `-CompoundStmt {{.*}} <col:22, line:7:1>
> +// CHECK-NEXT: |   `-OMPParallelForSimdDirective {{.*}} <line:4:9, col:30>
> +// CHECK-NEXT: |     `-CapturedStmt {{.*}} <line:5:3, line:6:5>
> +// CHECK-NEXT: |       |-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc> nothrow
> +// CHECK-NEXT: |       | |-ForStmt {{.*}} <line:5:3, line:6:5>
> +// CHECK-NEXT: |       | | |-DeclStmt {{.*}} <line:5:8, col:17>
> +// CHECK-NEXT: |       | | | `-VarDecl {{.*}} <col:8, col:16> col:12 used
> i 'int' cinit
> +// CHECK-NEXT: |       | | |   `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       | | |-<<<NULL>>>
> +// CHECK-NEXT: |       | | |-BinaryOperator {{.*}} <col:19, col:23> 'int'
> '<'
> +// CHECK-NEXT: |       | | | |-ImplicitCastExpr {{.*}} <col:19> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | | | | `-DeclRefExpr {{.*}} <col:19> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | `-ImplicitCastExpr {{.*}} <col:23> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | | |   `-DeclRefExpr {{.*}} <col:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | |-UnaryOperator {{.*}} <col:26, col:27> 'int'
> postfix '++'
> +// CHECK-NEXT: |       | | | `-DeclRefExpr {{.*}} <col:26> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | `-NullStmt {{.*}} <line:6:5>
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <line:4:9> col:9
> implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-parallel-for-simd.c:4:9) *const restrict'
> +// CHECK-NEXT: |       | `-VarDecl {{.*}} <line:5:8, col:16> col:12 used
> i 'int' cinit
> +// CHECK-NEXT: |       |   `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       `-DeclRefExpr {{.*}} <col:23> 'int' lvalue ParmVar
> {{.*}} 'x' 'int'
> +// CHECK-NEXT: |-FunctionDecl {{.*}} <line:9:1, line:14:1> line:9:6
> test_two 'void (int, int)'
> +// CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:15, col:19> col:19 used x 'int'
> +// CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:22, col:26> col:26 used y 'int'
> +// CHECK-NEXT: | `-CompoundStmt {{.*}} <col:29, line:14:1>
> +// CHECK-NEXT: |   `-OMPParallelForSimdDirective {{.*}} <line:10:9,
> col:30>
> +// CHECK-NEXT: |     `-CapturedStmt {{.*}} <line:11:3, line:13:7>
> +// CHECK-NEXT: |       |-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc> nothrow
> +// CHECK-NEXT: |       | |-ForStmt {{.*}} <line:11:3, line:13:7>
> +// CHECK-NEXT: |       | | |-DeclStmt {{.*}} <line:11:8, col:17>
> +// CHECK-NEXT: |       | | | `-VarDecl {{.*}} <col:8, col:16> col:12 used
> i 'int' cinit
> +// CHECK-NEXT: |       | | |   `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       | | |-<<<NULL>>>
> +// CHECK-NEXT: |       | | |-BinaryOperator {{.*}} <col:19, col:23> 'int'
> '<'
> +// CHECK-NEXT: |       | | | |-ImplicitCastExpr {{.*}} <col:19> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | | | | `-DeclRefExpr {{.*}} <col:19> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | `-ImplicitCastExpr {{.*}} <col:23> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | | |   `-DeclRefExpr {{.*}} <col:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | |-UnaryOperator {{.*}} <col:26, col:27> 'int'
> postfix '++'
> +// CHECK-NEXT: |       | | | `-DeclRefExpr {{.*}} <col:26> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | `-ForStmt {{.*}} <line:12:5, line:13:7>
> +// CHECK-NEXT: |       | |   |-DeclStmt {{.*}} <line:12:10, col:19>
> +// CHECK-NEXT: |       | |   | `-VarDecl {{.*}} <col:10, col:18> col:14
> used i 'int' cinit
> +// CHECK-NEXT: |       | |   |   `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT: |       | |   |-<<<NULL>>>
> +// CHECK-NEXT: |       | |   |-BinaryOperator {{.*}} <col:21, col:25>
> 'int' '<'
> +// CHECK-NEXT: |       | |   | |-ImplicitCastExpr {{.*}} <col:21> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | |   | | `-DeclRefExpr {{.*}} <col:21> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | |   | `-ImplicitCastExpr {{.*}} <col:25> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | |   |   `-DeclRefExpr {{.*}} <col:25> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | |   |-UnaryOperator {{.*}} <col:28, col:29>
> 'int' postfix '++'
> +// CHECK-NEXT: |       | |   | `-DeclRefExpr {{.*}} <col:28> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | |   `-NullStmt {{.*}} <line:13:7>
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <line:10:9> col:9
> implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-parallel-for-simd.c:10:9) *const restrict'
> +// CHECK-NEXT: |       | |-VarDecl {{.*}} <line:11:8, col:16> col:12 used
> i 'int' cinit
> +// CHECK-NEXT: |       | | `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       | `-VarDecl {{.*}} <line:12:10, col:18> col:14
> used i 'int' cinit
> +// CHECK-NEXT: |       |   `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT: |       |-DeclRefExpr {{.*}} <line:11:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       `-DeclRefExpr {{.*}} <line:12:25> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |-FunctionDecl {{.*}} <line:16:1, line:21:1> line:16:6
> test_three 'void (int, int)'
> +// CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:17, col:21> col:21 used x 'int'
> +// CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:24, col:28> col:28 used y 'int'
> +// CHECK-NEXT: | `-CompoundStmt {{.*}} <col:31, line:21:1>
> +// CHECK-NEXT: |   `-OMPParallelForSimdDirective {{.*}} <line:17:9,
> col:42>
> +// CHECK-NEXT: |     |-OMPCollapseClause {{.*}} <col:31, col:41>
> +// CHECK-NEXT: |     | `-ConstantExpr {{.*}} <col:40> 'int'
> +// CHECK-NEXT: |     |   `-IntegerLiteral {{.*}} <col:40> 'int' 1
> +// CHECK-NEXT: |     `-CapturedStmt {{.*}} <line:18:3, line:20:7>
> +// CHECK-NEXT: |       |-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc> nothrow
> +// CHECK-NEXT: |       | |-ForStmt {{.*}} <line:18:3, line:20:7>
> +// CHECK-NEXT: |       | | |-DeclStmt {{.*}} <line:18:8, col:17>
> +// CHECK-NEXT: |       | | | `-VarDecl {{.*}} <col:8, col:16> col:12 used
> i 'int' cinit
> +// CHECK-NEXT: |       | | |   `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       | | |-<<<NULL>>>
> +// CHECK-NEXT: |       | | |-BinaryOperator {{.*}} <col:19, col:23> 'int'
> '<'
> +// CHECK-NEXT: |       | | | |-ImplicitCastExpr {{.*}} <col:19> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | | | | `-DeclRefExpr {{.*}} <col:19> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | `-ImplicitCastExpr {{.*}} <col:23> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | | |   `-DeclRefExpr {{.*}} <col:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | |-UnaryOperator {{.*}} <col:26, col:27> 'int'
> postfix '++'
> +// CHECK-NEXT: |       | | | `-DeclRefExpr {{.*}} <col:26> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | `-ForStmt {{.*}} <line:19:5, line:20:7>
> +// CHECK-NEXT: |       | |   |-DeclStmt {{.*}} <line:19:10, col:19>
> +// CHECK-NEXT: |       | |   | `-VarDecl {{.*}} <col:10, col:18> col:14
> used i 'int' cinit
> +// CHECK-NEXT: |       | |   |   `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT: |       | |   |-<<<NULL>>>
> +// CHECK-NEXT: |       | |   |-BinaryOperator {{.*}} <col:21, col:25>
> 'int' '<'
> +// CHECK-NEXT: |       | |   | |-ImplicitCastExpr {{.*}} <col:21> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | |   | | `-DeclRefExpr {{.*}} <col:21> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | |   | `-ImplicitCastExpr {{.*}} <col:25> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | |   |   `-DeclRefExpr {{.*}} <col:25> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | |   |-UnaryOperator {{.*}} <col:28, col:29>
> 'int' postfix '++'
> +// CHECK-NEXT: |       | |   | `-DeclRefExpr {{.*}} <col:28> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | |   `-NullStmt {{.*}} <line:20:7>
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <line:17:9> col:9
> implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-parallel-for-simd.c:17:9) *const restrict'
> +// CHECK-NEXT: |       | |-VarDecl {{.*}} <line:18:8, col:16> col:12 used
> i 'int' cinit
> +// CHECK-NEXT: |       | | `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       | `-VarDecl {{.*}} <line:19:10, col:18> col:14
> used i 'int' cinit
> +// CHECK-NEXT: |       |   `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT: |       |-DeclRefExpr {{.*}} <line:18:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       `-DeclRefExpr {{.*}} <line:19:25> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |-FunctionDecl {{.*}} <line:23:1, line:28:1> line:23:6
> test_four 'void (int, int)'
> +// CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:16, col:20> col:20 used x 'int'
> +// CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:23, col:27> col:27 used y 'int'
> +// CHECK-NEXT: | `-CompoundStmt {{.*}} <col:30, line:28:1>
> +// CHECK-NEXT: |   `-OMPParallelForSimdDirective {{.*}} <line:24:9,
> col:42>
> +// CHECK-NEXT: |     |-OMPCollapseClause {{.*}} <col:31, col:41>
> +// CHECK-NEXT: |     | `-ConstantExpr {{.*}} <col:40> 'int'
> +// CHECK-NEXT: |     |   `-IntegerLiteral {{.*}} <col:40> 'int' 2
> +// CHECK-NEXT: |     `-CapturedStmt {{.*}} <line:25:3, line:27:7>
> +// CHECK-NEXT: |       |-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc> nothrow
> +// CHECK-NEXT: |       | |-ForStmt {{.*}} <line:25:3, line:27:7>
> +// CHECK-NEXT: |       | | |-DeclStmt {{.*}} <line:25:8, col:17>
> +// CHECK-NEXT: |       | | | `-VarDecl {{.*}} <col:8, col:16> col:12 used
> i 'int' cinit
> +// CHECK-NEXT: |       | | |   `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       | | |-<<<NULL>>>
> +// CHECK-NEXT: |       | | |-BinaryOperator {{.*}} <col:19, col:23> 'int'
> '<'
> +// CHECK-NEXT: |       | | | |-ImplicitCastExpr {{.*}} <col:19> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | | | | `-DeclRefExpr {{.*}} <col:19> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | `-ImplicitCastExpr {{.*}} <col:23> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | | |   `-DeclRefExpr {{.*}} <col:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | |-UnaryOperator {{.*}} <col:26, col:27> 'int'
> postfix '++'
> +// CHECK-NEXT: |       | | | `-DeclRefExpr {{.*}} <col:26> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | `-ForStmt {{.*}} <line:26:5, line:27:7>
> +// CHECK-NEXT: |       | |   |-DeclStmt {{.*}} <line:26:10, col:19>
> +// CHECK-NEXT: |       | |   | `-VarDecl {{.*}} <col:10, col:18> col:14
> used i 'int' cinit
> +// CHECK-NEXT: |       | |   |   `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT: |       | |   |-<<<NULL>>>
> +// CHECK-NEXT: |       | |   |-BinaryOperator {{.*}} <col:21, col:25>
> 'int' '<'
> +// CHECK-NEXT: |       | |   | |-ImplicitCastExpr {{.*}} <col:21> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | |   | | `-DeclRefExpr {{.*}} <col:21> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | |   | `-ImplicitCastExpr {{.*}} <col:25> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | |   |   `-DeclRefExpr {{.*}} <col:25> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | |   |-UnaryOperator {{.*}} <col:28, col:29>
> 'int' postfix '++'
> +// CHECK-NEXT: |       | |   | `-DeclRefExpr {{.*}} <col:28> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | |   `-NullStmt {{.*}} <line:27:7>
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <line:24:9> col:9
> implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-parallel-for-simd.c:24:9) *const restrict'
> +// CHECK-NEXT: |       | |-VarDecl {{.*}} <line:25:8, col:16> col:12 used
> i 'int' cinit
> +// CHECK-NEXT: |       | | `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       | `-VarDecl {{.*}} <line:26:10, col:18> col:14
> used i 'int' cinit
> +// CHECK-NEXT: |       |   `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT: |       |-DeclRefExpr {{.*}} <line:25:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       `-DeclRefExpr {{.*}} <line:26:25> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: `-FunctionDecl {{.*}} <line:30:1, line:36:1> line:30:6
> test_five 'void (int, int, int)'
> +// CHECK-NEXT:   |-ParmVarDecl {{.*}} <col:16, col:20> col:20 used x 'int'
> +// CHECK-NEXT:   |-ParmVarDecl {{.*}} <col:23, col:27> col:27 used y 'int'
> +// CHECK-NEXT:   |-ParmVarDecl {{.*}} <col:30, col:34> col:34 used z 'int'
> +// CHECK-NEXT:   `-CompoundStmt {{.*}} <col:37, line:36:1>
> +// CHECK-NEXT:     `-OMPParallelForSimdDirective {{.*}} <line:31:9,
> col:42>
> +// CHECK-NEXT:       |-OMPCollapseClause {{.*}} <col:31, col:41>
> +// CHECK-NEXT:       | `-ConstantExpr {{.*}} <col:40> 'int'
> +// CHECK-NEXT:       |   `-IntegerLiteral {{.*}} <col:40> 'int' 2
> +// CHECK-NEXT:       `-CapturedStmt {{.*}} <line:32:3, line:35:9>
> +// CHECK-NEXT:         |-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc> nothrow
> +// CHECK-NEXT:         | |-ForStmt {{.*}} <line:32:3, line:35:9>
> +// CHECK-NEXT:         | | |-DeclStmt {{.*}} <line:32:8, col:17>
> +// CHECK-NEXT:         | | | `-VarDecl {{.*}} <col:8, col:16> col:12 used
> i 'int' cinit
> +// CHECK-NEXT:         | | |   `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT:         | | |-<<<NULL>>>
> +// CHECK-NEXT:         | | |-BinaryOperator {{.*}} <col:19, col:23> 'int'
> '<'
> +// CHECK-NEXT:         | | | |-ImplicitCastExpr {{.*}} <col:19> 'int'
> <LValueToRValue>
> +// CHECK-NEXT:         | | | | `-DeclRefExpr {{.*}} <col:19> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | | `-ImplicitCastExpr {{.*}} <col:23> 'int'
> <LValueToRValue>
> +// CHECK-NEXT:         | | |   `-DeclRefExpr {{.*}} <col:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT:         | | |-UnaryOperator {{.*}} <col:26, col:27> 'int'
> postfix '++'
> +// CHECK-NEXT:         | | | `-DeclRefExpr {{.*}} <col:26> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | `-ForStmt {{.*}} <line:33:5, line:35:9>
> +// CHECK-NEXT:         | |   |-DeclStmt {{.*}} <line:33:10, col:19>
> +// CHECK-NEXT:         | |   | `-VarDecl {{.*}} <col:10, col:18> col:14
> used i 'int' cinit
> +// CHECK-NEXT:         | |   |   `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT:         | |   |-<<<NULL>>>
> +// CHECK-NEXT:         | |   |-BinaryOperator {{.*}} <col:21, col:25>
> 'int' '<'
> +// CHECK-NEXT:         | |   | |-ImplicitCastExpr {{.*}} <col:21> 'int'
> <LValueToRValue>
> +// CHECK-NEXT:         | |   | | `-DeclRefExpr {{.*}} <col:21> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | |   | `-ImplicitCastExpr {{.*}} <col:25> 'int'
> <LValueToRValue>
> +// CHECK-NEXT:         | |   |   `-DeclRefExpr {{.*}} <col:25> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT:         | |   |-UnaryOperator {{.*}} <col:28, col:29>
> 'int' postfix '++'
> +// CHECK-NEXT:         | |   | `-DeclRefExpr {{.*}} <col:28> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | |   `-ForStmt {{.*}} <line:34:7, line:35:9>
> +// CHECK-NEXT:         | |     |-DeclStmt {{.*}} <line:34:12, col:21>
> +// CHECK-NEXT:         | |     | `-VarDecl {{.*}} <col:12, col:20> col:16
> used i 'int' cinit
> +// CHECK-NEXT:         | |     |   `-IntegerLiteral {{.*}} <col:20> 'int'
> 0
> +// CHECK-NEXT:         | |     |-<<<NULL>>>
> +// CHECK-NEXT:         | |     |-BinaryOperator {{.*}} <col:23, col:27>
> 'int' '<'
> +// CHECK-NEXT:         | |     | |-ImplicitCastExpr {{.*}} <col:23> 'int'
> <LValueToRValue>
> +// CHECK-NEXT:         | |     | | `-DeclRefExpr {{.*}} <col:23> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | |     | `-ImplicitCastExpr {{.*}} <col:27> 'int'
> <LValueToRValue>
> +// CHECK-NEXT:         | |     |   `-DeclRefExpr {{.*}} <col:27> 'int'
> lvalue ParmVar {{.*}} 'z' 'int'
> +// CHECK-NEXT:         | |     |-UnaryOperator {{.*}} <col:30, col:31>
> 'int' postfix '++'
> +// CHECK-NEXT:         | |     | `-DeclRefExpr {{.*}} <col:30> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | |     `-NullStmt {{.*}} <line:35:9>
> +// CHECK-NEXT:         | |-ImplicitParamDecl {{.*}} <line:31:9> col:9
> implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT:         | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT:         | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-parallel-for-simd.c:31:9) *const restrict'
> +// CHECK-NEXT:         | |-VarDecl {{.*}} <line:32:8, col:16> col:12 used
> i 'int' cinit
> +// CHECK-NEXT:         | | `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT:         | |-VarDecl {{.*}} <line:33:10, col:18> col:14
> used i 'int' cinit
> +// CHECK-NEXT:         | | `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT:         | `-VarDecl {{.*}} <line:34:12, col:20> col:16
> used i 'int' cinit
> +// CHECK-NEXT:         |   `-IntegerLiteral {{.*}} <col:20> 'int' 0
> +// CHECK-NEXT:         |-DeclRefExpr {{.*}} <line:32:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT:         |-DeclRefExpr {{.*}} <line:33:25> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT:         `-DeclRefExpr {{.*}} <line:34:27> 'int' lvalue
> ParmVar {{.*}} 'z' 'int'
>
> Added: cfe/trunk/test/AST/ast-dump-openmp-parallel-for.c
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/test/AST/ast-dump-openmp-parallel-for.c?rev=356569&view=auto
>
> ==============================================================================
> --- cfe/trunk/test/AST/ast-dump-openmp-parallel-for.c (added)
> +++ cfe/trunk/test/AST/ast-dump-openmp-parallel-for.c Wed Mar 20 09:31:47
> 2019
> @@ -0,0 +1,252 @@
> +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s |
> FileCheck --match-full-lines -implicit-check-not=openmp_structured_block %s
> +
> +void test_one(int x) {
> +#pragma omp parallel for
> +  for (int i = 0; i < x; i++)
> +    ;
> +}
> +
> +void test_two(int x, int y) {
> +#pragma omp parallel for
> +  for (int i = 0; i < x; i++)
> +    for (int i = 0; i < y; i++)
> +      ;
> +}
> +
> +void test_three(int x, int y) {
> +#pragma omp parallel for collapse(1)
> +  for (int i = 0; i < x; i++)
> +    for (int i = 0; i < y; i++)
> +      ;
> +}
> +
> +void test_four(int x, int y) {
> +#pragma omp parallel for collapse(2)
> +  for (int i = 0; i < x; i++)
> +    for (int i = 0; i < y; i++)
> +      ;
> +}
> +
> +void test_five(int x, int y, int z) {
> +#pragma omp parallel for collapse(2)
> +  for (int i = 0; i < x; i++)
> +    for (int i = 0; i < y; i++)
> +      for (int i = 0; i < z; i++)
> +        ;
> +}
> +
> +// CHECK: TranslationUnitDecl {{.*}} <<invalid sloc>> <invalid sloc>
> +// CHECK: |-FunctionDecl {{.*}}
> <{{.*}}ast-dump-openmp-parallel-for.c:3:1, line:7:1> line:3:6 test_one
> 'void (int)'
> +// CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:15, col:19> col:19 used x 'int'
> +// CHECK-NEXT: | `-CompoundStmt {{.*}} <col:22, line:7:1>
> +// CHECK-NEXT: |   `-OMPParallelForDirective {{.*}} <line:4:9, col:25>
> +// CHECK-NEXT: |     `-CapturedStmt {{.*}} <line:5:3, line:6:5>
> +// CHECK-NEXT: |       |-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc> nothrow
> +// CHECK-NEXT: |       | |-ForStmt {{.*}} <line:5:3, line:6:5>
> +// CHECK-NEXT: |       | | |-DeclStmt {{.*}} <line:5:8, col:17>
> +// CHECK-NEXT: |       | | | `-VarDecl {{.*}} <col:8, col:16> col:12 used
> i 'int' cinit
> +// CHECK-NEXT: |       | | |   `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       | | |-<<<NULL>>>
> +// CHECK-NEXT: |       | | |-BinaryOperator {{.*}} <col:19, col:23> 'int'
> '<'
> +// CHECK-NEXT: |       | | | |-ImplicitCastExpr {{.*}} <col:19> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | | | | `-DeclRefExpr {{.*}} <col:19> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | `-ImplicitCastExpr {{.*}} <col:23> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | | |   `-DeclRefExpr {{.*}} <col:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | |-UnaryOperator {{.*}} <col:26, col:27> 'int'
> postfix '++'
> +// CHECK-NEXT: |       | | | `-DeclRefExpr {{.*}} <col:26> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | `-NullStmt {{.*}} <line:6:5>
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <line:4:9> col:9
> implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-parallel-for.c:4:9) *const restrict'
> +// CHECK-NEXT: |       | `-VarDecl {{.*}} <line:5:8, col:16> col:12 used
> i 'int' cinit
> +// CHECK-NEXT: |       |   `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       `-DeclRefExpr {{.*}} <col:3> 'int' lvalue ParmVar
> {{.*}} 'x' 'int'
> +// CHECK-NEXT: |-FunctionDecl {{.*}} <line:9:1, line:14:1> line:9:6
> test_two 'void (int, int)'
> +// CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:15, col:19> col:19 used x 'int'
> +// CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:22, col:26> col:26 used y 'int'
> +// CHECK-NEXT: | `-CompoundStmt {{.*}} <col:29, line:14:1>
> +// CHECK-NEXT: |   `-OMPParallelForDirective {{.*}} <line:10:9, col:25>
> +// CHECK-NEXT: |     `-CapturedStmt {{.*}} <line:11:3, line:13:7>
> +// CHECK-NEXT: |       |-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc> nothrow
> +// CHECK-NEXT: |       | |-ForStmt {{.*}} <line:11:3, line:13:7>
> +// CHECK-NEXT: |       | | |-DeclStmt {{.*}} <line:11:8, col:17>
> +// CHECK-NEXT: |       | | | `-VarDecl {{.*}} <col:8, col:16> col:12 used
> i 'int' cinit
> +// CHECK-NEXT: |       | | |   `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       | | |-<<<NULL>>>
> +// CHECK-NEXT: |       | | |-BinaryOperator {{.*}} <col:19, col:23> 'int'
> '<'
> +// CHECK-NEXT: |       | | | |-ImplicitCastExpr {{.*}} <col:19> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | | | | `-DeclRefExpr {{.*}} <col:19> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | `-ImplicitCastExpr {{.*}} <col:23> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | | |   `-DeclRefExpr {{.*}} <col:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | |-UnaryOperator {{.*}} <col:26, col:27> 'int'
> postfix '++'
> +// CHECK-NEXT: |       | | | `-DeclRefExpr {{.*}} <col:26> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | `-ForStmt {{.*}} <line:12:5, line:13:7>
> +// CHECK-NEXT: |       | |   |-DeclStmt {{.*}} <line:12:10, col:19>
> +// CHECK-NEXT: |       | |   | `-VarDecl {{.*}} <col:10, col:18> col:14
> used i 'int' cinit
> +// CHECK-NEXT: |       | |   |   `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT: |       | |   |-<<<NULL>>>
> +// CHECK-NEXT: |       | |   |-BinaryOperator {{.*}} <col:21, col:25>
> 'int' '<'
> +// CHECK-NEXT: |       | |   | |-ImplicitCastExpr {{.*}} <col:21> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | |   | | `-DeclRefExpr {{.*}} <col:21> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | |   | `-ImplicitCastExpr {{.*}} <col:25> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | |   |   `-DeclRefExpr {{.*}} <col:25> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | |   |-UnaryOperator {{.*}} <col:28, col:29>
> 'int' postfix '++'
> +// CHECK-NEXT: |       | |   | `-DeclRefExpr {{.*}} <col:28> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | |   `-NullStmt {{.*}} <line:13:7>
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <line:10:9> col:9
> implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-parallel-for.c:10:9) *const restrict'
> +// CHECK-NEXT: |       | |-VarDecl {{.*}} <line:11:8, col:16> col:12 used
> i 'int' cinit
> +// CHECK-NEXT: |       | | `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       | `-VarDecl {{.*}} <line:12:10, col:18> col:14
> used i 'int' cinit
> +// CHECK-NEXT: |       |   `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT: |       |-DeclRefExpr {{.*}} <line:11:3> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       `-DeclRefExpr {{.*}} <line:12:25> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |-FunctionDecl {{.*}} <line:16:1, line:21:1> line:16:6
> test_three 'void (int, int)'
> +// CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:17, col:21> col:21 used x 'int'
> +// CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:24, col:28> col:28 used y 'int'
> +// CHECK-NEXT: | `-CompoundStmt {{.*}} <col:31, line:21:1>
> +// CHECK-NEXT: |   `-OMPParallelForDirective {{.*}} <line:17:9, col:37>
> +// CHECK-NEXT: |     |-OMPCollapseClause {{.*}} <col:26, col:36>
> +// CHECK-NEXT: |     | `-ConstantExpr {{.*}} <col:35> 'int'
> +// CHECK-NEXT: |     |   `-IntegerLiteral {{.*}} <col:35> 'int' 1
> +// CHECK-NEXT: |     `-CapturedStmt {{.*}} <line:18:3, line:20:7>
> +// CHECK-NEXT: |       |-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc> nothrow
> +// CHECK-NEXT: |       | |-ForStmt {{.*}} <line:18:3, line:20:7>
> +// CHECK-NEXT: |       | | |-DeclStmt {{.*}} <line:18:8, col:17>
> +// CHECK-NEXT: |       | | | `-VarDecl {{.*}} <col:8, col:16> col:12 used
> i 'int' cinit
> +// CHECK-NEXT: |       | | |   `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       | | |-<<<NULL>>>
> +// CHECK-NEXT: |       | | |-BinaryOperator {{.*}} <col:19, col:23> 'int'
> '<'
> +// CHECK-NEXT: |       | | | |-ImplicitCastExpr {{.*}} <col:19> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | | | | `-DeclRefExpr {{.*}} <col:19> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | `-ImplicitCastExpr {{.*}} <col:23> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | | |   `-DeclRefExpr {{.*}} <col:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | |-UnaryOperator {{.*}} <col:26, col:27> 'int'
> postfix '++'
> +// CHECK-NEXT: |       | | | `-DeclRefExpr {{.*}} <col:26> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | `-ForStmt {{.*}} <line:19:5, line:20:7>
> +// CHECK-NEXT: |       | |   |-DeclStmt {{.*}} <line:19:10, col:19>
> +// CHECK-NEXT: |       | |   | `-VarDecl {{.*}} <col:10, col:18> col:14
> used i 'int' cinit
> +// CHECK-NEXT: |       | |   |   `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT: |       | |   |-<<<NULL>>>
> +// CHECK-NEXT: |       | |   |-BinaryOperator {{.*}} <col:21, col:25>
> 'int' '<'
> +// CHECK-NEXT: |       | |   | |-ImplicitCastExpr {{.*}} <col:21> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | |   | | `-DeclRefExpr {{.*}} <col:21> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | |   | `-ImplicitCastExpr {{.*}} <col:25> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | |   |   `-DeclRefExpr {{.*}} <col:25> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | |   |-UnaryOperator {{.*}} <col:28, col:29>
> 'int' postfix '++'
> +// CHECK-NEXT: |       | |   | `-DeclRefExpr {{.*}} <col:28> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | |   `-NullStmt {{.*}} <line:20:7>
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <line:17:9> col:9
> implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-parallel-for.c:17:9) *const restrict'
> +// CHECK-NEXT: |       | |-VarDecl {{.*}} <line:18:8, col:16> col:12 used
> i 'int' cinit
> +// CHECK-NEXT: |       | | `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       | `-VarDecl {{.*}} <line:19:10, col:18> col:14
> used i 'int' cinit
> +// CHECK-NEXT: |       |   `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT: |       |-DeclRefExpr {{.*}} <line:18:3> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       `-DeclRefExpr {{.*}} <line:19:25> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |-FunctionDecl {{.*}} <line:23:1, line:28:1> line:23:6
> test_four 'void (int, int)'
> +// CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:16, col:20> col:20 used x 'int'
> +// CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:23, col:27> col:27 used y 'int'
> +// CHECK-NEXT: | `-CompoundStmt {{.*}} <col:30, line:28:1>
> +// CHECK-NEXT: |   `-OMPParallelForDirective {{.*}} <line:24:9, col:37>
> +// CHECK-NEXT: |     |-OMPCollapseClause {{.*}} <col:26, col:36>
> +// CHECK-NEXT: |     | `-ConstantExpr {{.*}} <col:35> 'int'
> +// CHECK-NEXT: |     |   `-IntegerLiteral {{.*}} <col:35> 'int' 2
> +// CHECK-NEXT: |     `-CapturedStmt {{.*}} <line:25:3, line:27:7>
> +// CHECK-NEXT: |       |-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc> nothrow
> +// CHECK-NEXT: |       | |-ForStmt {{.*}} <line:25:3, line:27:7>
> +// CHECK-NEXT: |       | | |-DeclStmt {{.*}} <line:25:8, col:17>
> +// CHECK-NEXT: |       | | | `-VarDecl {{.*}} <col:8, col:16> col:12 used
> i 'int' cinit
> +// CHECK-NEXT: |       | | |   `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       | | |-<<<NULL>>>
> +// CHECK-NEXT: |       | | |-BinaryOperator {{.*}} <col:19, col:23> 'int'
> '<'
> +// CHECK-NEXT: |       | | | |-ImplicitCastExpr {{.*}} <col:19> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | | | | `-DeclRefExpr {{.*}} <col:19> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | `-ImplicitCastExpr {{.*}} <col:23> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | | |   `-DeclRefExpr {{.*}} <col:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | |-UnaryOperator {{.*}} <col:26, col:27> 'int'
> postfix '++'
> +// CHECK-NEXT: |       | | | `-DeclRefExpr {{.*}} <col:26> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | `-ForStmt {{.*}} <line:26:5, line:27:7>
> +// CHECK-NEXT: |       | |   |-DeclStmt {{.*}} <line:26:10, col:19>
> +// CHECK-NEXT: |       | |   | `-VarDecl {{.*}} <col:10, col:18> col:14
> used i 'int' cinit
> +// CHECK-NEXT: |       | |   |   `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT: |       | |   |-<<<NULL>>>
> +// CHECK-NEXT: |       | |   |-BinaryOperator {{.*}} <col:21, col:25>
> 'int' '<'
> +// CHECK-NEXT: |       | |   | |-ImplicitCastExpr {{.*}} <col:21> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | |   | | `-DeclRefExpr {{.*}} <col:21> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | |   | `-ImplicitCastExpr {{.*}} <col:25> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | |   |   `-DeclRefExpr {{.*}} <col:25> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | |   |-UnaryOperator {{.*}} <col:28, col:29>
> 'int' postfix '++'
> +// CHECK-NEXT: |       | |   | `-DeclRefExpr {{.*}} <col:28> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | |   `-NullStmt {{.*}} <line:27:7>
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <line:24:9> col:9
> implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-parallel-for.c:24:9) *const restrict'
> +// CHECK-NEXT: |       | |-VarDecl {{.*}} <line:25:8, col:16> col:12 used
> i 'int' cinit
> +// CHECK-NEXT: |       | | `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       | `-VarDecl {{.*}} <line:26:10, col:18> col:14
> used i 'int' cinit
> +// CHECK-NEXT: |       |   `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT: |       |-DeclRefExpr {{.*}} <line:25:3> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       `-DeclRefExpr {{.*}} <line:26:5> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: `-FunctionDecl {{.*}} <line:30:1, line:36:1> line:30:6
> test_five 'void (int, int, int)'
> +// CHECK-NEXT:   |-ParmVarDecl {{.*}} <col:16, col:20> col:20 used x 'int'
> +// CHECK-NEXT:   |-ParmVarDecl {{.*}} <col:23, col:27> col:27 used y 'int'
> +// CHECK-NEXT:   |-ParmVarDecl {{.*}} <col:30, col:34> col:34 used z 'int'
> +// CHECK-NEXT:   `-CompoundStmt {{.*}} <col:37, line:36:1>
> +// CHECK-NEXT:     `-OMPParallelForDirective {{.*}} <line:31:9, col:37>
> +// CHECK-NEXT:       |-OMPCollapseClause {{.*}} <col:26, col:36>
> +// CHECK-NEXT:       | `-ConstantExpr {{.*}} <col:35> 'int'
> +// CHECK-NEXT:       |   `-IntegerLiteral {{.*}} <col:35> 'int' 2
> +// CHECK-NEXT:       `-CapturedStmt {{.*}} <line:32:3, line:35:9>
> +// CHECK-NEXT:         |-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc> nothrow
> +// CHECK-NEXT:         | |-ForStmt {{.*}} <line:32:3, line:35:9>
> +// CHECK-NEXT:         | | |-DeclStmt {{.*}} <line:32:8, col:17>
> +// CHECK-NEXT:         | | | `-VarDecl {{.*}} <col:8, col:16> col:12 used
> i 'int' cinit
> +// CHECK-NEXT:         | | |   `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT:         | | |-<<<NULL>>>
> +// CHECK-NEXT:         | | |-BinaryOperator {{.*}} <col:19, col:23> 'int'
> '<'
> +// CHECK-NEXT:         | | | |-ImplicitCastExpr {{.*}} <col:19> 'int'
> <LValueToRValue>
> +// CHECK-NEXT:         | | | | `-DeclRefExpr {{.*}} <col:19> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | | `-ImplicitCastExpr {{.*}} <col:23> 'int'
> <LValueToRValue>
> +// CHECK-NEXT:         | | |   `-DeclRefExpr {{.*}} <col:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT:         | | |-UnaryOperator {{.*}} <col:26, col:27> 'int'
> postfix '++'
> +// CHECK-NEXT:         | | | `-DeclRefExpr {{.*}} <col:26> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | `-ForStmt {{.*}} <line:33:5, line:35:9>
> +// CHECK-NEXT:         | |   |-DeclStmt {{.*}} <line:33:10, col:19>
> +// CHECK-NEXT:         | |   | `-VarDecl {{.*}} <col:10, col:18> col:14
> used i 'int' cinit
> +// CHECK-NEXT:         | |   |   `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT:         | |   |-<<<NULL>>>
> +// CHECK-NEXT:         | |   |-BinaryOperator {{.*}} <col:21, col:25>
> 'int' '<'
> +// CHECK-NEXT:         | |   | |-ImplicitCastExpr {{.*}} <col:21> 'int'
> <LValueToRValue>
> +// CHECK-NEXT:         | |   | | `-DeclRefExpr {{.*}} <col:21> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | |   | `-ImplicitCastExpr {{.*}} <col:25> 'int'
> <LValueToRValue>
> +// CHECK-NEXT:         | |   |   `-DeclRefExpr {{.*}} <col:25> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT:         | |   |-UnaryOperator {{.*}} <col:28, col:29>
> 'int' postfix '++'
> +// CHECK-NEXT:         | |   | `-DeclRefExpr {{.*}} <col:28> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | |   `-ForStmt {{.*}} <line:34:7, line:35:9>
> +// CHECK-NEXT:         | |     |-DeclStmt {{.*}} <line:34:12, col:21>
> +// CHECK-NEXT:         | |     | `-VarDecl {{.*}} <col:12, col:20> col:16
> used i 'int' cinit
> +// CHECK-NEXT:         | |     |   `-IntegerLiteral {{.*}} <col:20> 'int'
> 0
> +// CHECK-NEXT:         | |     |-<<<NULL>>>
> +// CHECK-NEXT:         | |     |-BinaryOperator {{.*}} <col:23, col:27>
> 'int' '<'
> +// CHECK-NEXT:         | |     | |-ImplicitCastExpr {{.*}} <col:23> 'int'
> <LValueToRValue>
> +// CHECK-NEXT:         | |     | | `-DeclRefExpr {{.*}} <col:23> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | |     | `-ImplicitCastExpr {{.*}} <col:27> 'int'
> <LValueToRValue>
> +// CHECK-NEXT:         | |     |   `-DeclRefExpr {{.*}} <col:27> 'int'
> lvalue ParmVar {{.*}} 'z' 'int'
> +// CHECK-NEXT:         | |     |-UnaryOperator {{.*}} <col:30, col:31>
> 'int' postfix '++'
> +// CHECK-NEXT:         | |     | `-DeclRefExpr {{.*}} <col:30> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | |     `-NullStmt {{.*}} <line:35:9>
> +// CHECK-NEXT:         | |-ImplicitParamDecl {{.*}} <line:31:9> col:9
> implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT:         | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT:         | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-parallel-for.c:31:9) *const restrict'
> +// CHECK-NEXT:         | |-VarDecl {{.*}} <line:32:8, col:16> col:12 used
> i 'int' cinit
> +// CHECK-NEXT:         | | `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT:         | |-VarDecl {{.*}} <line:33:10, col:18> col:14
> used i 'int' cinit
> +// CHECK-NEXT:         | | `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT:         | `-VarDecl {{.*}} <line:34:12, col:20> col:16
> used i 'int' cinit
> +// CHECK-NEXT:         |   `-IntegerLiteral {{.*}} <col:20> 'int' 0
> +// CHECK-NEXT:         |-DeclRefExpr {{.*}} <line:32:3> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT:         |-DeclRefExpr {{.*}} <line:33:5> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT:         `-DeclRefExpr {{.*}} <line:34:27> 'int' lvalue
> ParmVar {{.*}} 'z' 'int'
>
> Added: cfe/trunk/test/AST/ast-dump-openmp-parallel-master-XFAIL.c
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/test/AST/ast-dump-openmp-parallel-master-XFAIL.c?rev=356569&view=auto
>
> ==============================================================================
> --- cfe/trunk/test/AST/ast-dump-openmp-parallel-master-XFAIL.c (added)
> +++ cfe/trunk/test/AST/ast-dump-openmp-parallel-master-XFAIL.c Wed Mar 20
> 09:31:47 2019
> @@ -0,0 +1,34 @@
> +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp
> -fopenmp-version=50 -ast-dump %s 2>&1 | FileCheck --match-full-lines
> -implicit-check-not=openmp_structured_block %s
> +
> +void test_zero() {
> +#pragma omp parallel master
> +  ;
> +}
> +// CHECK: {{.*}}ast-dump-openmp-parallel-master-XFAIL.c:4:22: warning:
> extra tokens at the end of '#pragma omp parallel' are ignored
> +
> +void test_one() {
> +#pragma omp parallel master
> +  { ; }
> +}
> +// CHECK: {{.*}}ast-dump-openmp-parallel-master-XFAIL.c:10:22: warning:
> extra tokens at the end of '#pragma omp parallel' are ignored
> +
> +// CHECK: TranslationUnitDecl {{.*}} <<invalid sloc>> <invalid sloc>
> +// CHECK: |-FunctionDecl {{.*}}
> <{{.*}}ast-dump-openmp-parallel-master-XFAIL.c:3:1, line:6:1> line:3:6
> test_zero 'void ()'
> +// CHECK-NEXT: | `-CompoundStmt {{.*}} <col:18, line:6:1>
> +// CHECK-NEXT: |   `-OMPParallelDirective {{.*}} <line:4:9, col:28>
> +// CHECK-NEXT: |     `-CapturedStmt {{.*}} <line:5:3>
> +// CHECK-NEXT: |       `-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc> nothrow
> +// CHECK-NEXT: |         |-NullStmt {{.*}} <col:3>
> +// CHECK-NEXT: |         |-ImplicitParamDecl {{.*}} <line:4:9> col:9
> implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |         |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |         `-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-parallel-master-XFAIL.c:4:9) *const restrict'
> +// CHECK-NEXT: `-FunctionDecl {{.*}} <line:9:1, line:12:1> line:9:6
> test_one 'void ()'
> +// CHECK-NEXT:   `-CompoundStmt {{.*}} <col:17, line:12:1>
> +// CHECK-NEXT:     `-OMPParallelDirective {{.*}} <line:10:9, col:28>
> +// CHECK-NEXT:       `-CapturedStmt {{.*}} <line:11:3, col:7>
> +// CHECK-NEXT:         `-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc> nothrow
> +// CHECK-NEXT:           |-CompoundStmt {{.*}} <col:3, col:7>
> +// CHECK-NEXT:           | `-NullStmt {{.*}} <col:5>
> +// CHECK-NEXT:           |-ImplicitParamDecl {{.*}} <line:10:9> col:9
> implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT:           |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT:           `-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-parallel-master-XFAIL.c:10:9) *const restrict'
>
> Added: cfe/trunk/test/AST/ast-dump-openmp-parallel-sections.c
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/test/AST/ast-dump-openmp-parallel-sections.c?rev=356569&view=auto
>
> ==============================================================================
> --- cfe/trunk/test/AST/ast-dump-openmp-parallel-sections.c (added)
> +++ cfe/trunk/test/AST/ast-dump-openmp-parallel-sections.c Wed Mar 20
> 09:31:47 2019
> @@ -0,0 +1,25 @@
> +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s |
> FileCheck --match-full-lines -implicit-check-not=openmp_structured_block %s
> +
> +void test_zero() {
> +#pragma omp parallel sections
> +  {}
> +}
> +
> +void test_one() {
> +#pragma omp parallel sections
> +  { ; }
> +}
> +
> +// CHECK: TranslationUnitDecl {{.*}} <<invalid sloc>> <invalid sloc>
> +// CHECK: |-FunctionDecl {{.*}}
> <{{.*}}ast-dump-openmp-parallel-sections.c:3:1, line:6:1> line:3:6
> test_zero 'void ()'
> +// CHECK-NEXT: | `-CompoundStmt {{.*}} <col:18, line:6:1>
> +// CHECK-NEXT: `-FunctionDecl {{.*}} <line:8:1, line:11:1> line:8:6
> test_one 'void ()'
> +// CHECK-NEXT:   `-CompoundStmt {{.*}} <col:17, line:11:1>
> +// CHECK-NEXT:     `-OMPParallelSectionsDirective {{.*}} <line:9:9,
> col:30>
> +// CHECK-NEXT:       `-CapturedStmt {{.*}} <line:10:3, col:7>
> +// CHECK-NEXT:         `-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc>
> +// CHECK-NEXT:           |-CompoundStmt {{.*}} <col:3, col:7>
> +// CHECK-NEXT:           | `-NullStmt {{.*}} <col:5>
> +// CHECK-NEXT:           |-ImplicitParamDecl {{.*}} <line:9:9> col:9
> implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT:           |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT:           `-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-parallel-sections.c:9:9) *const restrict'
>
> Added: cfe/trunk/test/AST/ast-dump-openmp-parallel.c
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/test/AST/ast-dump-openmp-parallel.c?rev=356569&view=auto
>
> ==============================================================================
> --- cfe/trunk/test/AST/ast-dump-openmp-parallel.c (added)
> +++ cfe/trunk/test/AST/ast-dump-openmp-parallel.c Wed Mar 20 09:31:47 2019
> @@ -0,0 +1,17 @@
> +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s |
> FileCheck --match-full-lines -implicit-check-not=openmp_structured_block %s
> +
> +void test() {
> +#pragma omp parallel
> +  ;
> +}
> +
> +// CHECK: TranslationUnitDecl 0x{{.*}} <<invalid sloc>> <invalid sloc>
> +// CHECK: `-FunctionDecl 0x{{.*}} <{{.*}}ast-dump-openmp-parallel.c:3:1,
> line:6:1> line:3:6 test 'void ()'
> +// CHECK-NEXT:   `-CompoundStmt 0x{{.*}} <col:13, line:6:1>
> +// CHECK-NEXT:     `-OMPParallelDirective 0x{{.*}} <line:4:9, col:21>
> +// CHECK-NEXT:       `-CapturedStmt 0x{{.*}} <line:5:3>
> +// CHECK-NEXT:         `-CapturedDecl 0x{{.*}} <<invalid sloc>> <invalid
> sloc> nothrow
> +// CHECK-NEXT:           |-NullStmt 0x{{.*}} <col:3>
> +// CHECK-NEXT:           |-ImplicitParamDecl 0x{{.*}} <line:4:9> col:9
> implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT:           |-ImplicitParamDecl 0x{{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT:           `-ImplicitParamDecl 0x{{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-parallel.c:4:9) *const restrict'
>
> Added: cfe/trunk/test/AST/ast-dump-openmp-section.c
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/test/AST/ast-dump-openmp-section.c?rev=356569&view=auto
>
> ==============================================================================
> --- cfe/trunk/test/AST/ast-dump-openmp-section.c (added)
> +++ cfe/trunk/test/AST/ast-dump-openmp-section.c Wed Mar 20 09:31:47 2019
> @@ -0,0 +1,28 @@
> +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s |
> FileCheck --match-full-lines -implicit-check-not=openmp_structured_block %s
> +
> +void test() {
> +#pragma omp sections
> +  {
> +#pragma omp section
> +    ;
> +  }
> +}
> +
> +// CHECK: TranslationUnitDecl {{.*}} <<invalid sloc>> <invalid sloc>
> +// CHECK: `-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-section.c:3:1,
> line:9:1> line:3:6 test 'void ()'
> +// CHECK-NEXT:   `-CompoundStmt {{.*}} <col:13, line:9:1>
> +// CHECK-NEXT:     `-OMPSectionsDirective {{.*}} <line:4:9, col:21>
> +// CHECK-NEXT:       `-CapturedStmt {{.*}} <line:5:3, line:8:3>
> +// CHECK-NEXT:         `-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc>
> +// CHECK-NEXT:           |-CompoundStmt {{.*}} <line:5:3, line:8:3>
> +// CHECK-NEXT:           | `-OMPSectionDirective {{.*}} <line:6:9, col:20>
> +// CHECK-NEXT:           |   `-CapturedStmt {{.*}} <line:7:5>
> +// CHECK-NEXT:           |     `-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc>
> +// CHECK-NEXT:           |       |-NullStmt {{.*}} <col:5>
> +// CHECK-NEXT:           |       `-ImplicitParamDecl {{.*}} <line:6:9>
> col:9 implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-section.c:6:9) *const restrict'
> +// CHECK-NEXT:           |-ImplicitParamDecl {{.*}} <line:4:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-section.c:4:9) *const restrict'
> +// CHECK-NEXT:           |-RecordDecl {{.*}} <line:6:9> col:9 implicit
> struct definition
> +// CHECK-NEXT:           | `-CapturedRecordAttr {{.*}} <<invalid sloc>>
> Implicit
> +// CHECK-NEXT:           `-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc>
> +// CHECK-NEXT:             |-NullStmt {{.*}} <line:7:5>
> +// CHECK-NEXT:             `-ImplicitParamDecl {{.*}} <line:6:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-section.c:6:9) *const restrict'
>
> Added: cfe/trunk/test/AST/ast-dump-openmp-sections.c
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/test/AST/ast-dump-openmp-sections.c?rev=356569&view=auto
>
> ==============================================================================
> --- cfe/trunk/test/AST/ast-dump-openmp-sections.c (added)
> +++ cfe/trunk/test/AST/ast-dump-openmp-sections.c Wed Mar 20 09:31:47 2019
> @@ -0,0 +1,23 @@
> +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s |
> FileCheck --match-full-lines -implicit-check-not=openmp_structured_block %s
> +
> +void test_zero() {
> +#pragma omp sections
> +  {}
> +}
> +
> +void test_one() {
> +#pragma omp sections
> +  { ; }
> +}
> +
> +// CHECK: TranslationUnitDecl {{.*}} <<invalid sloc>> <invalid sloc>
> +// CHECK: |-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-sections.c:3:1,
> line:6:1> line:3:6 test_zero 'void ()'
> +// CHECK-NEXT: | `-CompoundStmt {{.*}} <col:18, line:6:1>
> +// CHECK-NEXT: `-FunctionDecl {{.*}} <line:8:1, line:11:1> line:8:6
> test_one 'void ()'
> +// CHECK-NEXT:   `-CompoundStmt {{.*}} <col:17, line:11:1>
> +// CHECK-NEXT:     `-OMPSectionsDirective {{.*}} <line:9:9, col:21>
> +// CHECK-NEXT:       `-CapturedStmt {{.*}} <line:10:3, col:7>
> +// CHECK-NEXT:         `-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc>
> +// CHECK-NEXT:           |-CompoundStmt {{.*}} <col:3, col:7>
> +// CHECK-NEXT:           | `-NullStmt {{.*}} <col:5>
> +// CHECK-NEXT:           `-ImplicitParamDecl {{.*}} <line:9:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-sections.c:9:9) *const restrict'
>
> Added: cfe/trunk/test/AST/ast-dump-openmp-simd.c
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/test/AST/ast-dump-openmp-simd.c?rev=356569&view=auto
>
> ==============================================================================
> --- cfe/trunk/test/AST/ast-dump-openmp-simd.c (added)
> +++ cfe/trunk/test/AST/ast-dump-openmp-simd.c Wed Mar 20 09:31:47 2019
> @@ -0,0 +1,242 @@
> +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s |
> FileCheck --match-full-lines -implicit-check-not=openmp_structured_block %s
> +
> +void test_one(int x) {
> +#pragma omp simd
> +  for (int i = 0; i < x; i++)
> +    ;
> +}
> +
> +void test_two(int x, int y) {
> +#pragma omp simd
> +  for (int i = 0; i < x; i++)
> +    for (int i = 0; i < y; i++)
> +      ;
> +}
> +
> +void test_three(int x, int y) {
> +#pragma omp simd collapse(1)
> +  for (int i = 0; i < x; i++)
> +    for (int i = 0; i < y; i++)
> +      ;
> +}
> +
> +void test_four(int x, int y) {
> +#pragma omp simd collapse(2)
> +  for (int i = 0; i < x; i++)
> +    for (int i = 0; i < y; i++)
> +      ;
> +}
> +
> +void test_five(int x, int y, int z) {
> +#pragma omp simd collapse(2)
> +  for (int i = 0; i < x; i++)
> +    for (int i = 0; i < y; i++)
> +      for (int i = 0; i < z; i++)
> +        ;
> +}
> +
> +// CHECK: TranslationUnitDecl {{.*}} <<invalid sloc>> <invalid sloc>
> +// CHECK: |-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-simd.c:3:1,
> line:7:1> line:3:6 test_one 'void (int)'
> +// CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:15, col:19> col:19 used x 'int'
> +// CHECK-NEXT: | `-CompoundStmt {{.*}} <col:22, line:7:1>
> +// CHECK-NEXT: |   `-OMPSimdDirective {{.*}} <line:4:9, col:17>
> +// CHECK-NEXT: |     `-CapturedStmt {{.*}} <line:5:3, line:6:5>
> +// CHECK-NEXT: |       |-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc>
> +// CHECK-NEXT: |       | |-ForStmt {{.*}} <line:5:3, line:6:5>
> +// CHECK-NEXT: |       | | |-DeclStmt {{.*}} <line:5:8, col:17>
> +// CHECK-NEXT: |       | | | `-VarDecl {{.*}} <col:8, col:16> col:12 used
> i 'int' cinit
> +// CHECK-NEXT: |       | | |   `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       | | |-<<<NULL>>>
> +// CHECK-NEXT: |       | | |-BinaryOperator {{.*}} <col:19, col:23> 'int'
> '<'
> +// CHECK-NEXT: |       | | | |-ImplicitCastExpr {{.*}} <col:19> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | | | | `-DeclRefExpr {{.*}} <col:19> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | `-ImplicitCastExpr {{.*}} <col:23> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | | |   `-DeclRefExpr {{.*}} <col:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | |-UnaryOperator {{.*}} <col:26, col:27> 'int'
> postfix '++'
> +// CHECK-NEXT: |       | | | `-DeclRefExpr {{.*}} <col:26> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | `-NullStmt {{.*}} <line:6:5>
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <line:4:9> col:9
> implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-simd.c:4:9)
> *const restrict'
> +// CHECK-NEXT: |       | `-VarDecl {{.*}} <line:5:8, col:16> col:12 used
> i 'int' cinit
> +// CHECK-NEXT: |       |   `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       `-DeclRefExpr {{.*}} <col:23> 'int' lvalue ParmVar
> {{.*}} 'x' 'int'
> +// CHECK-NEXT: |-FunctionDecl {{.*}} <line:9:1, line:14:1> line:9:6
> test_two 'void (int, int)'
> +// CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:15, col:19> col:19 used x 'int'
> +// CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:22, col:26> col:26 used y 'int'
> +// CHECK-NEXT: | `-CompoundStmt {{.*}} <col:29, line:14:1>
> +// CHECK-NEXT: |   `-OMPSimdDirective {{.*}} <line:10:9, col:17>
> +// CHECK-NEXT: |     `-CapturedStmt {{.*}} <line:11:3, line:13:7>
> +// CHECK-NEXT: |       |-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc>
> +// CHECK-NEXT: |       | |-ForStmt {{.*}} <line:11:3, line:13:7>
> +// CHECK-NEXT: |       | | |-DeclStmt {{.*}} <line:11:8, col:17>
> +// CHECK-NEXT: |       | | | `-VarDecl {{.*}} <col:8, col:16> col:12 used
> i 'int' cinit
> +// CHECK-NEXT: |       | | |   `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       | | |-<<<NULL>>>
> +// CHECK-NEXT: |       | | |-BinaryOperator {{.*}} <col:19, col:23> 'int'
> '<'
> +// CHECK-NEXT: |       | | | |-ImplicitCastExpr {{.*}} <col:19> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | | | | `-DeclRefExpr {{.*}} <col:19> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | `-ImplicitCastExpr {{.*}} <col:23> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | | |   `-DeclRefExpr {{.*}} <col:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | |-UnaryOperator {{.*}} <col:26, col:27> 'int'
> postfix '++'
> +// CHECK-NEXT: |       | | | `-DeclRefExpr {{.*}} <col:26> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | `-ForStmt {{.*}} <line:12:5, line:13:7>
> +// CHECK-NEXT: |       | |   |-DeclStmt {{.*}} <line:12:10, col:19>
> +// CHECK-NEXT: |       | |   | `-VarDecl {{.*}} <col:10, col:18> col:14
> used i 'int' cinit
> +// CHECK-NEXT: |       | |   |   `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT: |       | |   |-<<<NULL>>>
> +// CHECK-NEXT: |       | |   |-BinaryOperator {{.*}} <col:21, col:25>
> 'int' '<'
> +// CHECK-NEXT: |       | |   | |-ImplicitCastExpr {{.*}} <col:21> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | |   | | `-DeclRefExpr {{.*}} <col:21> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | |   | `-ImplicitCastExpr {{.*}} <col:25> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | |   |   `-DeclRefExpr {{.*}} <col:25> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | |   |-UnaryOperator {{.*}} <col:28, col:29>
> 'int' postfix '++'
> +// CHECK-NEXT: |       | |   | `-DeclRefExpr {{.*}} <col:28> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | |   `-NullStmt {{.*}} <line:13:7>
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <line:10:9> col:9
> implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-simd.c:10:9)
> *const restrict'
> +// CHECK-NEXT: |       | |-VarDecl {{.*}} <line:11:8, col:16> col:12 used
> i 'int' cinit
> +// CHECK-NEXT: |       | | `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       | `-VarDecl {{.*}} <line:12:10, col:18> col:14
> used i 'int' cinit
> +// CHECK-NEXT: |       |   `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT: |       |-DeclRefExpr {{.*}} <line:11:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       `-DeclRefExpr {{.*}} <line:12:25> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |-FunctionDecl {{.*}} <line:16:1, line:21:1> line:16:6
> test_three 'void (int, int)'
> +// CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:17, col:21> col:21 used x 'int'
> +// CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:24, col:28> col:28 used y 'int'
> +// CHECK-NEXT: | `-CompoundStmt {{.*}} <col:31, line:21:1>
> +// CHECK-NEXT: |   `-OMPSimdDirective {{.*}} <line:17:9, col:29>
> +// CHECK-NEXT: |     |-OMPCollapseClause {{.*}} <col:18, col:28>
> +// CHECK-NEXT: |     | `-ConstantExpr {{.*}} <col:27> 'int'
> +// CHECK-NEXT: |     |   `-IntegerLiteral {{.*}} <col:27> 'int' 1
> +// CHECK-NEXT: |     `-CapturedStmt {{.*}} <line:18:3, line:20:7>
> +// CHECK-NEXT: |       |-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc>
> +// CHECK-NEXT: |       | |-ForStmt {{.*}} <line:18:3, line:20:7>
> +// CHECK-NEXT: |       | | |-DeclStmt {{.*}} <line:18:8, col:17>
> +// CHECK-NEXT: |       | | | `-VarDecl {{.*}} <col:8, col:16> col:12 used
> i 'int' cinit
> +// CHECK-NEXT: |       | | |   `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       | | |-<<<NULL>>>
> +// CHECK-NEXT: |       | | |-BinaryOperator {{.*}} <col:19, col:23> 'int'
> '<'
> +// CHECK-NEXT: |       | | | |-ImplicitCastExpr {{.*}} <col:19> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | | | | `-DeclRefExpr {{.*}} <col:19> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | `-ImplicitCastExpr {{.*}} <col:23> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | | |   `-DeclRefExpr {{.*}} <col:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | |-UnaryOperator {{.*}} <col:26, col:27> 'int'
> postfix '++'
> +// CHECK-NEXT: |       | | | `-DeclRefExpr {{.*}} <col:26> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | `-ForStmt {{.*}} <line:19:5, line:20:7>
> +// CHECK-NEXT: |       | |   |-DeclStmt {{.*}} <line:19:10, col:19>
> +// CHECK-NEXT: |       | |   | `-VarDecl {{.*}} <col:10, col:18> col:14
> used i 'int' cinit
> +// CHECK-NEXT: |       | |   |   `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT: |       | |   |-<<<NULL>>>
> +// CHECK-NEXT: |       | |   |-BinaryOperator {{.*}} <col:21, col:25>
> 'int' '<'
> +// CHECK-NEXT: |       | |   | |-ImplicitCastExpr {{.*}} <col:21> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | |   | | `-DeclRefExpr {{.*}} <col:21> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | |   | `-ImplicitCastExpr {{.*}} <col:25> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | |   |   `-DeclRefExpr {{.*}} <col:25> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | |   |-UnaryOperator {{.*}} <col:28, col:29>
> 'int' postfix '++'
> +// CHECK-NEXT: |       | |   | `-DeclRefExpr {{.*}} <col:28> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | |   `-NullStmt {{.*}} <line:20:7>
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <line:17:9> col:9
> implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-simd.c:17:9)
> *const restrict'
> +// CHECK-NEXT: |       | |-VarDecl {{.*}} <line:18:8, col:16> col:12 used
> i 'int' cinit
> +// CHECK-NEXT: |       | | `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       | `-VarDecl {{.*}} <line:19:10, col:18> col:14
> used i 'int' cinit
> +// CHECK-NEXT: |       |   `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT: |       |-DeclRefExpr {{.*}} <line:18:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       `-DeclRefExpr {{.*}} <line:19:25> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |-FunctionDecl {{.*}} <line:23:1, line:28:1> line:23:6
> test_four 'void (int, int)'
> +// CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:16, col:20> col:20 used x 'int'
> +// CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:23, col:27> col:27 used y 'int'
> +// CHECK-NEXT: | `-CompoundStmt {{.*}} <col:30, line:28:1>
> +// CHECK-NEXT: |   `-OMPSimdDirective {{.*}} <line:24:9, col:29>
> +// CHECK-NEXT: |     |-OMPCollapseClause {{.*}} <col:18, col:28>
> +// CHECK-NEXT: |     | `-ConstantExpr {{.*}} <col:27> 'int'
> +// CHECK-NEXT: |     |   `-IntegerLiteral {{.*}} <col:27> 'int' 2
> +// CHECK-NEXT: |     `-CapturedStmt {{.*}} <line:25:3, line:27:7>
> +// CHECK-NEXT: |       |-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc>
> +// CHECK-NEXT: |       | |-ForStmt {{.*}} <line:25:3, line:27:7>
> +// CHECK-NEXT: |       | | |-DeclStmt {{.*}} <line:25:8, col:17>
> +// CHECK-NEXT: |       | | | `-VarDecl {{.*}} <col:8, col:16> col:12 used
> i 'int' cinit
> +// CHECK-NEXT: |       | | |   `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       | | |-<<<NULL>>>
> +// CHECK-NEXT: |       | | |-BinaryOperator {{.*}} <col:19, col:23> 'int'
> '<'
> +// CHECK-NEXT: |       | | | |-ImplicitCastExpr {{.*}} <col:19> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | | | | `-DeclRefExpr {{.*}} <col:19> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | `-ImplicitCastExpr {{.*}} <col:23> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | | |   `-DeclRefExpr {{.*}} <col:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | |-UnaryOperator {{.*}} <col:26, col:27> 'int'
> postfix '++'
> +// CHECK-NEXT: |       | | | `-DeclRefExpr {{.*}} <col:26> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | `-ForStmt {{.*}} <line:26:5, line:27:7>
> +// CHECK-NEXT: |       | |   |-DeclStmt {{.*}} <line:26:10, col:19>
> +// CHECK-NEXT: |       | |   | `-VarDecl {{.*}} <col:10, col:18> col:14
> used i 'int' cinit
> +// CHECK-NEXT: |       | |   |   `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT: |       | |   |-<<<NULL>>>
> +// CHECK-NEXT: |       | |   |-BinaryOperator {{.*}} <col:21, col:25>
> 'int' '<'
> +// CHECK-NEXT: |       | |   | |-ImplicitCastExpr {{.*}} <col:21> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | |   | | `-DeclRefExpr {{.*}} <col:21> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | |   | `-ImplicitCastExpr {{.*}} <col:25> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | |   |   `-DeclRefExpr {{.*}} <col:25> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | |   |-UnaryOperator {{.*}} <col:28, col:29>
> 'int' postfix '++'
> +// CHECK-NEXT: |       | |   | `-DeclRefExpr {{.*}} <col:28> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | |   `-NullStmt {{.*}} <line:27:7>
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <line:24:9> col:9
> implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-simd.c:24:9)
> *const restrict'
> +// CHECK-NEXT: |       | |-VarDecl {{.*}} <line:25:8, col:16> col:12 used
> i 'int' cinit
> +// CHECK-NEXT: |       | | `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       | `-VarDecl {{.*}} <line:26:10, col:18> col:14
> used i 'int' cinit
> +// CHECK-NEXT: |       |   `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT: |       |-DeclRefExpr {{.*}} <line:25:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       `-DeclRefExpr {{.*}} <line:26:25> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: `-FunctionDecl {{.*}} <line:30:1, line:36:1> line:30:6
> test_five 'void (int, int, int)'
> +// CHECK-NEXT:   |-ParmVarDecl {{.*}} <col:16, col:20> col:20 used x 'int'
> +// CHECK-NEXT:   |-ParmVarDecl {{.*}} <col:23, col:27> col:27 used y 'int'
> +// CHECK-NEXT:   |-ParmVarDecl {{.*}} <col:30, col:34> col:34 used z 'int'
> +// CHECK-NEXT:   `-CompoundStmt {{.*}} <col:37, line:36:1>
> +// CHECK-NEXT:     `-OMPSimdDirective {{.*}} <line:31:9, col:29>
> +// CHECK-NEXT:       |-OMPCollapseClause {{.*}} <col:18, col:28>
> +// CHECK-NEXT:       | `-ConstantExpr {{.*}} <col:27> 'int'
> +// CHECK-NEXT:       |   `-IntegerLiteral {{.*}} <col:27> 'int' 2
> +// CHECK-NEXT:       `-CapturedStmt {{.*}} <line:32:3, line:35:9>
> +// CHECK-NEXT:         |-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc>
> +// CHECK-NEXT:         | |-ForStmt {{.*}} <line:32:3, line:35:9>
> +// CHECK-NEXT:         | | |-DeclStmt {{.*}} <line:32:8, col:17>
> +// CHECK-NEXT:         | | | `-VarDecl {{.*}} <col:8, col:16> col:12 used
> i 'int' cinit
> +// CHECK-NEXT:         | | |   `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT:         | | |-<<<NULL>>>
> +// CHECK-NEXT:         | | |-BinaryOperator {{.*}} <col:19, col:23> 'int'
> '<'
> +// CHECK-NEXT:         | | | |-ImplicitCastExpr {{.*}} <col:19> 'int'
> <LValueToRValue>
> +// CHECK-NEXT:         | | | | `-DeclRefExpr {{.*}} <col:19> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | | `-ImplicitCastExpr {{.*}} <col:23> 'int'
> <LValueToRValue>
> +// CHECK-NEXT:         | | |   `-DeclRefExpr {{.*}} <col:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT:         | | |-UnaryOperator {{.*}} <col:26, col:27> 'int'
> postfix '++'
> +// CHECK-NEXT:         | | | `-DeclRefExpr {{.*}} <col:26> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | `-ForStmt {{.*}} <line:33:5, line:35:9>
> +// CHECK-NEXT:         | |   |-DeclStmt {{.*}} <line:33:10, col:19>
> +// CHECK-NEXT:         | |   | `-VarDecl {{.*}} <col:10, col:18> col:14
> used i 'int' cinit
> +// CHECK-NEXT:         | |   |   `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT:         | |   |-<<<NULL>>>
> +// CHECK-NEXT:         | |   |-BinaryOperator {{.*}} <col:21, col:25>
> 'int' '<'
> +// CHECK-NEXT:         | |   | |-ImplicitCastExpr {{.*}} <col:21> 'int'
> <LValueToRValue>
> +// CHECK-NEXT:         | |   | | `-DeclRefExpr {{.*}} <col:21> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | |   | `-ImplicitCastExpr {{.*}} <col:25> 'int'
> <LValueToRValue>
> +// CHECK-NEXT:         | |   |   `-DeclRefExpr {{.*}} <col:25> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT:         | |   |-UnaryOperator {{.*}} <col:28, col:29>
> 'int' postfix '++'
> +// CHECK-NEXT:         | |   | `-DeclRefExpr {{.*}} <col:28> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | |   `-ForStmt {{.*}} <line:34:7, line:35:9>
> +// CHECK-NEXT:         | |     |-DeclStmt {{.*}} <line:34:12, col:21>
> +// CHECK-NEXT:         | |     | `-VarDecl {{.*}} <col:12, col:20> col:16
> used i 'int' cinit
> +// CHECK-NEXT:         | |     |   `-IntegerLiteral {{.*}} <col:20> 'int'
> 0
> +// CHECK-NEXT:         | |     |-<<<NULL>>>
> +// CHECK-NEXT:         | |     |-BinaryOperator {{.*}} <col:23, col:27>
> 'int' '<'
> +// CHECK-NEXT:         | |     | |-ImplicitCastExpr {{.*}} <col:23> 'int'
> <LValueToRValue>
> +// CHECK-NEXT:         | |     | | `-DeclRefExpr {{.*}} <col:23> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | |     | `-ImplicitCastExpr {{.*}} <col:27> 'int'
> <LValueToRValue>
> +// CHECK-NEXT:         | |     |   `-DeclRefExpr {{.*}} <col:27> 'int'
> lvalue ParmVar {{.*}} 'z' 'int'
> +// CHECK-NEXT:         | |     |-UnaryOperator {{.*}} <col:30, col:31>
> 'int' postfix '++'
> +// CHECK-NEXT:         | |     | `-DeclRefExpr {{.*}} <col:30> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | |     `-NullStmt {{.*}} <line:35:9>
> +// CHECK-NEXT:         | |-ImplicitParamDecl {{.*}} <line:31:9> col:9
> implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-simd.c:31:9)
> *const restrict'
> +// CHECK-NEXT:         | |-VarDecl {{.*}} <line:32:8, col:16> col:12 used
> i 'int' cinit
> +// CHECK-NEXT:         | | `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT:         | |-VarDecl {{.*}} <line:33:10, col:18> col:14
> used i 'int' cinit
> +// CHECK-NEXT:         | | `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT:         | `-VarDecl {{.*}} <line:34:12, col:20> col:16
> used i 'int' cinit
> +// CHECK-NEXT:         |   `-IntegerLiteral {{.*}} <col:20> 'int' 0
> +// CHECK-NEXT:         |-DeclRefExpr {{.*}} <line:32:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT:         |-DeclRefExpr {{.*}} <line:33:25> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT:         `-DeclRefExpr {{.*}} <line:34:27> 'int' lvalue
> ParmVar {{.*}} 'z' 'int'
>
> Added: cfe/trunk/test/AST/ast-dump-openmp-single.c
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/test/AST/ast-dump-openmp-single.c?rev=356569&view=auto
>
> ==============================================================================
> --- cfe/trunk/test/AST/ast-dump-openmp-single.c (added)
> +++ cfe/trunk/test/AST/ast-dump-openmp-single.c Wed Mar 20 09:31:47 2019
> @@ -0,0 +1,15 @@
> +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s |
> FileCheck --match-full-lines -implicit-check-not=openmp_structured_block %s
> +
> +void test() {
> +#pragma omp single
> +  ;
> +}
> +
> +// CHECK: TranslationUnitDecl {{.*}} <<invalid sloc>> <invalid sloc>
> +// CHECK: `-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-single.c:3:1,
> line:6:1> line:3:6 test 'void ()'
> +// CHECK-NEXT:   `-CompoundStmt {{.*}} <col:13, line:6:1>
> +// CHECK-NEXT:     `-OMPSingleDirective {{.*}} <line:4:9, col:19>
> +// CHECK-NEXT:       `-CapturedStmt {{.*}} <line:5:3>
> +// CHECK-NEXT:         `-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc>
> +// CHECK-NEXT:           |-NullStmt {{.*}} <col:3>
> +// CHECK-NEXT:           `-ImplicitParamDecl {{.*}} <line:4:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-single.c:4:9) *const restrict'
>
> Added: cfe/trunk/test/AST/ast-dump-openmp-target-data.c
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/test/AST/ast-dump-openmp-target-data.c?rev=356569&view=auto
>
> ==============================================================================
> --- cfe/trunk/test/AST/ast-dump-openmp-target-data.c (added)
> +++ cfe/trunk/test/AST/ast-dump-openmp-target-data.c Wed Mar 20 09:31:47
> 2019
> @@ -0,0 +1,18 @@
> +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s |
> FileCheck --match-full-lines -implicit-check-not=openmp_structured_block %s
> +
> +void test(int x) {
> +#pragma omp target data map(x)
> +  ;
> +}
> +
> +// CHECK: TranslationUnitDecl {{.*}} <<invalid sloc>> <invalid sloc>
> +// CHECK: `-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-target-data.c:3:1,
> line:6:1> line:3:6 test 'void (int)'
> +// CHECK-NEXT:   |-ParmVarDecl {{.*}} <col:11, col:15> col:15 used x 'int'
> +// CHECK-NEXT:   `-CompoundStmt {{.*}} <col:18, line:6:1>
> +// CHECK-NEXT:     `-OMPTargetDataDirective {{.*}} <line:4:9, col:31>
> +// CHECK-NEXT:       |-OMPMapClause {{.*}} <col:25, col:30>
> +// CHECK-NEXT:       | `-DeclRefExpr {{.*}} <col:29> 'int' lvalue ParmVar
> {{.*}} 'x' 'int'
> +// CHECK-NEXT:       `-CapturedStmt {{.*}} <line:5:3>
> +// CHECK-NEXT:         `-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc>
> +// CHECK-NEXT:           |-NullStmt {{.*}} <col:3>
> +// CHECK-NEXT:           `-ImplicitParamDecl {{.*}} <line:4:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-data.c:4:9) *const restrict'
>
> Added: cfe/trunk/test/AST/ast-dump-openmp-target-enter-data.c
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/test/AST/ast-dump-openmp-target-enter-data.c?rev=356569&view=auto
>
> ==============================================================================
> --- cfe/trunk/test/AST/ast-dump-openmp-target-enter-data.c (added)
> +++ cfe/trunk/test/AST/ast-dump-openmp-target-enter-data.c Wed Mar 20
> 09:31:47 2019
> @@ -0,0 +1,24 @@
> +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s |
> FileCheck --match-full-lines -implicit-check-not=openmp_structured_block %s
> +
> +void test(int x) {
> +#pragma omp target enter data map(to \
> +                                  : x)
> +}
> +
> +// CHECK: TranslationUnitDecl {{.*}} <<invalid sloc>> <invalid sloc>
> +// CHECK: `-FunctionDecl {{.*}}
> <{{.*}}ast-dump-openmp-target-enter-data.c:3:1, line:6:1> line:3:6 test
> 'void (int)'
> +// CHECK-NEXT:   |-ParmVarDecl {{.*}} <col:11, col:15> col:15 used x 'int'
> +// CHECK-NEXT:   `-CompoundStmt {{.*}} <col:18, line:6:1>
> +// CHECK-NEXT:     `-OMPTargetEnterDataDirective {{.*}} <line:4:9,
> line:5:39>
> +// CHECK-NEXT:       |-OMPMapClause {{.*}} <line:4:31, line:5:38>
> +// CHECK-NEXT:       | `-DeclRefExpr {{.*}} <col:37> 'int' lvalue ParmVar
> {{.*}} 'x' 'int'
> +// CHECK-NEXT:       `-CapturedStmt {{.*}} <line:4:9>
> +// CHECK-NEXT:         `-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc> nothrow
> +// CHECK-NEXT:           |-CompoundStmt {{.*}} <col:9>
> +// CHECK-NEXT:           |-AlwaysInlineAttr {{.*}} <<invalid sloc>>
> Implicit __forceinline
> +// CHECK-NEXT:           |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .global_tid. 'const int'
> +// CHECK-NEXT:           |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .part_id. 'const int *const restrict'
> +// CHECK-NEXT:           |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .privates. 'void *const restrict'
> +// CHECK-NEXT:           |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)'
> +// CHECK-NEXT:           |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .task_t. 'void *const'
> +// CHECK-NEXT:           `-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-enter-data.c:4:9) *const restrict'
>
> Added: cfe/trunk/test/AST/ast-dump-openmp-target-exit-data.c
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/test/AST/ast-dump-openmp-target-exit-data.c?rev=356569&view=auto
>
> ==============================================================================
> --- cfe/trunk/test/AST/ast-dump-openmp-target-exit-data.c (added)
> +++ cfe/trunk/test/AST/ast-dump-openmp-target-exit-data.c Wed Mar 20
> 09:31:47 2019
> @@ -0,0 +1,24 @@
> +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s |
> FileCheck --match-full-lines -implicit-check-not=openmp_structured_block %s
> +
> +void test(int x) {
> +#pragma omp target exit data map(from \
> +                                 : x)
> +}
> +
> +// CHECK: TranslationUnitDecl {{.*}} <<invalid sloc>> <invalid sloc>
> +// CHECK: `-FunctionDecl {{.*}}
> <{{.*}}ast-dump-openmp-target-exit-data.c:3:1, line:6:1> line:3:6 test
> 'void (int)'
> +// CHECK-NEXT:   |-ParmVarDecl {{.*}} <col:11, col:15> col:15 used x 'int'
> +// CHECK-NEXT:   `-CompoundStmt {{.*}} <col:18, line:6:1>
> +// CHECK-NEXT:     `-OMPTargetExitDataDirective {{.*}} <line:4:9,
> line:5:38>
> +// CHECK-NEXT:       |-OMPMapClause {{.*}} <line:4:30, line:5:37>
> +// CHECK-NEXT:       | `-DeclRefExpr {{.*}} <col:36> 'int' lvalue ParmVar
> {{.*}} 'x' 'int'
> +// CHECK-NEXT:       `-CapturedStmt {{.*}} <line:4:9>
> +// CHECK-NEXT:         `-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc> nothrow
> +// CHECK-NEXT:           |-CompoundStmt {{.*}} <col:9>
> +// CHECK-NEXT:           |-AlwaysInlineAttr {{.*}} <<invalid sloc>>
> Implicit __forceinline
> +// CHECK-NEXT:           |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .global_tid. 'const int'
> +// CHECK-NEXT:           |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .part_id. 'const int *const restrict'
> +// CHECK-NEXT:           |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .privates. 'void *const restrict'
> +// CHECK-NEXT:           |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)'
> +// CHECK-NEXT:           |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .task_t. 'void *const'
> +// CHECK-NEXT:           `-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-exit-data.c:4:9) *const restrict'
>
> Added: cfe/trunk/test/AST/ast-dump-openmp-target-parallel-for-simd.c
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/test/AST/ast-dump-openmp-target-parallel-for-simd.c?rev=356569&view=auto
>
> ==============================================================================
> --- cfe/trunk/test/AST/ast-dump-openmp-target-parallel-for-simd.c (added)
> +++ cfe/trunk/test/AST/ast-dump-openmp-target-parallel-for-simd.c Wed Mar
> 20 09:31:47 2019
> @@ -0,0 +1,957 @@
> +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s |
> FileCheck --match-full-lines -implicit-check-not=openmp_structured_block %s
> +
> +void test_one(int x) {
> +#pragma omp target parallel for simd
> +  for (int i = 0; i < x; i++)
> +    ;
> +}
> +
> +void test_two(int x, int y) {
> +#pragma omp target parallel for simd
> +  for (int i = 0; i < x; i++)
> +    for (int i = 0; i < y; i++)
> +      ;
> +}
> +
> +void test_three(int x, int y) {
> +#pragma omp target parallel for simd collapse(1)
> +  for (int i = 0; i < x; i++)
> +    for (int i = 0; i < y; i++)
> +      ;
> +}
> +
> +void test_four(int x, int y) {
> +#pragma omp target parallel for simd collapse(2)
> +  for (int i = 0; i < x; i++)
> +    for (int i = 0; i < y; i++)
> +      ;
> +}
> +
> +void test_five(int x, int y, int z) {
> +#pragma omp target parallel for simd collapse(2)
> +  for (int i = 0; i < x; i++)
> +    for (int i = 0; i < y; i++)
> +      for (int i = 0; i < z; i++)
> +        ;
> +}
> +
> +// CHECK: TranslationUnitDecl {{.*}} <<invalid sloc>> <invalid sloc>
> +// CHECK: |-FunctionDecl {{.*}}
> <{{.*}}ast-dump-openmp-target-parallel-for-simd.c:3:1, line:7:1> line:3:6
> test_one 'void (int)'
> +// CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:15, col:19> col:19 used x 'int'
> +// CHECK-NEXT: | `-CompoundStmt {{.*}} <col:22, line:7:1>
> +// CHECK-NEXT: |   `-OMPTargetParallelForSimdDirective {{.*}} <line:4:9,
> col:37>
> +// CHECK-NEXT: |     |-OMPFirstprivateClause {{.*}} <<invalid sloc>>
> <implicit>
> +// CHECK-NEXT: |     | `-DeclRefExpr {{.*}} <line:5:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |     `-CapturedStmt {{.*}} <col:3, line:6:5>
> +// CHECK-NEXT: |       |-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc> nothrow
> +// CHECK-NEXT: |       | |-CapturedStmt {{.*}} <line:5:3, line:6:5>
> +// CHECK-NEXT: |       | | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       | | | |-CapturedStmt {{.*}} <line:5:3, line:6:5>
> +// CHECK-NEXT: |       | | | | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       | | | | | |-ForStmt {{.*}} <line:5:3, line:6:5>
> +// CHECK-NEXT: |       | | | | | | |-DeclStmt {{.*}} <line:5:8, col:17>
> +// CHECK-NEXT: |       | | | | | | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | | | | | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       | | | | | | |-<<<NULL>>>
> +// CHECK-NEXT: |       | | | | | | |-BinaryOperator {{.*}} <col:19,
> col:23> 'int' '<'
> +// CHECK-NEXT: |       | | | | | | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | | | | | | `-DeclRefExpr {{.*}} <col:19>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | | | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | | | | |   `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | | | | | |-UnaryOperator {{.*}} <col:26,
> col:27> 'int' postfix '++'
> +// CHECK-NEXT: |       | | | | | | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | | | `-NullStmt {{.*}} <line:6:5>
> +// CHECK-NEXT: |       | | | | | |-ImplicitParamDecl {{.*}} <line:4:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | | | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | | | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-parallel-for-simd.c:4:9) *const restrict'
> +// CHECK-NEXT: |       | | | | | `-VarDecl {{.*}} <line:5:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | | | |   `-IntegerLiteral {{.*}} <col:16> 'int'
> 0
> +// CHECK-NEXT: |       | | | | `-DeclRefExpr {{.*}} <col:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | | |-ImplicitParamDecl {{.*}} <line:4:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-parallel-for-simd.c:4:9) *const restrict'
> +// CHECK-NEXT: |       | | | |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT: |       | | | | |-CapturedRecordAttr {{.*}} <<invalid
> sloc>> Implicit
> +// CHECK-NEXT: |       | | | | `-FieldDecl {{.*}} <line:5:23> col:23
> implicit 'int'
> +// CHECK-NEXT: |       | | | |   `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       | | | `-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       | | |   |-ForStmt {{.*}} <col:3, line:6:5>
> +// CHECK-NEXT: |       | | |   | |-DeclStmt {{.*}} <line:5:8, col:17>
> +// CHECK-NEXT: |       | | |   | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | |   | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       | | |   | |-<<<NULL>>>
> +// CHECK-NEXT: |       | | |   | |-BinaryOperator {{.*}} <col:19, col:23>
> 'int' '<'
> +// CHECK-NEXT: |       | | |   | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | |   | | | `-DeclRefExpr {{.*}} <col:19> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | |   | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | |   | |   `-DeclRefExpr {{.*}} <col:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | |   | |-UnaryOperator {{.*}} <col:26, col:27>
> 'int' postfix '++'
> +// CHECK-NEXT: |       | | |   | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | |   | `-NullStmt {{.*}} <line:6:5>
> +// CHECK-NEXT: |       | | |   |-ImplicitParamDecl {{.*}} <line:4:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | |   |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | |   |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-parallel-for-simd.c:4:9) *const restrict'
> +// CHECK-NEXT: |       | | |   `-VarDecl {{.*}} <line:5:8, col:16> col:12
> used i 'int' cinit
> +// CHECK-NEXT: |       | | |     `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       | | `-DeclRefExpr {{.*}} <col:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | |-AlwaysInlineAttr {{.*}} <<invalid sloc>>
> Implicit __forceinline
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <line:4:9> col:9
> implicit .global_tid. 'const int'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .part_id. 'const int *const restrict'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .privates. 'void *const restrict'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .task_t. 'void *const'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-parallel-for-simd.c:4:9) *const restrict'
> +// CHECK-NEXT: |       | |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT: |       | | |-CapturedRecordAttr {{.*}} <<invalid sloc>>
> Implicit
> +// CHECK-NEXT: |       | | `-FieldDecl {{.*}} <line:5:23> col:23 implicit
> 'int'
> +// CHECK-NEXT: |       | |   `-OMPCaptureKindAttr {{.*}} <<invalid sloc>>
> Implicit 9
> +// CHECK-NEXT: |       | `-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc> nothrow
> +// CHECK-NEXT: |       |   |-CapturedStmt {{.*}} <col:3, line:6:5>
> +// CHECK-NEXT: |       |   | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       |   | | |-ForStmt {{.*}} <line:5:3, line:6:5>
> +// CHECK-NEXT: |       |   | | | |-DeclStmt {{.*}} <line:5:8, col:17>
> +// CHECK-NEXT: |       |   | | | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       |   | | | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       |   | | | |-<<<NULL>>>
> +// CHECK-NEXT: |       |   | | | |-BinaryOperator {{.*}} <col:19, col:23>
> 'int' '<'
> +// CHECK-NEXT: |       |   | | | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |   | | | | | `-DeclRefExpr {{.*}} <col:19> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | | | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |   | | | |   `-DeclRefExpr {{.*}} <col:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       |   | | | |-UnaryOperator {{.*}} <col:26, col:27>
> 'int' postfix '++'
> +// CHECK-NEXT: |       |   | | | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | | | `-NullStmt {{.*}} <line:6:5>
> +// CHECK-NEXT: |       |   | | |-ImplicitParamDecl {{.*}} <line:4:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |   | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |   | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-parallel-for-simd.c:4:9) *const restrict'
> +// CHECK-NEXT: |       |   | | `-VarDecl {{.*}} <line:5:8, col:16> col:12
> used i 'int' cinit
> +// CHECK-NEXT: |       |   | |   `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       |   | `-DeclRefExpr {{.*}} <col:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       |   |-ImplicitParamDecl {{.*}} <line:4:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-parallel-for-simd.c:4:9) *const restrict'
> +// CHECK-NEXT: |       |   |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT: |       |   | |-CapturedRecordAttr {{.*}} <<invalid sloc>>
> Implicit
> +// CHECK-NEXT: |       |   | `-FieldDecl {{.*}} <line:5:23> col:23
> implicit 'int'
> +// CHECK-NEXT: |       |   |   `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       |   `-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       |     |-ForStmt {{.*}} <col:3, line:6:5>
> +// CHECK-NEXT: |       |     | |-DeclStmt {{.*}} <line:5:8, col:17>
> +// CHECK-NEXT: |       |     | | `-VarDecl {{.*}} <col:8, col:16> col:12
> used i 'int' cinit
> +// CHECK-NEXT: |       |     | |   `-IntegerLiteral {{.*}} <col:16> 'int'
> 0
> +// CHECK-NEXT: |       |     | |-<<<NULL>>>
> +// CHECK-NEXT: |       |     | |-BinaryOperator {{.*}} <col:19, col:23>
> 'int' '<'
> +// CHECK-NEXT: |       |     | | |-ImplicitCastExpr {{.*}} <col:19> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       |     | | | `-DeclRefExpr {{.*}} <col:19> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |     | | `-ImplicitCastExpr {{.*}} <col:23> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       |     | |   `-DeclRefExpr {{.*}} <col:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       |     | |-UnaryOperator {{.*}} <col:26, col:27>
> 'int' postfix '++'
> +// CHECK-NEXT: |       |     | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |     | `-NullStmt {{.*}} <line:6:5>
> +// CHECK-NEXT: |       |     |-ImplicitParamDecl {{.*}} <line:4:9> col:9
> implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |     |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |     |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-parallel-for-simd.c:4:9) *const restrict'
> +// CHECK-NEXT: |       |     `-VarDecl {{.*}} <line:5:8, col:16> col:12
> used i 'int' cinit
> +// CHECK-NEXT: |       |       `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       `-DeclRefExpr {{.*}} <col:23> 'int' lvalue ParmVar
> {{.*}} 'x' 'int'
> +// CHECK-NEXT: |-FunctionDecl {{.*}} <line:9:1, line:14:1> line:9:6
> test_two 'void (int, int)'
> +// CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:15, col:19> col:19 used x 'int'
> +// CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:22, col:26> col:26 used y 'int'
> +// CHECK-NEXT: | `-CompoundStmt {{.*}} <col:29, line:14:1>
> +// CHECK-NEXT: |   `-OMPTargetParallelForSimdDirective {{.*}} <line:10:9,
> col:37>
> +// CHECK-NEXT: |     |-OMPFirstprivateClause {{.*}} <<invalid sloc>>
> <implicit>
> +// CHECK-NEXT: |     | |-DeclRefExpr {{.*}} <line:11:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |     | `-DeclRefExpr {{.*}} <line:12:25> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |     `-CapturedStmt {{.*}} <line:11:3, line:13:7>
> +// CHECK-NEXT: |       |-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc> nothrow
> +// CHECK-NEXT: |       | |-CapturedStmt {{.*}} <line:11:3, line:13:7>
> +// CHECK-NEXT: |       | | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       | | | |-CapturedStmt {{.*}} <line:11:3, line:13:7>
> +// CHECK-NEXT: |       | | | | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       | | | | | |-ForStmt {{.*}} <line:11:3, line:13:7>
> +// CHECK-NEXT: |       | | | | | | |-DeclStmt {{.*}} <line:11:8, col:17>
> +// CHECK-NEXT: |       | | | | | | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | | | | | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       | | | | | | |-<<<NULL>>>
> +// CHECK-NEXT: |       | | | | | | |-BinaryOperator {{.*}} <col:19,
> col:23> 'int' '<'
> +// CHECK-NEXT: |       | | | | | | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | | | | | | `-DeclRefExpr {{.*}} <col:19>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | | | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | | | | |   `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | | | | | |-UnaryOperator {{.*}} <col:26,
> col:27> 'int' postfix '++'
> +// CHECK-NEXT: |       | | | | | | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | | | `-ForStmt {{.*}} <line:12:5, line:13:7>
> +// CHECK-NEXT: |       | | | | | |   |-DeclStmt {{.*}} <line:12:10,
> col:19>
> +// CHECK-NEXT: |       | | | | | |   | `-VarDecl {{.*}} <col:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       | | | | | |   |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT: |       | | | | | |   |-<<<NULL>>>
> +// CHECK-NEXT: |       | | | | | |   |-BinaryOperator {{.*}} <col:21,
> col:25> 'int' '<'
> +// CHECK-NEXT: |       | | | | | |   | |-ImplicitCastExpr {{.*}} <col:21>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | | | |   | | `-DeclRefExpr {{.*}} <col:21>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | | |   | `-ImplicitCastExpr {{.*}} <col:25>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | | | |   |   `-DeclRefExpr {{.*}} <col:25>
> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | | | | | |   |-UnaryOperator {{.*}} <col:28,
> col:29> 'int' postfix '++'
> +// CHECK-NEXT: |       | | | | | |   | `-DeclRefExpr {{.*}} <col:28>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | | |   `-NullStmt {{.*}} <line:13:7>
> +// CHECK-NEXT: |       | | | | | |-ImplicitParamDecl {{.*}} <line:10:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | | | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | | | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-parallel-for-simd.c:10:9) *const restrict'
> +// CHECK-NEXT: |       | | | | | |-VarDecl {{.*}} <line:11:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | | | | | `-IntegerLiteral {{.*}} <col:16> 'int'
> 0
> +// CHECK-NEXT: |       | | | | | `-VarDecl {{.*}} <line:12:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       | | | | |   `-IntegerLiteral {{.*}} <col:18> 'int'
> 0
> +// CHECK-NEXT: |       | | | | |-DeclRefExpr {{.*}} <line:11:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | | | `-DeclRefExpr {{.*}} <line:12:25> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | | | |-ImplicitParamDecl {{.*}} <line:10:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-parallel-for-simd.c:10:9) *const restrict'
> +// CHECK-NEXT: |       | | | |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT: |       | | | | |-CapturedRecordAttr {{.*}} <<invalid
> sloc>> Implicit
> +// CHECK-NEXT: |       | | | | |-FieldDecl {{.*}} <line:11:23> col:23
> implicit 'int'
> +// CHECK-NEXT: |       | | | | | `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       | | | | `-FieldDecl {{.*}} <line:12:25> col:25
> implicit 'int'
> +// CHECK-NEXT: |       | | | |   `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       | | | `-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       | | |   |-ForStmt {{.*}} <line:11:3, line:13:7>
> +// CHECK-NEXT: |       | | |   | |-DeclStmt {{.*}} <line:11:8, col:17>
> +// CHECK-NEXT: |       | | |   | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | |   | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       | | |   | |-<<<NULL>>>
> +// CHECK-NEXT: |       | | |   | |-BinaryOperator {{.*}} <col:19, col:23>
> 'int' '<'
> +// CHECK-NEXT: |       | | |   | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | |   | | | `-DeclRefExpr {{.*}} <col:19> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | |   | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | |   | |   `-DeclRefExpr {{.*}} <col:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | |   | |-UnaryOperator {{.*}} <col:26, col:27>
> 'int' postfix '++'
> +// CHECK-NEXT: |       | | |   | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | |   | `-ForStmt {{.*}} <line:12:5, line:13:7>
> +// CHECK-NEXT: |       | | |   |   |-DeclStmt {{.*}} <line:12:10, col:19>
> +// CHECK-NEXT: |       | | |   |   | `-VarDecl {{.*}} <col:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       | | |   |   |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT: |       | | |   |   |-<<<NULL>>>
> +// CHECK-NEXT: |       | | |   |   |-BinaryOperator {{.*}} <col:21,
> col:25> 'int' '<'
> +// CHECK-NEXT: |       | | |   |   | |-ImplicitCastExpr {{.*}} <col:21>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | |   |   | | `-DeclRefExpr {{.*}} <col:21>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | |   |   | `-ImplicitCastExpr {{.*}} <col:25>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | |   |   |   `-DeclRefExpr {{.*}} <col:25>
> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | | |   |   |-UnaryOperator {{.*}} <col:28,
> col:29> 'int' postfix '++'
> +// CHECK-NEXT: |       | | |   |   | `-DeclRefExpr {{.*}} <col:28> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | |   |   `-NullStmt {{.*}} <line:13:7>
> +// CHECK-NEXT: |       | | |   |-ImplicitParamDecl {{.*}} <line:10:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | |   |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | |   |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-parallel-for-simd.c:10:9) *const restrict'
> +// CHECK-NEXT: |       | | |   |-VarDecl {{.*}} <line:11:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | |   | `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       | | |   `-VarDecl {{.*}} <line:12:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       | | |     `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT: |       | | |-DeclRefExpr {{.*}} <line:11:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | `-DeclRefExpr {{.*}} <line:12:25> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | |-AlwaysInlineAttr {{.*}} <<invalid sloc>>
> Implicit __forceinline
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <line:10:9> col:9
> implicit .global_tid. 'const int'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .part_id. 'const int *const restrict'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .privates. 'void *const restrict'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .task_t. 'void *const'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-parallel-for-simd.c:10:9) *const restrict'
> +// CHECK-NEXT: |       | |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT: |       | | |-CapturedRecordAttr {{.*}} <<invalid sloc>>
> Implicit
> +// CHECK-NEXT: |       | | |-FieldDecl {{.*}} <line:11:23> col:23
> implicit 'int'
> +// CHECK-NEXT: |       | | | `-OMPCaptureKindAttr {{.*}} <<invalid sloc>>
> Implicit 9
> +// CHECK-NEXT: |       | | `-FieldDecl {{.*}} <line:12:25> col:25
> implicit 'int'
> +// CHECK-NEXT: |       | |   `-OMPCaptureKindAttr {{.*}} <<invalid sloc>>
> Implicit 9
> +// CHECK-NEXT: |       | `-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc> nothrow
> +// CHECK-NEXT: |       |   |-CapturedStmt {{.*}} <line:11:3, line:13:7>
> +// CHECK-NEXT: |       |   | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       |   | | |-ForStmt {{.*}} <line:11:3, line:13:7>
> +// CHECK-NEXT: |       |   | | | |-DeclStmt {{.*}} <line:11:8, col:17>
> +// CHECK-NEXT: |       |   | | | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       |   | | | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       |   | | | |-<<<NULL>>>
> +// CHECK-NEXT: |       |   | | | |-BinaryOperator {{.*}} <col:19, col:23>
> 'int' '<'
> +// CHECK-NEXT: |       |   | | | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |   | | | | | `-DeclRefExpr {{.*}} <col:19> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | | | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |   | | | |   `-DeclRefExpr {{.*}} <col:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       |   | | | |-UnaryOperator {{.*}} <col:26, col:27>
> 'int' postfix '++'
> +// CHECK-NEXT: |       |   | | | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | | | `-ForStmt {{.*}} <line:12:5, line:13:7>
> +// CHECK-NEXT: |       |   | | |   |-DeclStmt {{.*}} <line:12:10, col:19>
> +// CHECK-NEXT: |       |   | | |   | `-VarDecl {{.*}} <col:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       |   | | |   |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT: |       |   | | |   |-<<<NULL>>>
> +// CHECK-NEXT: |       |   | | |   |-BinaryOperator {{.*}} <col:21,
> col:25> 'int' '<'
> +// CHECK-NEXT: |       |   | | |   | |-ImplicitCastExpr {{.*}} <col:21>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |   | | |   | | `-DeclRefExpr {{.*}} <col:21>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | | |   | `-ImplicitCastExpr {{.*}} <col:25>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |   | | |   |   `-DeclRefExpr {{.*}} <col:25>
> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       |   | | |   |-UnaryOperator {{.*}} <col:28,
> col:29> 'int' postfix '++'
> +// CHECK-NEXT: |       |   | | |   | `-DeclRefExpr {{.*}} <col:28> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | | |   `-NullStmt {{.*}} <line:13:7>
> +// CHECK-NEXT: |       |   | | |-ImplicitParamDecl {{.*}} <line:10:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |   | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |   | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-parallel-for-simd.c:10:9) *const restrict'
> +// CHECK-NEXT: |       |   | | |-VarDecl {{.*}} <line:11:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       |   | | | `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       |   | | `-VarDecl {{.*}} <line:12:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       |   | |   `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT: |       |   | |-DeclRefExpr {{.*}} <line:11:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       |   | `-DeclRefExpr {{.*}} <line:12:25> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       |   |-ImplicitParamDecl {{.*}} <line:10:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-parallel-for-simd.c:10:9) *const restrict'
> +// CHECK-NEXT: |       |   |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT: |       |   | |-CapturedRecordAttr {{.*}} <<invalid sloc>>
> Implicit
> +// CHECK-NEXT: |       |   | |-FieldDecl {{.*}} <line:11:23> col:23
> implicit 'int'
> +// CHECK-NEXT: |       |   | | `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       |   | `-FieldDecl {{.*}} <line:12:25> col:25
> implicit 'int'
> +// CHECK-NEXT: |       |   |   `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       |   `-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       |     |-ForStmt {{.*}} <line:11:3, line:13:7>
> +// CHECK-NEXT: |       |     | |-DeclStmt {{.*}} <line:11:8, col:17>
> +// CHECK-NEXT: |       |     | | `-VarDecl {{.*}} <col:8, col:16> col:12
> used i 'int' cinit
> +// CHECK-NEXT: |       |     | |   `-IntegerLiteral {{.*}} <col:16> 'int'
> 0
> +// CHECK-NEXT: |       |     | |-<<<NULL>>>
> +// CHECK-NEXT: |       |     | |-BinaryOperator {{.*}} <col:19, col:23>
> 'int' '<'
> +// CHECK-NEXT: |       |     | | |-ImplicitCastExpr {{.*}} <col:19> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       |     | | | `-DeclRefExpr {{.*}} <col:19> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |     | | `-ImplicitCastExpr {{.*}} <col:23> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       |     | |   `-DeclRefExpr {{.*}} <col:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       |     | |-UnaryOperator {{.*}} <col:26, col:27>
> 'int' postfix '++'
> +// CHECK-NEXT: |       |     | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |     | `-ForStmt {{.*}} <line:12:5, line:13:7>
> +// CHECK-NEXT: |       |     |   |-DeclStmt {{.*}} <line:12:10, col:19>
> +// CHECK-NEXT: |       |     |   | `-VarDecl {{.*}} <col:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       |     |   |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT: |       |     |   |-<<<NULL>>>
> +// CHECK-NEXT: |       |     |   |-BinaryOperator {{.*}} <col:21, col:25>
> 'int' '<'
> +// CHECK-NEXT: |       |     |   | |-ImplicitCastExpr {{.*}} <col:21>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |     |   | | `-DeclRefExpr {{.*}} <col:21> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |     |   | `-ImplicitCastExpr {{.*}} <col:25>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |     |   |   `-DeclRefExpr {{.*}} <col:25> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       |     |   |-UnaryOperator {{.*}} <col:28, col:29>
> 'int' postfix '++'
> +// CHECK-NEXT: |       |     |   | `-DeclRefExpr {{.*}} <col:28> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |     |   `-NullStmt {{.*}} <line:13:7>
> +// CHECK-NEXT: |       |     |-ImplicitParamDecl {{.*}} <line:10:9> col:9
> implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |     |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |     |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-parallel-for-simd.c:10:9) *const restrict'
> +// CHECK-NEXT: |       |     |-VarDecl {{.*}} <line:11:8, col:16> col:12
> used i 'int' cinit
> +// CHECK-NEXT: |       |     | `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       |     `-VarDecl {{.*}} <line:12:10, col:18> col:14
> used i 'int' cinit
> +// CHECK-NEXT: |       |       `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT: |       |-DeclRefExpr {{.*}} <line:11:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       `-DeclRefExpr {{.*}} <line:12:25> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |-FunctionDecl {{.*}} <line:16:1, line:21:1> line:16:6
> test_three 'void (int, int)'
> +// CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:17, col:21> col:21 used x 'int'
> +// CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:24, col:28> col:28 used y 'int'
> +// CHECK-NEXT: | `-CompoundStmt {{.*}} <col:31, line:21:1>
> +// CHECK-NEXT: |   `-OMPTargetParallelForSimdDirective {{.*}} <line:17:9,
> col:49>
> +// CHECK-NEXT: |     |-OMPCollapseClause {{.*}} <col:38, col:48>
> +// CHECK-NEXT: |     | `-ConstantExpr {{.*}} <col:47> 'int'
> +// CHECK-NEXT: |     |   `-IntegerLiteral {{.*}} <col:47> 'int' 1
> +// CHECK-NEXT: |     |-OMPFirstprivateClause {{.*}} <<invalid sloc>>
> <implicit>
> +// CHECK-NEXT: |     | |-DeclRefExpr {{.*}} <line:18:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |     | `-DeclRefExpr {{.*}} <line:19:25> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |     `-CapturedStmt {{.*}} <line:18:3, line:20:7>
> +// CHECK-NEXT: |       |-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc> nothrow
> +// CHECK-NEXT: |       | |-CapturedStmt {{.*}} <line:18:3, line:20:7>
> +// CHECK-NEXT: |       | | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       | | | |-CapturedStmt {{.*}} <line:18:3, line:20:7>
> +// CHECK-NEXT: |       | | | | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       | | | | | |-ForStmt {{.*}} <line:18:3, line:20:7>
> +// CHECK-NEXT: |       | | | | | | |-DeclStmt {{.*}} <line:18:8, col:17>
> +// CHECK-NEXT: |       | | | | | | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | | | | | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       | | | | | | |-<<<NULL>>>
> +// CHECK-NEXT: |       | | | | | | |-BinaryOperator {{.*}} <col:19,
> col:23> 'int' '<'
> +// CHECK-NEXT: |       | | | | | | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | | | | | | `-DeclRefExpr {{.*}} <col:19>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | | | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | | | | |   `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | | | | | |-UnaryOperator {{.*}} <col:26,
> col:27> 'int' postfix '++'
> +// CHECK-NEXT: |       | | | | | | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | | | `-ForStmt {{.*}} <line:19:5, line:20:7>
> +// CHECK-NEXT: |       | | | | | |   |-DeclStmt {{.*}} <line:19:10,
> col:19>
> +// CHECK-NEXT: |       | | | | | |   | `-VarDecl {{.*}} <col:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       | | | | | |   |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT: |       | | | | | |   |-<<<NULL>>>
> +// CHECK-NEXT: |       | | | | | |   |-BinaryOperator {{.*}} <col:21,
> col:25> 'int' '<'
> +// CHECK-NEXT: |       | | | | | |   | |-ImplicitCastExpr {{.*}} <col:21>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | | | |   | | `-DeclRefExpr {{.*}} <col:21>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | | |   | `-ImplicitCastExpr {{.*}} <col:25>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | | | |   |   `-DeclRefExpr {{.*}} <col:25>
> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | | | | | |   |-UnaryOperator {{.*}} <col:28,
> col:29> 'int' postfix '++'
> +// CHECK-NEXT: |       | | | | | |   | `-DeclRefExpr {{.*}} <col:28>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | | |   `-NullStmt {{.*}} <line:20:7>
> +// CHECK-NEXT: |       | | | | | |-ImplicitParamDecl {{.*}} <line:17:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | | | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | | | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-parallel-for-simd.c:17:9) *const restrict'
> +// CHECK-NEXT: |       | | | | | |-VarDecl {{.*}} <line:18:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | | | | | `-IntegerLiteral {{.*}} <col:16> 'int'
> 0
> +// CHECK-NEXT: |       | | | | | `-VarDecl {{.*}} <line:19:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       | | | | |   `-IntegerLiteral {{.*}} <col:18> 'int'
> 0
> +// CHECK-NEXT: |       | | | | |-DeclRefExpr {{.*}} <line:18:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | | | `-DeclRefExpr {{.*}} <line:19:25> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | | | |-ImplicitParamDecl {{.*}} <line:17:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-parallel-for-simd.c:17:9) *const restrict'
> +// CHECK-NEXT: |       | | | |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT: |       | | | | |-CapturedRecordAttr {{.*}} <<invalid
> sloc>> Implicit
> +// CHECK-NEXT: |       | | | | |-FieldDecl {{.*}} <line:18:23> col:23
> implicit 'int'
> +// CHECK-NEXT: |       | | | | | `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       | | | | `-FieldDecl {{.*}} <line:19:25> col:25
> implicit 'int'
> +// CHECK-NEXT: |       | | | |   `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       | | | `-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       | | |   |-ForStmt {{.*}} <line:18:3, line:20:7>
> +// CHECK-NEXT: |       | | |   | |-DeclStmt {{.*}} <line:18:8, col:17>
> +// CHECK-NEXT: |       | | |   | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | |   | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       | | |   | |-<<<NULL>>>
> +// CHECK-NEXT: |       | | |   | |-BinaryOperator {{.*}} <col:19, col:23>
> 'int' '<'
> +// CHECK-NEXT: |       | | |   | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | |   | | | `-DeclRefExpr {{.*}} <col:19> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | |   | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | |   | |   `-DeclRefExpr {{.*}} <col:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | |   | |-UnaryOperator {{.*}} <col:26, col:27>
> 'int' postfix '++'
> +// CHECK-NEXT: |       | | |   | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | |   | `-ForStmt {{.*}} <line:19:5, line:20:7>
> +// CHECK-NEXT: |       | | |   |   |-DeclStmt {{.*}} <line:19:10, col:19>
> +// CHECK-NEXT: |       | | |   |   | `-VarDecl {{.*}} <col:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       | | |   |   |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT: |       | | |   |   |-<<<NULL>>>
> +// CHECK-NEXT: |       | | |   |   |-BinaryOperator {{.*}} <col:21,
> col:25> 'int' '<'
> +// CHECK-NEXT: |       | | |   |   | |-ImplicitCastExpr {{.*}} <col:21>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | |   |   | | `-DeclRefExpr {{.*}} <col:21>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | |   |   | `-ImplicitCastExpr {{.*}} <col:25>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | |   |   |   `-DeclRefExpr {{.*}} <col:25>
> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | | |   |   |-UnaryOperator {{.*}} <col:28,
> col:29> 'int' postfix '++'
> +// CHECK-NEXT: |       | | |   |   | `-DeclRefExpr {{.*}} <col:28> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | |   |   `-NullStmt {{.*}} <line:20:7>
> +// CHECK-NEXT: |       | | |   |-ImplicitParamDecl {{.*}} <line:17:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | |   |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | |   |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-parallel-for-simd.c:17:9) *const restrict'
> +// CHECK-NEXT: |       | | |   |-VarDecl {{.*}} <line:18:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | |   | `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       | | |   `-VarDecl {{.*}} <line:19:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       | | |     `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT: |       | | |-DeclRefExpr {{.*}} <line:18:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | `-DeclRefExpr {{.*}} <line:19:25> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | |-AlwaysInlineAttr {{.*}} <<invalid sloc>>
> Implicit __forceinline
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <line:17:9> col:9
> implicit .global_tid. 'const int'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .part_id. 'const int *const restrict'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .privates. 'void *const restrict'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .task_t. 'void *const'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-parallel-for-simd.c:17:9) *const restrict'
> +// CHECK-NEXT: |       | |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT: |       | | |-CapturedRecordAttr {{.*}} <<invalid sloc>>
> Implicit
> +// CHECK-NEXT: |       | | |-FieldDecl {{.*}} <line:18:23> col:23
> implicit 'int'
> +// CHECK-NEXT: |       | | | `-OMPCaptureKindAttr {{.*}} <<invalid sloc>>
> Implicit 9
> +// CHECK-NEXT: |       | | `-FieldDecl {{.*}} <line:19:25> col:25
> implicit 'int'
> +// CHECK-NEXT: |       | |   `-OMPCaptureKindAttr {{.*}} <<invalid sloc>>
> Implicit 9
> +// CHECK-NEXT: |       | `-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc> nothrow
> +// CHECK-NEXT: |       |   |-CapturedStmt {{.*}} <line:18:3, line:20:7>
> +// CHECK-NEXT: |       |   | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       |   | | |-ForStmt {{.*}} <line:18:3, line:20:7>
> +// CHECK-NEXT: |       |   | | | |-DeclStmt {{.*}} <line:18:8, col:17>
> +// CHECK-NEXT: |       |   | | | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       |   | | | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       |   | | | |-<<<NULL>>>
> +// CHECK-NEXT: |       |   | | | |-BinaryOperator {{.*}} <col:19, col:23>
> 'int' '<'
> +// CHECK-NEXT: |       |   | | | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |   | | | | | `-DeclRefExpr {{.*}} <col:19> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | | | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |   | | | |   `-DeclRefExpr {{.*}} <col:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       |   | | | |-UnaryOperator {{.*}} <col:26, col:27>
> 'int' postfix '++'
> +// CHECK-NEXT: |       |   | | | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | | | `-ForStmt {{.*}} <line:19:5, line:20:7>
> +// CHECK-NEXT: |       |   | | |   |-DeclStmt {{.*}} <line:19:10, col:19>
> +// CHECK-NEXT: |       |   | | |   | `-VarDecl {{.*}} <col:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       |   | | |   |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT: |       |   | | |   |-<<<NULL>>>
> +// CHECK-NEXT: |       |   | | |   |-BinaryOperator {{.*}} <col:21,
> col:25> 'int' '<'
> +// CHECK-NEXT: |       |   | | |   | |-ImplicitCastExpr {{.*}} <col:21>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |   | | |   | | `-DeclRefExpr {{.*}} <col:21>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | | |   | `-ImplicitCastExpr {{.*}} <col:25>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |   | | |   |   `-DeclRefExpr {{.*}} <col:25>
> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       |   | | |   |-UnaryOperator {{.*}} <col:28,
> col:29> 'int' postfix '++'
> +// CHECK-NEXT: |       |   | | |   | `-DeclRefExpr {{.*}} <col:28> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | | |   `-NullStmt {{.*}} <line:20:7>
> +// CHECK-NEXT: |       |   | | |-ImplicitParamDecl {{.*}} <line:17:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |   | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |   | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-parallel-for-simd.c:17:9) *const restrict'
> +// CHECK-NEXT: |       |   | | |-VarDecl {{.*}} <line:18:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       |   | | | `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       |   | | `-VarDecl {{.*}} <line:19:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       |   | |   `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT: |       |   | |-DeclRefExpr {{.*}} <line:18:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       |   | `-DeclRefExpr {{.*}} <line:19:25> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       |   |-ImplicitParamDecl {{.*}} <line:17:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-parallel-for-simd.c:17:9) *const restrict'
> +// CHECK-NEXT: |       |   |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT: |       |   | |-CapturedRecordAttr {{.*}} <<invalid sloc>>
> Implicit
> +// CHECK-NEXT: |       |   | |-FieldDecl {{.*}} <line:18:23> col:23
> implicit 'int'
> +// CHECK-NEXT: |       |   | | `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       |   | `-FieldDecl {{.*}} <line:19:25> col:25
> implicit 'int'
> +// CHECK-NEXT: |       |   |   `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       |   `-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       |     |-ForStmt {{.*}} <line:18:3, line:20:7>
> +// CHECK-NEXT: |       |     | |-DeclStmt {{.*}} <line:18:8, col:17>
> +// CHECK-NEXT: |       |     | | `-VarDecl {{.*}} <col:8, col:16> col:12
> used i 'int' cinit
> +// CHECK-NEXT: |       |     | |   `-IntegerLiteral {{.*}} <col:16> 'int'
> 0
> +// CHECK-NEXT: |       |     | |-<<<NULL>>>
> +// CHECK-NEXT: |       |     | |-BinaryOperator {{.*}} <col:19, col:23>
> 'int' '<'
> +// CHECK-NEXT: |       |     | | |-ImplicitCastExpr {{.*}} <col:19> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       |     | | | `-DeclRefExpr {{.*}} <col:19> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |     | | `-ImplicitCastExpr {{.*}} <col:23> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       |     | |   `-DeclRefExpr {{.*}} <col:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       |     | |-UnaryOperator {{.*}} <col:26, col:27>
> 'int' postfix '++'
> +// CHECK-NEXT: |       |     | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |     | `-ForStmt {{.*}} <line:19:5, line:20:7>
> +// CHECK-NEXT: |       |     |   |-DeclStmt {{.*}} <line:19:10, col:19>
> +// CHECK-NEXT: |       |     |   | `-VarDecl {{.*}} <col:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       |     |   |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT: |       |     |   |-<<<NULL>>>
> +// CHECK-NEXT: |       |     |   |-BinaryOperator {{.*}} <col:21, col:25>
> 'int' '<'
> +// CHECK-NEXT: |       |     |   | |-ImplicitCastExpr {{.*}} <col:21>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |     |   | | `-DeclRefExpr {{.*}} <col:21> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |     |   | `-ImplicitCastExpr {{.*}} <col:25>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |     |   |   `-DeclRefExpr {{.*}} <col:25> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       |     |   |-UnaryOperator {{.*}} <col:28, col:29>
> 'int' postfix '++'
> +// CHECK-NEXT: |       |     |   | `-DeclRefExpr {{.*}} <col:28> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |     |   `-NullStmt {{.*}} <line:20:7>
> +// CHECK-NEXT: |       |     |-ImplicitParamDecl {{.*}} <line:17:9> col:9
> implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |     |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |     |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-parallel-for-simd.c:17:9) *const restrict'
> +// CHECK-NEXT: |       |     |-VarDecl {{.*}} <line:18:8, col:16> col:12
> used i 'int' cinit
> +// CHECK-NEXT: |       |     | `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       |     `-VarDecl {{.*}} <line:19:10, col:18> col:14
> used i 'int' cinit
> +// CHECK-NEXT: |       |       `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT: |       |-DeclRefExpr {{.*}} <line:18:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       `-DeclRefExpr {{.*}} <line:19:25> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |-FunctionDecl {{.*}} <line:23:1, line:28:1> line:23:6
> test_four 'void (int, int)'
> +// CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:16, col:20> col:20 used x 'int'
> +// CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:23, col:27> col:27 used y 'int'
> +// CHECK-NEXT: | `-CompoundStmt {{.*}} <col:30, line:28:1>
> +// CHECK-NEXT: |   `-OMPTargetParallelForSimdDirective {{.*}} <line:24:9,
> col:49>
> +// CHECK-NEXT: |     |-OMPCollapseClause {{.*}} <col:38, col:48>
> +// CHECK-NEXT: |     | `-ConstantExpr {{.*}} <col:47> 'int'
> +// CHECK-NEXT: |     |   `-IntegerLiteral {{.*}} <col:47> 'int' 2
> +// CHECK-NEXT: |     |-OMPFirstprivateClause {{.*}} <<invalid sloc>>
> <implicit>
> +// CHECK-NEXT: |     | |-DeclRefExpr {{.*}} <line:25:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |     | `-DeclRefExpr {{.*}} <line:26:25> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |     `-CapturedStmt {{.*}} <line:25:3, line:27:7>
> +// CHECK-NEXT: |       |-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc> nothrow
> +// CHECK-NEXT: |       | |-CapturedStmt {{.*}} <line:25:3, line:27:7>
> +// CHECK-NEXT: |       | | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       | | | |-CapturedStmt {{.*}} <line:25:3, line:27:7>
> +// CHECK-NEXT: |       | | | | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       | | | | | |-ForStmt {{.*}} <line:25:3, line:27:7>
> +// CHECK-NEXT: |       | | | | | | |-DeclStmt {{.*}} <line:25:8, col:17>
> +// CHECK-NEXT: |       | | | | | | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | | | | | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       | | | | | | |-<<<NULL>>>
> +// CHECK-NEXT: |       | | | | | | |-BinaryOperator {{.*}} <col:19,
> col:23> 'int' '<'
> +// CHECK-NEXT: |       | | | | | | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | | | | | | `-DeclRefExpr {{.*}} <col:19>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | | | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | | | | |   `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | | | | | |-UnaryOperator {{.*}} <col:26,
> col:27> 'int' postfix '++'
> +// CHECK-NEXT: |       | | | | | | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | | | `-ForStmt {{.*}} <line:26:5, line:27:7>
> +// CHECK-NEXT: |       | | | | | |   |-DeclStmt {{.*}} <line:26:10,
> col:19>
> +// CHECK-NEXT: |       | | | | | |   | `-VarDecl {{.*}} <col:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       | | | | | |   |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT: |       | | | | | |   |-<<<NULL>>>
> +// CHECK-NEXT: |       | | | | | |   |-BinaryOperator {{.*}} <col:21,
> col:25> 'int' '<'
> +// CHECK-NEXT: |       | | | | | |   | |-ImplicitCastExpr {{.*}} <col:21>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | | | |   | | `-DeclRefExpr {{.*}} <col:21>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | | |   | `-ImplicitCastExpr {{.*}} <col:25>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | | | |   |   `-DeclRefExpr {{.*}} <col:25>
> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | | | | | |   |-UnaryOperator {{.*}} <col:28,
> col:29> 'int' postfix '++'
> +// CHECK-NEXT: |       | | | | | |   | `-DeclRefExpr {{.*}} <col:28>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | | |   `-NullStmt {{.*}} <line:27:7>
> +// CHECK-NEXT: |       | | | | | |-ImplicitParamDecl {{.*}} <line:24:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | | | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | | | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-parallel-for-simd.c:24:9) *const restrict'
> +// CHECK-NEXT: |       | | | | | |-VarDecl {{.*}} <line:25:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | | | | | `-IntegerLiteral {{.*}} <col:16> 'int'
> 0
> +// CHECK-NEXT: |       | | | | | `-VarDecl {{.*}} <line:26:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       | | | | |   `-IntegerLiteral {{.*}} <col:18> 'int'
> 0
> +// CHECK-NEXT: |       | | | | |-DeclRefExpr {{.*}} <line:25:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | | | `-DeclRefExpr {{.*}} <line:26:25> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | | | |-ImplicitParamDecl {{.*}} <line:24:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-parallel-for-simd.c:24:9) *const restrict'
> +// CHECK-NEXT: |       | | | |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT: |       | | | | |-CapturedRecordAttr {{.*}} <<invalid
> sloc>> Implicit
> +// CHECK-NEXT: |       | | | | |-FieldDecl {{.*}} <line:25:23> col:23
> implicit 'int'
> +// CHECK-NEXT: |       | | | | | `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       | | | | `-FieldDecl {{.*}} <line:26:25> col:25
> implicit 'int'
> +// CHECK-NEXT: |       | | | |   `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       | | | `-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       | | |   |-ForStmt {{.*}} <line:25:3, line:27:7>
> +// CHECK-NEXT: |       | | |   | |-DeclStmt {{.*}} <line:25:8, col:17>
> +// CHECK-NEXT: |       | | |   | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | |   | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       | | |   | |-<<<NULL>>>
> +// CHECK-NEXT: |       | | |   | |-BinaryOperator {{.*}} <col:19, col:23>
> 'int' '<'
> +// CHECK-NEXT: |       | | |   | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | |   | | | `-DeclRefExpr {{.*}} <col:19> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | |   | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | |   | |   `-DeclRefExpr {{.*}} <col:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | |   | |-UnaryOperator {{.*}} <col:26, col:27>
> 'int' postfix '++'
> +// CHECK-NEXT: |       | | |   | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | |   | `-ForStmt {{.*}} <line:26:5, line:27:7>
> +// CHECK-NEXT: |       | | |   |   |-DeclStmt {{.*}} <line:26:10, col:19>
> +// CHECK-NEXT: |       | | |   |   | `-VarDecl {{.*}} <col:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       | | |   |   |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT: |       | | |   |   |-<<<NULL>>>
> +// CHECK-NEXT: |       | | |   |   |-BinaryOperator {{.*}} <col:21,
> col:25> 'int' '<'
> +// CHECK-NEXT: |       | | |   |   | |-ImplicitCastExpr {{.*}} <col:21>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | |   |   | | `-DeclRefExpr {{.*}} <col:21>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | |   |   | `-ImplicitCastExpr {{.*}} <col:25>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | |   |   |   `-DeclRefExpr {{.*}} <col:25>
> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | | |   |   |-UnaryOperator {{.*}} <col:28,
> col:29> 'int' postfix '++'
> +// CHECK-NEXT: |       | | |   |   | `-DeclRefExpr {{.*}} <col:28> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | |   |   `-NullStmt {{.*}} <line:27:7>
> +// CHECK-NEXT: |       | | |   |-ImplicitParamDecl {{.*}} <line:24:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | |   |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | |   |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-parallel-for-simd.c:24:9) *const restrict'
> +// CHECK-NEXT: |       | | |   |-VarDecl {{.*}} <line:25:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | |   | `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       | | |   `-VarDecl {{.*}} <line:26:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       | | |     `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT: |       | | |-DeclRefExpr {{.*}} <line:25:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | `-DeclRefExpr {{.*}} <line:26:25> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | |-AlwaysInlineAttr {{.*}} <<invalid sloc>>
> Implicit __forceinline
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <line:24:9> col:9
> implicit .global_tid. 'const int'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .part_id. 'const int *const restrict'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .privates. 'void *const restrict'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .task_t. 'void *const'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-parallel-for-simd.c:24:9) *const restrict'
> +// CHECK-NEXT: |       | |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT: |       | | |-CapturedRecordAttr {{.*}} <<invalid sloc>>
> Implicit
> +// CHECK-NEXT: |       | | |-FieldDecl {{.*}} <line:25:23> col:23
> implicit 'int'
> +// CHECK-NEXT: |       | | | `-OMPCaptureKindAttr {{.*}} <<invalid sloc>>
> Implicit 9
> +// CHECK-NEXT: |       | | `-FieldDecl {{.*}} <line:26:25> col:25
> implicit 'int'
> +// CHECK-NEXT: |       | |   `-OMPCaptureKindAttr {{.*}} <<invalid sloc>>
> Implicit 9
> +// CHECK-NEXT: |       | `-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc> nothrow
> +// CHECK-NEXT: |       |   |-CapturedStmt {{.*}} <line:25:3, line:27:7>
> +// CHECK-NEXT: |       |   | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       |   | | |-ForStmt {{.*}} <line:25:3, line:27:7>
> +// CHECK-NEXT: |       |   | | | |-DeclStmt {{.*}} <line:25:8, col:17>
> +// CHECK-NEXT: |       |   | | | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       |   | | | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       |   | | | |-<<<NULL>>>
> +// CHECK-NEXT: |       |   | | | |-BinaryOperator {{.*}} <col:19, col:23>
> 'int' '<'
> +// CHECK-NEXT: |       |   | | | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |   | | | | | `-DeclRefExpr {{.*}} <col:19> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | | | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |   | | | |   `-DeclRefExpr {{.*}} <col:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       |   | | | |-UnaryOperator {{.*}} <col:26, col:27>
> 'int' postfix '++'
> +// CHECK-NEXT: |       |   | | | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | | | `-ForStmt {{.*}} <line:26:5, line:27:7>
> +// CHECK-NEXT: |       |   | | |   |-DeclStmt {{.*}} <line:26:10, col:19>
> +// CHECK-NEXT: |       |   | | |   | `-VarDecl {{.*}} <col:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       |   | | |   |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT: |       |   | | |   |-<<<NULL>>>
> +// CHECK-NEXT: |       |   | | |   |-BinaryOperator {{.*}} <col:21,
> col:25> 'int' '<'
> +// CHECK-NEXT: |       |   | | |   | |-ImplicitCastExpr {{.*}} <col:21>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |   | | |   | | `-DeclRefExpr {{.*}} <col:21>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | | |   | `-ImplicitCastExpr {{.*}} <col:25>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |   | | |   |   `-DeclRefExpr {{.*}} <col:25>
> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       |   | | |   |-UnaryOperator {{.*}} <col:28,
> col:29> 'int' postfix '++'
> +// CHECK-NEXT: |       |   | | |   | `-DeclRefExpr {{.*}} <col:28> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | | |   `-NullStmt {{.*}} <line:27:7>
> +// CHECK-NEXT: |       |   | | |-ImplicitParamDecl {{.*}} <line:24:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |   | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |   | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-parallel-for-simd.c:24:9) *const restrict'
> +// CHECK-NEXT: |       |   | | |-VarDecl {{.*}} <line:25:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       |   | | | `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       |   | | `-VarDecl {{.*}} <line:26:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       |   | |   `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT: |       |   | |-DeclRefExpr {{.*}} <line:25:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       |   | `-DeclRefExpr {{.*}} <line:26:25> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       |   |-ImplicitParamDecl {{.*}} <line:24:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-parallel-for-simd.c:24:9) *const restrict'
> +// CHECK-NEXT: |       |   |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT: |       |   | |-CapturedRecordAttr {{.*}} <<invalid sloc>>
> Implicit
> +// CHECK-NEXT: |       |   | |-FieldDecl {{.*}} <line:25:23> col:23
> implicit 'int'
> +// CHECK-NEXT: |       |   | | `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       |   | `-FieldDecl {{.*}} <line:26:25> col:25
> implicit 'int'
> +// CHECK-NEXT: |       |   |   `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       |   `-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       |     |-ForStmt {{.*}} <line:25:3, line:27:7>
> +// CHECK-NEXT: |       |     | |-DeclStmt {{.*}} <line:25:8, col:17>
> +// CHECK-NEXT: |       |     | | `-VarDecl {{.*}} <col:8, col:16> col:12
> used i 'int' cinit
> +// CHECK-NEXT: |       |     | |   `-IntegerLiteral {{.*}} <col:16> 'int'
> 0
> +// CHECK-NEXT: |       |     | |-<<<NULL>>>
> +// CHECK-NEXT: |       |     | |-BinaryOperator {{.*}} <col:19, col:23>
> 'int' '<'
> +// CHECK-NEXT: |       |     | | |-ImplicitCastExpr {{.*}} <col:19> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       |     | | | `-DeclRefExpr {{.*}} <col:19> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |     | | `-ImplicitCastExpr {{.*}} <col:23> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       |     | |   `-DeclRefExpr {{.*}} <col:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       |     | |-UnaryOperator {{.*}} <col:26, col:27>
> 'int' postfix '++'
> +// CHECK-NEXT: |       |     | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |     | `-ForStmt {{.*}} <line:26:5, line:27:7>
> +// CHECK-NEXT: |       |     |   |-DeclStmt {{.*}} <line:26:10, col:19>
> +// CHECK-NEXT: |       |     |   | `-VarDecl {{.*}} <col:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       |     |   |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT: |       |     |   |-<<<NULL>>>
> +// CHECK-NEXT: |       |     |   |-BinaryOperator {{.*}} <col:21, col:25>
> 'int' '<'
> +// CHECK-NEXT: |       |     |   | |-ImplicitCastExpr {{.*}} <col:21>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |     |   | | `-DeclRefExpr {{.*}} <col:21> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |     |   | `-ImplicitCastExpr {{.*}} <col:25>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |     |   |   `-DeclRefExpr {{.*}} <col:25> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       |     |   |-UnaryOperator {{.*}} <col:28, col:29>
> 'int' postfix '++'
> +// CHECK-NEXT: |       |     |   | `-DeclRefExpr {{.*}} <col:28> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |     |   `-NullStmt {{.*}} <line:27:7>
> +// CHECK-NEXT: |       |     |-ImplicitParamDecl {{.*}} <line:24:9> col:9
> implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |     |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |     |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-parallel-for-simd.c:24:9) *const restrict'
> +// CHECK-NEXT: |       |     |-VarDecl {{.*}} <line:25:8, col:16> col:12
> used i 'int' cinit
> +// CHECK-NEXT: |       |     | `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       |     `-VarDecl {{.*}} <line:26:10, col:18> col:14
> used i 'int' cinit
> +// CHECK-NEXT: |       |       `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT: |       |-DeclRefExpr {{.*}} <line:25:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       `-DeclRefExpr {{.*}} <line:26:25> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: `-FunctionDecl {{.*}} <line:30:1, line:36:1> line:30:6
> test_five 'void (int, int, int)'
> +// CHECK-NEXT:   |-ParmVarDecl {{.*}} <col:16, col:20> col:20 used x 'int'
> +// CHECK-NEXT:   |-ParmVarDecl {{.*}} <col:23, col:27> col:27 used y 'int'
> +// CHECK-NEXT:   |-ParmVarDecl {{.*}} <col:30, col:34> col:34 used z 'int'
> +// CHECK-NEXT:   `-CompoundStmt {{.*}} <col:37, line:36:1>
> +// CHECK-NEXT:     `-OMPTargetParallelForSimdDirective {{.*}} <line:31:9,
> col:49>
> +// CHECK-NEXT:       |-OMPCollapseClause {{.*}} <col:38, col:48>
> +// CHECK-NEXT:       | `-ConstantExpr {{.*}} <col:47> 'int'
> +// CHECK-NEXT:       |   `-IntegerLiteral {{.*}} <col:47> 'int' 2
> +// CHECK-NEXT:       |-OMPFirstprivateClause {{.*}} <<invalid sloc>>
> <implicit>
> +// CHECK-NEXT:       | |-DeclRefExpr {{.*}} <line:32:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT:       | |-DeclRefExpr {{.*}} <line:33:25> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT:       | `-DeclRefExpr {{.*}} <line:34:27> 'int' lvalue
> ParmVar {{.*}} 'z' 'int'
> +// CHECK-NEXT:       `-CapturedStmt {{.*}} <line:32:3, line:35:9>
> +// CHECK-NEXT:         |-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc> nothrow
> +// CHECK-NEXT:         | |-CapturedStmt {{.*}} <line:32:3, line:35:9>
> +// CHECK-NEXT:         | | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT:         | | | |-CapturedStmt {{.*}} <line:32:3, line:35:9>
> +// CHECK-NEXT:         | | | | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT:         | | | | | |-ForStmt {{.*}} <line:32:3, line:35:9>
> +// CHECK-NEXT:         | | | | | | |-DeclStmt {{.*}} <line:32:8, col:17>
> +// CHECK-NEXT:         | | | | | | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT:         | | | | | | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT:         | | | | | | |-<<<NULL>>>
> +// CHECK-NEXT:         | | | | | | |-BinaryOperator {{.*}} <col:19,
> col:23> 'int' '<'
> +// CHECK-NEXT:         | | | | | | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         | | | | | | | | `-DeclRefExpr {{.*}} <col:19>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | | | | | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         | | | | | | |   `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT:         | | | | | | |-UnaryOperator {{.*}} <col:26,
> col:27> 'int' postfix '++'
> +// CHECK-NEXT:         | | | | | | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | | | | | `-ForStmt {{.*}} <line:33:5, line:35:9>
> +// CHECK-NEXT:         | | | | | |   |-DeclStmt {{.*}} <line:33:10,
> col:19>
> +// CHECK-NEXT:         | | | | | |   | `-VarDecl {{.*}} <col:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT:         | | | | | |   |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT:         | | | | | |   |-<<<NULL>>>
> +// CHECK-NEXT:         | | | | | |   |-BinaryOperator {{.*}} <col:21,
> col:25> 'int' '<'
> +// CHECK-NEXT:         | | | | | |   | |-ImplicitCastExpr {{.*}} <col:21>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         | | | | | |   | | `-DeclRefExpr {{.*}} <col:21>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | | | | |   | `-ImplicitCastExpr {{.*}} <col:25>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         | | | | | |   |   `-DeclRefExpr {{.*}} <col:25>
> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT:         | | | | | |   |-UnaryOperator {{.*}} <col:28,
> col:29> 'int' postfix '++'
> +// CHECK-NEXT:         | | | | | |   | `-DeclRefExpr {{.*}} <col:28>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | | | | |   `-ForStmt {{.*}} <line:34:7,
> line:35:9>
> +// CHECK-NEXT:         | | | | | |     |-DeclStmt {{.*}} <line:34:12,
> col:21>
> +// CHECK-NEXT:         | | | | | |     | `-VarDecl {{.*}} <col:12,
> col:20> col:16 used i 'int' cinit
> +// CHECK-NEXT:         | | | | | |     |   `-IntegerLiteral {{.*}}
> <col:20> 'int' 0
> +// CHECK-NEXT:         | | | | | |     |-<<<NULL>>>
> +// CHECK-NEXT:         | | | | | |     |-BinaryOperator {{.*}} <col:23,
> col:27> 'int' '<'
> +// CHECK-NEXT:         | | | | | |     | |-ImplicitCastExpr {{.*}}
> <col:23> 'int' <LValueToRValue>
> +// CHECK-NEXT:         | | | | | |     | | `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | | | | |     | `-ImplicitCastExpr {{.*}}
> <col:27> 'int' <LValueToRValue>
> +// CHECK-NEXT:         | | | | | |     |   `-DeclRefExpr {{.*}} <col:27>
> 'int' lvalue ParmVar {{.*}} 'z' 'int'
> +// CHECK-NEXT:         | | | | | |     |-UnaryOperator {{.*}} <col:30,
> col:31> 'int' postfix '++'
> +// CHECK-NEXT:         | | | | | |     | `-DeclRefExpr {{.*}} <col:30>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | | | | |     `-NullStmt {{.*}} <line:35:9>
> +// CHECK-NEXT:         | | | | | |-ImplicitParamDecl {{.*}} <line:31:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT:         | | | | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT:         | | | | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-parallel-for-simd.c:31:9) *const restrict'
> +// CHECK-NEXT:         | | | | | |-VarDecl {{.*}} <line:32:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT:         | | | | | | `-IntegerLiteral {{.*}} <col:16> 'int'
> 0
> +// CHECK-NEXT:         | | | | | |-VarDecl {{.*}} <line:33:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT:         | | | | | | `-IntegerLiteral {{.*}} <col:18> 'int'
> 0
> +// CHECK-NEXT:         | | | | | `-VarDecl {{.*}} <line:34:12, col:20>
> col:16 used i 'int' cinit
> +// CHECK-NEXT:         | | | | |   `-IntegerLiteral {{.*}} <col:20> 'int'
> 0
> +// CHECK-NEXT:         | | | | |-DeclRefExpr {{.*}} <line:32:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT:         | | | | |-DeclRefExpr {{.*}} <line:33:25> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT:         | | | | `-DeclRefExpr {{.*}} <line:34:27> 'int'
> lvalue ParmVar {{.*}} 'z' 'int'
> +// CHECK-NEXT:         | | | |-ImplicitParamDecl {{.*}} <line:31:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-parallel-for-simd.c:31:9) *const restrict'
> +// CHECK-NEXT:         | | | |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT:         | | | | |-CapturedRecordAttr {{.*}} <<invalid
> sloc>> Implicit
> +// CHECK-NEXT:         | | | | |-FieldDecl {{.*}} <line:32:23> col:23
> implicit 'int'
> +// CHECK-NEXT:         | | | | | `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT:         | | | | |-FieldDecl {{.*}} <line:33:25> col:25
> implicit 'int'
> +// CHECK-NEXT:         | | | | | `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT:         | | | | `-FieldDecl {{.*}} <line:34:27> col:27
> implicit 'int'
> +// CHECK-NEXT:         | | | |   `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT:         | | | `-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT:         | | |   |-ForStmt {{.*}} <line:32:3, line:35:9>
> +// CHECK-NEXT:         | | |   | |-DeclStmt {{.*}} <line:32:8, col:17>
> +// CHECK-NEXT:         | | |   | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT:         | | |   | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT:         | | |   | |-<<<NULL>>>
> +// CHECK-NEXT:         | | |   | |-BinaryOperator {{.*}} <col:19, col:23>
> 'int' '<'
> +// CHECK-NEXT:         | | |   | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         | | |   | | | `-DeclRefExpr {{.*}} <col:19> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | |   | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         | | |   | |   `-DeclRefExpr {{.*}} <col:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT:         | | |   | |-UnaryOperator {{.*}} <col:26, col:27>
> 'int' postfix '++'
> +// CHECK-NEXT:         | | |   | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | |   | `-ForStmt {{.*}} <line:33:5, line:35:9>
> +// CHECK-NEXT:         | | |   |   |-DeclStmt {{.*}} <line:33:10, col:19>
> +// CHECK-NEXT:         | | |   |   | `-VarDecl {{.*}} <col:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT:         | | |   |   |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT:         | | |   |   |-<<<NULL>>>
> +// CHECK-NEXT:         | | |   |   |-BinaryOperator {{.*}} <col:21,
> col:25> 'int' '<'
> +// CHECK-NEXT:         | | |   |   | |-ImplicitCastExpr {{.*}} <col:21>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         | | |   |   | | `-DeclRefExpr {{.*}} <col:21>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | |   |   | `-ImplicitCastExpr {{.*}} <col:25>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         | | |   |   |   `-DeclRefExpr {{.*}} <col:25>
> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT:         | | |   |   |-UnaryOperator {{.*}} <col:28,
> col:29> 'int' postfix '++'
> +// CHECK-NEXT:         | | |   |   | `-DeclRefExpr {{.*}} <col:28> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | |   |   `-ForStmt {{.*}} <line:34:7, line:35:9>
> +// CHECK-NEXT:         | | |   |     |-DeclStmt {{.*}} <line:34:12,
> col:21>
> +// CHECK-NEXT:         | | |   |     | `-VarDecl {{.*}} <col:12, col:20>
> col:16 used i 'int' cinit
> +// CHECK-NEXT:         | | |   |     |   `-IntegerLiteral {{.*}} <col:20>
> 'int' 0
> +// CHECK-NEXT:         | | |   |     |-<<<NULL>>>
> +// CHECK-NEXT:         | | |   |     |-BinaryOperator {{.*}} <col:23,
> col:27> 'int' '<'
> +// CHECK-NEXT:         | | |   |     | |-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         | | |   |     | | `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | |   |     | `-ImplicitCastExpr {{.*}} <col:27>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         | | |   |     |   `-DeclRefExpr {{.*}} <col:27>
> 'int' lvalue ParmVar {{.*}} 'z' 'int'
> +// CHECK-NEXT:         | | |   |     |-UnaryOperator {{.*}} <col:30,
> col:31> 'int' postfix '++'
> +// CHECK-NEXT:         | | |   |     | `-DeclRefExpr {{.*}} <col:30>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | |   |     `-NullStmt {{.*}} <line:35:9>
> +// CHECK-NEXT:         | | |   |-ImplicitParamDecl {{.*}} <line:31:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT:         | | |   |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT:         | | |   |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-parallel-for-simd.c:31:9) *const restrict'
> +// CHECK-NEXT:         | | |   |-VarDecl {{.*}} <line:32:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT:         | | |   | `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT:         | | |   |-VarDecl {{.*}} <line:33:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT:         | | |   | `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT:         | | |   `-VarDecl {{.*}} <line:34:12, col:20>
> col:16 used i 'int' cinit
> +// CHECK-NEXT:         | | |     `-IntegerLiteral {{.*}} <col:20> 'int' 0
> +// CHECK-NEXT:         | | |-DeclRefExpr {{.*}} <line:32:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT:         | | |-DeclRefExpr {{.*}} <line:33:25> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT:         | | `-DeclRefExpr {{.*}} <line:34:27> 'int' lvalue
> ParmVar {{.*}} 'z' 'int'
> +// CHECK-NEXT:         | |-AlwaysInlineAttr {{.*}} <<invalid sloc>>
> Implicit __forceinline
> +// CHECK-NEXT:         | |-ImplicitParamDecl {{.*}} <line:31:9> col:9
> implicit .global_tid. 'const int'
> +// CHECK-NEXT:         | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .part_id. 'const int *const restrict'
> +// CHECK-NEXT:         | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .privates. 'void *const restrict'
> +// CHECK-NEXT:         | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)'
> +// CHECK-NEXT:         | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .task_t. 'void *const'
> +// CHECK-NEXT:         | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-parallel-for-simd.c:31:9) *const restrict'
> +// CHECK-NEXT:         | |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT:         | | |-CapturedRecordAttr {{.*}} <<invalid sloc>>
> Implicit
> +// CHECK-NEXT:         | | |-FieldDecl {{.*}} <line:32:23> col:23
> implicit 'int'
> +// CHECK-NEXT:         | | | `-OMPCaptureKindAttr {{.*}} <<invalid sloc>>
> Implicit 9
> +// CHECK-NEXT:         | | |-FieldDecl {{.*}} <line:33:25> col:25
> implicit 'int'
> +// CHECK-NEXT:         | | | `-OMPCaptureKindAttr {{.*}} <<invalid sloc>>
> Implicit 9
> +// CHECK-NEXT:         | | `-FieldDecl {{.*}} <line:34:27> col:27
> implicit 'int'
> +// CHECK-NEXT:         | |   `-OMPCaptureKindAttr {{.*}} <<invalid sloc>>
> Implicit 9
> +// CHECK-NEXT:         | `-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc> nothrow
> +// CHECK-NEXT:         |   |-CapturedStmt {{.*}} <line:32:3, line:35:9>
> +// CHECK-NEXT:         |   | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT:         |   | | |-ForStmt {{.*}} <line:32:3, line:35:9>
> +// CHECK-NEXT:         |   | | | |-DeclStmt {{.*}} <line:32:8, col:17>
> +// CHECK-NEXT:         |   | | | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT:         |   | | | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT:         |   | | | |-<<<NULL>>>
> +// CHECK-NEXT:         |   | | | |-BinaryOperator {{.*}} <col:19, col:23>
> 'int' '<'
> +// CHECK-NEXT:         |   | | | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         |   | | | | | `-DeclRefExpr {{.*}} <col:19> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         |   | | | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         |   | | | |   `-DeclRefExpr {{.*}} <col:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT:         |   | | | |-UnaryOperator {{.*}} <col:26, col:27>
> 'int' postfix '++'
> +// CHECK-NEXT:         |   | | | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         |   | | | `-ForStmt {{.*}} <line:33:5, line:35:9>
> +// CHECK-NEXT:         |   | | |   |-DeclStmt {{.*}} <line:33:10, col:19>
> +// CHECK-NEXT:         |   | | |   | `-VarDecl {{.*}} <col:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT:         |   | | |   |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT:         |   | | |   |-<<<NULL>>>
> +// CHECK-NEXT:         |   | | |   |-BinaryOperator {{.*}} <col:21,
> col:25> 'int' '<'
> +// CHECK-NEXT:         |   | | |   | |-ImplicitCastExpr {{.*}} <col:21>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         |   | | |   | | `-DeclRefExpr {{.*}} <col:21>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         |   | | |   | `-ImplicitCastExpr {{.*}} <col:25>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         |   | | |   |   `-DeclRefExpr {{.*}} <col:25>
> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT:         |   | | |   |-UnaryOperator {{.*}} <col:28,
> col:29> 'int' postfix '++'
> +// CHECK-NEXT:         |   | | |   | `-DeclRefExpr {{.*}} <col:28> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         |   | | |   `-ForStmt {{.*}} <line:34:7, line:35:9>
> +// CHECK-NEXT:         |   | | |     |-DeclStmt {{.*}} <line:34:12,
> col:21>
> +// CHECK-NEXT:         |   | | |     | `-VarDecl {{.*}} <col:12, col:20>
> col:16 used i 'int' cinit
> +// CHECK-NEXT:         |   | | |     |   `-IntegerLiteral {{.*}} <col:20>
> 'int' 0
> +// CHECK-NEXT:         |   | | |     |-<<<NULL>>>
> +// CHECK-NEXT:         |   | | |     |-BinaryOperator {{.*}} <col:23,
> col:27> 'int' '<'
> +// CHECK-NEXT:         |   | | |     | |-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         |   | | |     | | `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         |   | | |     | `-ImplicitCastExpr {{.*}} <col:27>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         |   | | |     |   `-DeclRefExpr {{.*}} <col:27>
> 'int' lvalue ParmVar {{.*}} 'z' 'int'
> +// CHECK-NEXT:         |   | | |     |-UnaryOperator {{.*}} <col:30,
> col:31> 'int' postfix '++'
> +// CHECK-NEXT:         |   | | |     | `-DeclRefExpr {{.*}} <col:30>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         |   | | |     `-NullStmt {{.*}} <line:35:9>
> +// CHECK-NEXT:         |   | | |-ImplicitParamDecl {{.*}} <line:31:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT:         |   | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT:         |   | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-parallel-for-simd.c:31:9) *const restrict'
> +// CHECK-NEXT:         |   | | |-VarDecl {{.*}} <line:32:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT:         |   | | | `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT:         |   | | |-VarDecl {{.*}} <line:33:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT:         |   | | | `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT:         |   | | `-VarDecl {{.*}} <line:34:12, col:20>
> col:16 used i 'int' cinit
> +// CHECK-NEXT:         |   | |   `-IntegerLiteral {{.*}} <col:20> 'int' 0
> +// CHECK-NEXT:         |   | |-DeclRefExpr {{.*}} <line:32:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT:         |   | |-DeclRefExpr {{.*}} <line:33:25> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT:         |   | `-DeclRefExpr {{.*}} <line:34:27> 'int'
> lvalue ParmVar {{.*}} 'z' 'int'
> +// CHECK-NEXT:         |   |-ImplicitParamDecl {{.*}} <line:31:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-parallel-for-simd.c:31:9) *const restrict'
> +// CHECK-NEXT:         |   |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT:         |   | |-CapturedRecordAttr {{.*}} <<invalid sloc>>
> Implicit
> +// CHECK-NEXT:         |   | |-FieldDecl {{.*}} <line:32:23> col:23
> implicit 'int'
> +// CHECK-NEXT:         |   | | `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT:         |   | |-FieldDecl {{.*}} <line:33:25> col:25
> implicit 'int'
> +// CHECK-NEXT:         |   | | `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT:         |   | `-FieldDecl {{.*}} <line:34:27> col:27
> implicit 'int'
> +// CHECK-NEXT:         |   |   `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT:         |   `-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT:         |     |-ForStmt {{.*}} <line:32:3, line:35:9>
> +// CHECK-NEXT:         |     | |-DeclStmt {{.*}} <line:32:8, col:17>
> +// CHECK-NEXT:         |     | | `-VarDecl {{.*}} <col:8, col:16> col:12
> used i 'int' cinit
> +// CHECK-NEXT:         |     | |   `-IntegerLiteral {{.*}} <col:16> 'int'
> 0
> +// CHECK-NEXT:         |     | |-<<<NULL>>>
> +// CHECK-NEXT:         |     | |-BinaryOperator {{.*}} <col:19, col:23>
> 'int' '<'
> +// CHECK-NEXT:         |     | | |-ImplicitCastExpr {{.*}} <col:19> 'int'
> <LValueToRValue>
> +// CHECK-NEXT:         |     | | | `-DeclRefExpr {{.*}} <col:19> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         |     | | `-ImplicitCastExpr {{.*}} <col:23> 'int'
> <LValueToRValue>
> +// CHECK-NEXT:         |     | |   `-DeclRefExpr {{.*}} <col:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT:         |     | |-UnaryOperator {{.*}} <col:26, col:27>
> 'int' postfix '++'
> +// CHECK-NEXT:         |     | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         |     | `-ForStmt {{.*}} <line:33:5, line:35:9>
> +// CHECK-NEXT:         |     |   |-DeclStmt {{.*}} <line:33:10, col:19>
> +// CHECK-NEXT:         |     |   | `-VarDecl {{.*}} <col:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT:         |     |   |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT:         |     |   |-<<<NULL>>>
> +// CHECK-NEXT:         |     |   |-BinaryOperator {{.*}} <col:21, col:25>
> 'int' '<'
> +// CHECK-NEXT:         |     |   | |-ImplicitCastExpr {{.*}} <col:21>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         |     |   | | `-DeclRefExpr {{.*}} <col:21> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         |     |   | `-ImplicitCastExpr {{.*}} <col:25>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         |     |   |   `-DeclRefExpr {{.*}} <col:25> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT:         |     |   |-UnaryOperator {{.*}} <col:28, col:29>
> 'int' postfix '++'
> +// CHECK-NEXT:         |     |   | `-DeclRefExpr {{.*}} <col:28> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         |     |   `-ForStmt {{.*}} <line:34:7, line:35:9>
> +// CHECK-NEXT:         |     |     |-DeclStmt {{.*}} <line:34:12, col:21>
> +// CHECK-NEXT:         |     |     | `-VarDecl {{.*}} <col:12, col:20>
> col:16 used i 'int' cinit
> +// CHECK-NEXT:         |     |     |   `-IntegerLiteral {{.*}} <col:20>
> 'int' 0
> +// CHECK-NEXT:         |     |     |-<<<NULL>>>
> +// CHECK-NEXT:         |     |     |-BinaryOperator {{.*}} <col:23,
> col:27> 'int' '<'
> +// CHECK-NEXT:         |     |     | |-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         |     |     | | `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         |     |     | `-ImplicitCastExpr {{.*}} <col:27>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         |     |     |   `-DeclRefExpr {{.*}} <col:27>
> 'int' lvalue ParmVar {{.*}} 'z' 'int'
> +// CHECK-NEXT:         |     |     |-UnaryOperator {{.*}} <col:30,
> col:31> 'int' postfix '++'
> +// CHECK-NEXT:         |     |     | `-DeclRefExpr {{.*}} <col:30> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         |     |     `-NullStmt {{.*}} <line:35:9>
> +// CHECK-NEXT:         |     |-ImplicitParamDecl {{.*}} <line:31:9> col:9
> implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT:         |     |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT:         |     |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-parallel-for-simd.c:31:9) *const restrict'
> +// CHECK-NEXT:         |     |-VarDecl {{.*}} <line:32:8, col:16> col:12
> used i 'int' cinit
> +// CHECK-NEXT:         |     | `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT:         |     |-VarDecl {{.*}} <line:33:10, col:18> col:14
> used i 'int' cinit
> +// CHECK-NEXT:         |     | `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT:         |     `-VarDecl {{.*}} <line:34:12, col:20> col:16
> used i 'int' cinit
> +// CHECK-NEXT:         |       `-IntegerLiteral {{.*}} <col:20> 'int' 0
> +// CHECK-NEXT:         |-DeclRefExpr {{.*}} <line:32:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT:         |-DeclRefExpr {{.*}} <line:33:25> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT:         `-DeclRefExpr {{.*}} <line:34:27> 'int' lvalue
> ParmVar {{.*}} 'z' 'int'
>
> Added: cfe/trunk/test/AST/ast-dump-openmp-target-parallel-for.c
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/test/AST/ast-dump-openmp-target-parallel-for.c?rev=356569&view=auto
>
> ==============================================================================
> --- cfe/trunk/test/AST/ast-dump-openmp-target-parallel-for.c (added)
> +++ cfe/trunk/test/AST/ast-dump-openmp-target-parallel-for.c Wed Mar 20
> 09:31:47 2019
> @@ -0,0 +1,957 @@
> +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s |
> FileCheck --match-full-lines -implicit-check-not=openmp_structured_block %s
> +
> +void test_one(int x) {
> +#pragma omp target parallel for
> +  for (int i = 0; i < x; i++)
> +    ;
> +}
> +
> +void test_two(int x, int y) {
> +#pragma omp target parallel for
> +  for (int i = 0; i < x; i++)
> +    for (int i = 0; i < y; i++)
> +      ;
> +}
> +
> +void test_three(int x, int y) {
> +#pragma omp target parallel for collapse(1)
> +  for (int i = 0; i < x; i++)
> +    for (int i = 0; i < y; i++)
> +      ;
> +}
> +
> +void test_four(int x, int y) {
> +#pragma omp target parallel for collapse(2)
> +  for (int i = 0; i < x; i++)
> +    for (int i = 0; i < y; i++)
> +      ;
> +}
> +
> +void test_five(int x, int y, int z) {
> +#pragma omp target parallel for collapse(2)
> +  for (int i = 0; i < x; i++)
> +    for (int i = 0; i < y; i++)
> +      for (int i = 0; i < z; i++)
> +        ;
> +}
> +
> +// CHECK: TranslationUnitDecl {{.*}} <<invalid sloc>> <invalid sloc>
> +// CHECK: |-FunctionDecl {{.*}}
> <{{.*}}ast-dump-openmp-target-parallel-for.c:3:1, line:7:1> line:3:6
> test_one 'void (int)'
> +// CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:15, col:19> col:19 used x 'int'
> +// CHECK-NEXT: | `-CompoundStmt {{.*}} <col:22, line:7:1>
> +// CHECK-NEXT: |   `-OMPTargetParallelForDirective {{.*}} <line:4:9,
> col:32>
> +// CHECK-NEXT: |     |-OMPFirstprivateClause {{.*}} <<invalid sloc>>
> <implicit>
> +// CHECK-NEXT: |     | `-DeclRefExpr {{.*}} <line:5:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |     `-CapturedStmt {{.*}} <col:3, line:6:5>
> +// CHECK-NEXT: |       |-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc> nothrow
> +// CHECK-NEXT: |       | |-CapturedStmt {{.*}} <line:5:3, line:6:5>
> +// CHECK-NEXT: |       | | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       | | | |-CapturedStmt {{.*}} <line:5:3, line:6:5>
> +// CHECK-NEXT: |       | | | | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       | | | | | |-ForStmt {{.*}} <line:5:3, line:6:5>
> +// CHECK-NEXT: |       | | | | | | |-DeclStmt {{.*}} <line:5:8, col:17>
> +// CHECK-NEXT: |       | | | | | | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | | | | | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       | | | | | | |-<<<NULL>>>
> +// CHECK-NEXT: |       | | | | | | |-BinaryOperator {{.*}} <col:19,
> col:23> 'int' '<'
> +// CHECK-NEXT: |       | | | | | | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | | | | | | `-DeclRefExpr {{.*}} <col:19>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | | | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | | | | |   `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | | | | | |-UnaryOperator {{.*}} <col:26,
> col:27> 'int' postfix '++'
> +// CHECK-NEXT: |       | | | | | | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | | | `-NullStmt {{.*}} <line:6:5>
> +// CHECK-NEXT: |       | | | | | |-ImplicitParamDecl {{.*}} <line:4:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | | | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | | | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-parallel-for.c:4:9) *const restrict'
> +// CHECK-NEXT: |       | | | | | `-VarDecl {{.*}} <line:5:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | | | |   `-IntegerLiteral {{.*}} <col:16> 'int'
> 0
> +// CHECK-NEXT: |       | | | | `-DeclRefExpr {{.*}} <col:3> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | | |-ImplicitParamDecl {{.*}} <line:4:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-parallel-for.c:4:9) *const restrict'
> +// CHECK-NEXT: |       | | | |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT: |       | | | | |-CapturedRecordAttr {{.*}} <<invalid
> sloc>> Implicit
> +// CHECK-NEXT: |       | | | | `-FieldDecl {{.*}} <line:5:3> col:3
> implicit 'int'
> +// CHECK-NEXT: |       | | | |   `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       | | | `-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       | | |   |-ForStmt {{.*}} <col:3, line:6:5>
> +// CHECK-NEXT: |       | | |   | |-DeclStmt {{.*}} <line:5:8, col:17>
> +// CHECK-NEXT: |       | | |   | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | |   | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       | | |   | |-<<<NULL>>>
> +// CHECK-NEXT: |       | | |   | |-BinaryOperator {{.*}} <col:19, col:23>
> 'int' '<'
> +// CHECK-NEXT: |       | | |   | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | |   | | | `-DeclRefExpr {{.*}} <col:19> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | |   | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | |   | |   `-DeclRefExpr {{.*}} <col:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | |   | |-UnaryOperator {{.*}} <col:26, col:27>
> 'int' postfix '++'
> +// CHECK-NEXT: |       | | |   | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | |   | `-NullStmt {{.*}} <line:6:5>
> +// CHECK-NEXT: |       | | |   |-ImplicitParamDecl {{.*}} <line:4:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | |   |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | |   |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-parallel-for.c:4:9) *const restrict'
> +// CHECK-NEXT: |       | | |   `-VarDecl {{.*}} <line:5:8, col:16> col:12
> used i 'int' cinit
> +// CHECK-NEXT: |       | | |     `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       | | `-DeclRefExpr {{.*}} <col:3> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | |-AlwaysInlineAttr {{.*}} <<invalid sloc>>
> Implicit __forceinline
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <line:4:9> col:9
> implicit .global_tid. 'const int'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .part_id. 'const int *const restrict'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .privates. 'void *const restrict'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .task_t. 'void *const'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-parallel-for.c:4:9) *const restrict'
> +// CHECK-NEXT: |       | |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT: |       | | |-CapturedRecordAttr {{.*}} <<invalid sloc>>
> Implicit
> +// CHECK-NEXT: |       | | `-FieldDecl {{.*}} <line:5:3> col:3 implicit
> 'int'
> +// CHECK-NEXT: |       | |   `-OMPCaptureKindAttr {{.*}} <<invalid sloc>>
> Implicit 9
> +// CHECK-NEXT: |       | `-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc> nothrow
> +// CHECK-NEXT: |       |   |-CapturedStmt {{.*}} <col:3, line:6:5>
> +// CHECK-NEXT: |       |   | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       |   | | |-ForStmt {{.*}} <line:5:3, line:6:5>
> +// CHECK-NEXT: |       |   | | | |-DeclStmt {{.*}} <line:5:8, col:17>
> +// CHECK-NEXT: |       |   | | | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       |   | | | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       |   | | | |-<<<NULL>>>
> +// CHECK-NEXT: |       |   | | | |-BinaryOperator {{.*}} <col:19, col:23>
> 'int' '<'
> +// CHECK-NEXT: |       |   | | | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |   | | | | | `-DeclRefExpr {{.*}} <col:19> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | | | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |   | | | |   `-DeclRefExpr {{.*}} <col:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       |   | | | |-UnaryOperator {{.*}} <col:26, col:27>
> 'int' postfix '++'
> +// CHECK-NEXT: |       |   | | | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | | | `-NullStmt {{.*}} <line:6:5>
> +// CHECK-NEXT: |       |   | | |-ImplicitParamDecl {{.*}} <line:4:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |   | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |   | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-parallel-for.c:4:9) *const restrict'
> +// CHECK-NEXT: |       |   | | `-VarDecl {{.*}} <line:5:8, col:16> col:12
> used i 'int' cinit
> +// CHECK-NEXT: |       |   | |   `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       |   | `-DeclRefExpr {{.*}} <col:3> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       |   |-ImplicitParamDecl {{.*}} <line:4:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-parallel-for.c:4:9) *const restrict'
> +// CHECK-NEXT: |       |   |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT: |       |   | |-CapturedRecordAttr {{.*}} <<invalid sloc>>
> Implicit
> +// CHECK-NEXT: |       |   | `-FieldDecl {{.*}} <line:5:3> col:3 implicit
> 'int'
> +// CHECK-NEXT: |       |   |   `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       |   `-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       |     |-ForStmt {{.*}} <col:3, line:6:5>
> +// CHECK-NEXT: |       |     | |-DeclStmt {{.*}} <line:5:8, col:17>
> +// CHECK-NEXT: |       |     | | `-VarDecl {{.*}} <col:8, col:16> col:12
> used i 'int' cinit
> +// CHECK-NEXT: |       |     | |   `-IntegerLiteral {{.*}} <col:16> 'int'
> 0
> +// CHECK-NEXT: |       |     | |-<<<NULL>>>
> +// CHECK-NEXT: |       |     | |-BinaryOperator {{.*}} <col:19, col:23>
> 'int' '<'
> +// CHECK-NEXT: |       |     | | |-ImplicitCastExpr {{.*}} <col:19> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       |     | | | `-DeclRefExpr {{.*}} <col:19> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |     | | `-ImplicitCastExpr {{.*}} <col:23> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       |     | |   `-DeclRefExpr {{.*}} <col:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       |     | |-UnaryOperator {{.*}} <col:26, col:27>
> 'int' postfix '++'
> +// CHECK-NEXT: |       |     | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |     | `-NullStmt {{.*}} <line:6:5>
> +// CHECK-NEXT: |       |     |-ImplicitParamDecl {{.*}} <line:4:9> col:9
> implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |     |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |     |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-parallel-for.c:4:9) *const restrict'
> +// CHECK-NEXT: |       |     `-VarDecl {{.*}} <line:5:8, col:16> col:12
> used i 'int' cinit
> +// CHECK-NEXT: |       |       `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       `-DeclRefExpr {{.*}} <col:3> 'int' lvalue ParmVar
> {{.*}} 'x' 'int'
> +// CHECK-NEXT: |-FunctionDecl {{.*}} <line:9:1, line:14:1> line:9:6
> test_two 'void (int, int)'
> +// CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:15, col:19> col:19 used x 'int'
> +// CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:22, col:26> col:26 used y 'int'
> +// CHECK-NEXT: | `-CompoundStmt {{.*}} <col:29, line:14:1>
> +// CHECK-NEXT: |   `-OMPTargetParallelForDirective {{.*}} <line:10:9,
> col:32>
> +// CHECK-NEXT: |     |-OMPFirstprivateClause {{.*}} <<invalid sloc>>
> <implicit>
> +// CHECK-NEXT: |     | |-DeclRefExpr {{.*}} <line:11:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |     | `-DeclRefExpr {{.*}} <line:12:25> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |     `-CapturedStmt {{.*}} <line:11:3, line:13:7>
> +// CHECK-NEXT: |       |-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc> nothrow
> +// CHECK-NEXT: |       | |-CapturedStmt {{.*}} <line:11:3, line:13:7>
> +// CHECK-NEXT: |       | | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       | | | |-CapturedStmt {{.*}} <line:11:3, line:13:7>
> +// CHECK-NEXT: |       | | | | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       | | | | | |-ForStmt {{.*}} <line:11:3, line:13:7>
> +// CHECK-NEXT: |       | | | | | | |-DeclStmt {{.*}} <line:11:8, col:17>
> +// CHECK-NEXT: |       | | | | | | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | | | | | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       | | | | | | |-<<<NULL>>>
> +// CHECK-NEXT: |       | | | | | | |-BinaryOperator {{.*}} <col:19,
> col:23> 'int' '<'
> +// CHECK-NEXT: |       | | | | | | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | | | | | | `-DeclRefExpr {{.*}} <col:19>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | | | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | | | | |   `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | | | | | |-UnaryOperator {{.*}} <col:26,
> col:27> 'int' postfix '++'
> +// CHECK-NEXT: |       | | | | | | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | | | `-ForStmt {{.*}} <line:12:5, line:13:7>
> +// CHECK-NEXT: |       | | | | | |   |-DeclStmt {{.*}} <line:12:10,
> col:19>
> +// CHECK-NEXT: |       | | | | | |   | `-VarDecl {{.*}} <col:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       | | | | | |   |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT: |       | | | | | |   |-<<<NULL>>>
> +// CHECK-NEXT: |       | | | | | |   |-BinaryOperator {{.*}} <col:21,
> col:25> 'int' '<'
> +// CHECK-NEXT: |       | | | | | |   | |-ImplicitCastExpr {{.*}} <col:21>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | | | |   | | `-DeclRefExpr {{.*}} <col:21>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | | |   | `-ImplicitCastExpr {{.*}} <col:25>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | | | |   |   `-DeclRefExpr {{.*}} <col:25>
> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | | | | | |   |-UnaryOperator {{.*}} <col:28,
> col:29> 'int' postfix '++'
> +// CHECK-NEXT: |       | | | | | |   | `-DeclRefExpr {{.*}} <col:28>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | | |   `-NullStmt {{.*}} <line:13:7>
> +// CHECK-NEXT: |       | | | | | |-ImplicitParamDecl {{.*}} <line:10:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | | | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | | | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-parallel-for.c:10:9) *const restrict'
> +// CHECK-NEXT: |       | | | | | |-VarDecl {{.*}} <line:11:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | | | | | `-IntegerLiteral {{.*}} <col:16> 'int'
> 0
> +// CHECK-NEXT: |       | | | | | `-VarDecl {{.*}} <line:12:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       | | | | |   `-IntegerLiteral {{.*}} <col:18> 'int'
> 0
> +// CHECK-NEXT: |       | | | | |-DeclRefExpr {{.*}} <line:11:3> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | | | `-DeclRefExpr {{.*}} <line:12:25> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | | | |-ImplicitParamDecl {{.*}} <line:10:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-parallel-for.c:10:9) *const restrict'
> +// CHECK-NEXT: |       | | | |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT: |       | | | | |-CapturedRecordAttr {{.*}} <<invalid
> sloc>> Implicit
> +// CHECK-NEXT: |       | | | | |-FieldDecl {{.*}} <line:11:3> col:3
> implicit 'int'
> +// CHECK-NEXT: |       | | | | | `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       | | | | `-FieldDecl {{.*}} <line:12:25> col:25
> implicit 'int'
> +// CHECK-NEXT: |       | | | |   `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       | | | `-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       | | |   |-ForStmt {{.*}} <line:11:3, line:13:7>
> +// CHECK-NEXT: |       | | |   | |-DeclStmt {{.*}} <line:11:8, col:17>
> +// CHECK-NEXT: |       | | |   | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | |   | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       | | |   | |-<<<NULL>>>
> +// CHECK-NEXT: |       | | |   | |-BinaryOperator {{.*}} <col:19, col:23>
> 'int' '<'
> +// CHECK-NEXT: |       | | |   | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | |   | | | `-DeclRefExpr {{.*}} <col:19> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | |   | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | |   | |   `-DeclRefExpr {{.*}} <col:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | |   | |-UnaryOperator {{.*}} <col:26, col:27>
> 'int' postfix '++'
> +// CHECK-NEXT: |       | | |   | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | |   | `-ForStmt {{.*}} <line:12:5, line:13:7>
> +// CHECK-NEXT: |       | | |   |   |-DeclStmt {{.*}} <line:12:10, col:19>
> +// CHECK-NEXT: |       | | |   |   | `-VarDecl {{.*}} <col:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       | | |   |   |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT: |       | | |   |   |-<<<NULL>>>
> +// CHECK-NEXT: |       | | |   |   |-BinaryOperator {{.*}} <col:21,
> col:25> 'int' '<'
> +// CHECK-NEXT: |       | | |   |   | |-ImplicitCastExpr {{.*}} <col:21>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | |   |   | | `-DeclRefExpr {{.*}} <col:21>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | |   |   | `-ImplicitCastExpr {{.*}} <col:25>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | |   |   |   `-DeclRefExpr {{.*}} <col:25>
> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | | |   |   |-UnaryOperator {{.*}} <col:28,
> col:29> 'int' postfix '++'
> +// CHECK-NEXT: |       | | |   |   | `-DeclRefExpr {{.*}} <col:28> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | |   |   `-NullStmt {{.*}} <line:13:7>
> +// CHECK-NEXT: |       | | |   |-ImplicitParamDecl {{.*}} <line:10:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | |   |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | |   |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-parallel-for.c:10:9) *const restrict'
> +// CHECK-NEXT: |       | | |   |-VarDecl {{.*}} <line:11:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | |   | `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       | | |   `-VarDecl {{.*}} <line:12:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       | | |     `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT: |       | | |-DeclRefExpr {{.*}} <line:11:3> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | `-DeclRefExpr {{.*}} <line:12:25> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | |-AlwaysInlineAttr {{.*}} <<invalid sloc>>
> Implicit __forceinline
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <line:10:9> col:9
> implicit .global_tid. 'const int'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .part_id. 'const int *const restrict'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .privates. 'void *const restrict'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .task_t. 'void *const'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-parallel-for.c:10:9) *const restrict'
> +// CHECK-NEXT: |       | |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT: |       | | |-CapturedRecordAttr {{.*}} <<invalid sloc>>
> Implicit
> +// CHECK-NEXT: |       | | |-FieldDecl {{.*}} <line:11:3> col:3 implicit
> 'int'
> +// CHECK-NEXT: |       | | | `-OMPCaptureKindAttr {{.*}} <<invalid sloc>>
> Implicit 9
> +// CHECK-NEXT: |       | | `-FieldDecl {{.*}} <line:12:25> col:25
> implicit 'int'
> +// CHECK-NEXT: |       | |   `-OMPCaptureKindAttr {{.*}} <<invalid sloc>>
> Implicit 9
> +// CHECK-NEXT: |       | `-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc> nothrow
> +// CHECK-NEXT: |       |   |-CapturedStmt {{.*}} <line:11:3, line:13:7>
> +// CHECK-NEXT: |       |   | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       |   | | |-ForStmt {{.*}} <line:11:3, line:13:7>
> +// CHECK-NEXT: |       |   | | | |-DeclStmt {{.*}} <line:11:8, col:17>
> +// CHECK-NEXT: |       |   | | | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       |   | | | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       |   | | | |-<<<NULL>>>
> +// CHECK-NEXT: |       |   | | | |-BinaryOperator {{.*}} <col:19, col:23>
> 'int' '<'
> +// CHECK-NEXT: |       |   | | | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |   | | | | | `-DeclRefExpr {{.*}} <col:19> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | | | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |   | | | |   `-DeclRefExpr {{.*}} <col:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       |   | | | |-UnaryOperator {{.*}} <col:26, col:27>
> 'int' postfix '++'
> +// CHECK-NEXT: |       |   | | | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | | | `-ForStmt {{.*}} <line:12:5, line:13:7>
> +// CHECK-NEXT: |       |   | | |   |-DeclStmt {{.*}} <line:12:10, col:19>
> +// CHECK-NEXT: |       |   | | |   | `-VarDecl {{.*}} <col:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       |   | | |   |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT: |       |   | | |   |-<<<NULL>>>
> +// CHECK-NEXT: |       |   | | |   |-BinaryOperator {{.*}} <col:21,
> col:25> 'int' '<'
> +// CHECK-NEXT: |       |   | | |   | |-ImplicitCastExpr {{.*}} <col:21>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |   | | |   | | `-DeclRefExpr {{.*}} <col:21>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | | |   | `-ImplicitCastExpr {{.*}} <col:25>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |   | | |   |   `-DeclRefExpr {{.*}} <col:25>
> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       |   | | |   |-UnaryOperator {{.*}} <col:28,
> col:29> 'int' postfix '++'
> +// CHECK-NEXT: |       |   | | |   | `-DeclRefExpr {{.*}} <col:28> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | | |   `-NullStmt {{.*}} <line:13:7>
> +// CHECK-NEXT: |       |   | | |-ImplicitParamDecl {{.*}} <line:10:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |   | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |   | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-parallel-for.c:10:9) *const restrict'
> +// CHECK-NEXT: |       |   | | |-VarDecl {{.*}} <line:11:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       |   | | | `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       |   | | `-VarDecl {{.*}} <line:12:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       |   | |   `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT: |       |   | |-DeclRefExpr {{.*}} <line:11:3> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       |   | `-DeclRefExpr {{.*}} <line:12:25> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       |   |-ImplicitParamDecl {{.*}} <line:10:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-parallel-for.c:10:9) *const restrict'
> +// CHECK-NEXT: |       |   |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT: |       |   | |-CapturedRecordAttr {{.*}} <<invalid sloc>>
> Implicit
> +// CHECK-NEXT: |       |   | |-FieldDecl {{.*}} <line:11:3> col:3
> implicit 'int'
> +// CHECK-NEXT: |       |   | | `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       |   | `-FieldDecl {{.*}} <line:12:25> col:25
> implicit 'int'
> +// CHECK-NEXT: |       |   |   `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       |   `-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       |     |-ForStmt {{.*}} <line:11:3, line:13:7>
> +// CHECK-NEXT: |       |     | |-DeclStmt {{.*}} <line:11:8, col:17>
> +// CHECK-NEXT: |       |     | | `-VarDecl {{.*}} <col:8, col:16> col:12
> used i 'int' cinit
> +// CHECK-NEXT: |       |     | |   `-IntegerLiteral {{.*}} <col:16> 'int'
> 0
> +// CHECK-NEXT: |       |     | |-<<<NULL>>>
> +// CHECK-NEXT: |       |     | |-BinaryOperator {{.*}} <col:19, col:23>
> 'int' '<'
> +// CHECK-NEXT: |       |     | | |-ImplicitCastExpr {{.*}} <col:19> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       |     | | | `-DeclRefExpr {{.*}} <col:19> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |     | | `-ImplicitCastExpr {{.*}} <col:23> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       |     | |   `-DeclRefExpr {{.*}} <col:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       |     | |-UnaryOperator {{.*}} <col:26, col:27>
> 'int' postfix '++'
> +// CHECK-NEXT: |       |     | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |     | `-ForStmt {{.*}} <line:12:5, line:13:7>
> +// CHECK-NEXT: |       |     |   |-DeclStmt {{.*}} <line:12:10, col:19>
> +// CHECK-NEXT: |       |     |   | `-VarDecl {{.*}} <col:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       |     |   |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT: |       |     |   |-<<<NULL>>>
> +// CHECK-NEXT: |       |     |   |-BinaryOperator {{.*}} <col:21, col:25>
> 'int' '<'
> +// CHECK-NEXT: |       |     |   | |-ImplicitCastExpr {{.*}} <col:21>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |     |   | | `-DeclRefExpr {{.*}} <col:21> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |     |   | `-ImplicitCastExpr {{.*}} <col:25>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |     |   |   `-DeclRefExpr {{.*}} <col:25> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       |     |   |-UnaryOperator {{.*}} <col:28, col:29>
> 'int' postfix '++'
> +// CHECK-NEXT: |       |     |   | `-DeclRefExpr {{.*}} <col:28> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |     |   `-NullStmt {{.*}} <line:13:7>
> +// CHECK-NEXT: |       |     |-ImplicitParamDecl {{.*}} <line:10:9> col:9
> implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |     |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |     |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-parallel-for.c:10:9) *const restrict'
> +// CHECK-NEXT: |       |     |-VarDecl {{.*}} <line:11:8, col:16> col:12
> used i 'int' cinit
> +// CHECK-NEXT: |       |     | `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       |     `-VarDecl {{.*}} <line:12:10, col:18> col:14
> used i 'int' cinit
> +// CHECK-NEXT: |       |       `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT: |       |-DeclRefExpr {{.*}} <line:11:3> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       `-DeclRefExpr {{.*}} <line:12:25> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |-FunctionDecl {{.*}} <line:16:1, line:21:1> line:16:6
> test_three 'void (int, int)'
> +// CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:17, col:21> col:21 used x 'int'
> +// CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:24, col:28> col:28 used y 'int'
> +// CHECK-NEXT: | `-CompoundStmt {{.*}} <col:31, line:21:1>
> +// CHECK-NEXT: |   `-OMPTargetParallelForDirective {{.*}} <line:17:9,
> col:44>
> +// CHECK-NEXT: |     |-OMPCollapseClause {{.*}} <col:33, col:43>
> +// CHECK-NEXT: |     | `-ConstantExpr {{.*}} <col:42> 'int'
> +// CHECK-NEXT: |     |   `-IntegerLiteral {{.*}} <col:42> 'int' 1
> +// CHECK-NEXT: |     |-OMPFirstprivateClause {{.*}} <<invalid sloc>>
> <implicit>
> +// CHECK-NEXT: |     | |-DeclRefExpr {{.*}} <line:18:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |     | `-DeclRefExpr {{.*}} <line:19:25> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |     `-CapturedStmt {{.*}} <line:18:3, line:20:7>
> +// CHECK-NEXT: |       |-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc> nothrow
> +// CHECK-NEXT: |       | |-CapturedStmt {{.*}} <line:18:3, line:20:7>
> +// CHECK-NEXT: |       | | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       | | | |-CapturedStmt {{.*}} <line:18:3, line:20:7>
> +// CHECK-NEXT: |       | | | | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       | | | | | |-ForStmt {{.*}} <line:18:3, line:20:7>
> +// CHECK-NEXT: |       | | | | | | |-DeclStmt {{.*}} <line:18:8, col:17>
> +// CHECK-NEXT: |       | | | | | | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | | | | | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       | | | | | | |-<<<NULL>>>
> +// CHECK-NEXT: |       | | | | | | |-BinaryOperator {{.*}} <col:19,
> col:23> 'int' '<'
> +// CHECK-NEXT: |       | | | | | | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | | | | | | `-DeclRefExpr {{.*}} <col:19>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | | | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | | | | |   `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | | | | | |-UnaryOperator {{.*}} <col:26,
> col:27> 'int' postfix '++'
> +// CHECK-NEXT: |       | | | | | | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | | | `-ForStmt {{.*}} <line:19:5, line:20:7>
> +// CHECK-NEXT: |       | | | | | |   |-DeclStmt {{.*}} <line:19:10,
> col:19>
> +// CHECK-NEXT: |       | | | | | |   | `-VarDecl {{.*}} <col:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       | | | | | |   |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT: |       | | | | | |   |-<<<NULL>>>
> +// CHECK-NEXT: |       | | | | | |   |-BinaryOperator {{.*}} <col:21,
> col:25> 'int' '<'
> +// CHECK-NEXT: |       | | | | | |   | |-ImplicitCastExpr {{.*}} <col:21>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | | | |   | | `-DeclRefExpr {{.*}} <col:21>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | | |   | `-ImplicitCastExpr {{.*}} <col:25>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | | | |   |   `-DeclRefExpr {{.*}} <col:25>
> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | | | | | |   |-UnaryOperator {{.*}} <col:28,
> col:29> 'int' postfix '++'
> +// CHECK-NEXT: |       | | | | | |   | `-DeclRefExpr {{.*}} <col:28>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | | |   `-NullStmt {{.*}} <line:20:7>
> +// CHECK-NEXT: |       | | | | | |-ImplicitParamDecl {{.*}} <line:17:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | | | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | | | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-parallel-for.c:17:9) *const restrict'
> +// CHECK-NEXT: |       | | | | | |-VarDecl {{.*}} <line:18:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | | | | | `-IntegerLiteral {{.*}} <col:16> 'int'
> 0
> +// CHECK-NEXT: |       | | | | | `-VarDecl {{.*}} <line:19:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       | | | | |   `-IntegerLiteral {{.*}} <col:18> 'int'
> 0
> +// CHECK-NEXT: |       | | | | |-DeclRefExpr {{.*}} <line:18:3> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | | | `-DeclRefExpr {{.*}} <line:19:25> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | | | |-ImplicitParamDecl {{.*}} <line:17:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-parallel-for.c:17:9) *const restrict'
> +// CHECK-NEXT: |       | | | |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT: |       | | | | |-CapturedRecordAttr {{.*}} <<invalid
> sloc>> Implicit
> +// CHECK-NEXT: |       | | | | |-FieldDecl {{.*}} <line:18:3> col:3
> implicit 'int'
> +// CHECK-NEXT: |       | | | | | `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       | | | | `-FieldDecl {{.*}} <line:19:25> col:25
> implicit 'int'
> +// CHECK-NEXT: |       | | | |   `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       | | | `-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       | | |   |-ForStmt {{.*}} <line:18:3, line:20:7>
> +// CHECK-NEXT: |       | | |   | |-DeclStmt {{.*}} <line:18:8, col:17>
> +// CHECK-NEXT: |       | | |   | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | |   | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       | | |   | |-<<<NULL>>>
> +// CHECK-NEXT: |       | | |   | |-BinaryOperator {{.*}} <col:19, col:23>
> 'int' '<'
> +// CHECK-NEXT: |       | | |   | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | |   | | | `-DeclRefExpr {{.*}} <col:19> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | |   | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | |   | |   `-DeclRefExpr {{.*}} <col:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | |   | |-UnaryOperator {{.*}} <col:26, col:27>
> 'int' postfix '++'
> +// CHECK-NEXT: |       | | |   | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | |   | `-ForStmt {{.*}} <line:19:5, line:20:7>
> +// CHECK-NEXT: |       | | |   |   |-DeclStmt {{.*}} <line:19:10, col:19>
> +// CHECK-NEXT: |       | | |   |   | `-VarDecl {{.*}} <col:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       | | |   |   |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT: |       | | |   |   |-<<<NULL>>>
> +// CHECK-NEXT: |       | | |   |   |-BinaryOperator {{.*}} <col:21,
> col:25> 'int' '<'
> +// CHECK-NEXT: |       | | |   |   | |-ImplicitCastExpr {{.*}} <col:21>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | |   |   | | `-DeclRefExpr {{.*}} <col:21>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | |   |   | `-ImplicitCastExpr {{.*}} <col:25>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | |   |   |   `-DeclRefExpr {{.*}} <col:25>
> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | | |   |   |-UnaryOperator {{.*}} <col:28,
> col:29> 'int' postfix '++'
> +// CHECK-NEXT: |       | | |   |   | `-DeclRefExpr {{.*}} <col:28> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | |   |   `-NullStmt {{.*}} <line:20:7>
> +// CHECK-NEXT: |       | | |   |-ImplicitParamDecl {{.*}} <line:17:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | |   |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | |   |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-parallel-for.c:17:9) *const restrict'
> +// CHECK-NEXT: |       | | |   |-VarDecl {{.*}} <line:18:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | |   | `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       | | |   `-VarDecl {{.*}} <line:19:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       | | |     `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT: |       | | |-DeclRefExpr {{.*}} <line:18:3> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | `-DeclRefExpr {{.*}} <line:19:25> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | |-AlwaysInlineAttr {{.*}} <<invalid sloc>>
> Implicit __forceinline
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <line:17:9> col:9
> implicit .global_tid. 'const int'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .part_id. 'const int *const restrict'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .privates. 'void *const restrict'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .task_t. 'void *const'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-parallel-for.c:17:9) *const restrict'
> +// CHECK-NEXT: |       | |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT: |       | | |-CapturedRecordAttr {{.*}} <<invalid sloc>>
> Implicit
> +// CHECK-NEXT: |       | | |-FieldDecl {{.*}} <line:18:3> col:3 implicit
> 'int'
> +// CHECK-NEXT: |       | | | `-OMPCaptureKindAttr {{.*}} <<invalid sloc>>
> Implicit 9
> +// CHECK-NEXT: |       | | `-FieldDecl {{.*}} <line:19:25> col:25
> implicit 'int'
> +// CHECK-NEXT: |       | |   `-OMPCaptureKindAttr {{.*}} <<invalid sloc>>
> Implicit 9
> +// CHECK-NEXT: |       | `-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc> nothrow
> +// CHECK-NEXT: |       |   |-CapturedStmt {{.*}} <line:18:3, line:20:7>
> +// CHECK-NEXT: |       |   | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       |   | | |-ForStmt {{.*}} <line:18:3, line:20:7>
> +// CHECK-NEXT: |       |   | | | |-DeclStmt {{.*}} <line:18:8, col:17>
> +// CHECK-NEXT: |       |   | | | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       |   | | | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       |   | | | |-<<<NULL>>>
> +// CHECK-NEXT: |       |   | | | |-BinaryOperator {{.*}} <col:19, col:23>
> 'int' '<'
> +// CHECK-NEXT: |       |   | | | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |   | | | | | `-DeclRefExpr {{.*}} <col:19> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | | | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |   | | | |   `-DeclRefExpr {{.*}} <col:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       |   | | | |-UnaryOperator {{.*}} <col:26, col:27>
> 'int' postfix '++'
> +// CHECK-NEXT: |       |   | | | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | | | `-ForStmt {{.*}} <line:19:5, line:20:7>
> +// CHECK-NEXT: |       |   | | |   |-DeclStmt {{.*}} <line:19:10, col:19>
> +// CHECK-NEXT: |       |   | | |   | `-VarDecl {{.*}} <col:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       |   | | |   |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT: |       |   | | |   |-<<<NULL>>>
> +// CHECK-NEXT: |       |   | | |   |-BinaryOperator {{.*}} <col:21,
> col:25> 'int' '<'
> +// CHECK-NEXT: |       |   | | |   | |-ImplicitCastExpr {{.*}} <col:21>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |   | | |   | | `-DeclRefExpr {{.*}} <col:21>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | | |   | `-ImplicitCastExpr {{.*}} <col:25>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |   | | |   |   `-DeclRefExpr {{.*}} <col:25>
> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       |   | | |   |-UnaryOperator {{.*}} <col:28,
> col:29> 'int' postfix '++'
> +// CHECK-NEXT: |       |   | | |   | `-DeclRefExpr {{.*}} <col:28> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | | |   `-NullStmt {{.*}} <line:20:7>
> +// CHECK-NEXT: |       |   | | |-ImplicitParamDecl {{.*}} <line:17:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |   | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |   | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-parallel-for.c:17:9) *const restrict'
> +// CHECK-NEXT: |       |   | | |-VarDecl {{.*}} <line:18:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       |   | | | `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       |   | | `-VarDecl {{.*}} <line:19:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       |   | |   `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT: |       |   | |-DeclRefExpr {{.*}} <line:18:3> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       |   | `-DeclRefExpr {{.*}} <line:19:25> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       |   |-ImplicitParamDecl {{.*}} <line:17:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-parallel-for.c:17:9) *const restrict'
> +// CHECK-NEXT: |       |   |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT: |       |   | |-CapturedRecordAttr {{.*}} <<invalid sloc>>
> Implicit
> +// CHECK-NEXT: |       |   | |-FieldDecl {{.*}} <line:18:3> col:3
> implicit 'int'
> +// CHECK-NEXT: |       |   | | `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       |   | `-FieldDecl {{.*}} <line:19:25> col:25
> implicit 'int'
> +// CHECK-NEXT: |       |   |   `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       |   `-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       |     |-ForStmt {{.*}} <line:18:3, line:20:7>
> +// CHECK-NEXT: |       |     | |-DeclStmt {{.*}} <line:18:8, col:17>
> +// CHECK-NEXT: |       |     | | `-VarDecl {{.*}} <col:8, col:16> col:12
> used i 'int' cinit
> +// CHECK-NEXT: |       |     | |   `-IntegerLiteral {{.*}} <col:16> 'int'
> 0
> +// CHECK-NEXT: |       |     | |-<<<NULL>>>
> +// CHECK-NEXT: |       |     | |-BinaryOperator {{.*}} <col:19, col:23>
> 'int' '<'
> +// CHECK-NEXT: |       |     | | |-ImplicitCastExpr {{.*}} <col:19> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       |     | | | `-DeclRefExpr {{.*}} <col:19> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |     | | `-ImplicitCastExpr {{.*}} <col:23> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       |     | |   `-DeclRefExpr {{.*}} <col:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       |     | |-UnaryOperator {{.*}} <col:26, col:27>
> 'int' postfix '++'
> +// CHECK-NEXT: |       |     | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |     | `-ForStmt {{.*}} <line:19:5, line:20:7>
> +// CHECK-NEXT: |       |     |   |-DeclStmt {{.*}} <line:19:10, col:19>
> +// CHECK-NEXT: |       |     |   | `-VarDecl {{.*}} <col:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       |     |   |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT: |       |     |   |-<<<NULL>>>
> +// CHECK-NEXT: |       |     |   |-BinaryOperator {{.*}} <col:21, col:25>
> 'int' '<'
> +// CHECK-NEXT: |       |     |   | |-ImplicitCastExpr {{.*}} <col:21>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |     |   | | `-DeclRefExpr {{.*}} <col:21> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |     |   | `-ImplicitCastExpr {{.*}} <col:25>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |     |   |   `-DeclRefExpr {{.*}} <col:25> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       |     |   |-UnaryOperator {{.*}} <col:28, col:29>
> 'int' postfix '++'
> +// CHECK-NEXT: |       |     |   | `-DeclRefExpr {{.*}} <col:28> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |     |   `-NullStmt {{.*}} <line:20:7>
> +// CHECK-NEXT: |       |     |-ImplicitParamDecl {{.*}} <line:17:9> col:9
> implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |     |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |     |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-parallel-for.c:17:9) *const restrict'
> +// CHECK-NEXT: |       |     |-VarDecl {{.*}} <line:18:8, col:16> col:12
> used i 'int' cinit
> +// CHECK-NEXT: |       |     | `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       |     `-VarDecl {{.*}} <line:19:10, col:18> col:14
> used i 'int' cinit
> +// CHECK-NEXT: |       |       `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT: |       |-DeclRefExpr {{.*}} <line:18:3> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       `-DeclRefExpr {{.*}} <line:19:25> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |-FunctionDecl {{.*}} <line:23:1, line:28:1> line:23:6
> test_four 'void (int, int)'
> +// CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:16, col:20> col:20 used x 'int'
> +// CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:23, col:27> col:27 used y 'int'
> +// CHECK-NEXT: | `-CompoundStmt {{.*}} <col:30, line:28:1>
> +// CHECK-NEXT: |   `-OMPTargetParallelForDirective {{.*}} <line:24:9,
> col:44>
> +// CHECK-NEXT: |     |-OMPCollapseClause {{.*}} <col:33, col:43>
> +// CHECK-NEXT: |     | `-ConstantExpr {{.*}} <col:42> 'int'
> +// CHECK-NEXT: |     |   `-IntegerLiteral {{.*}} <col:42> 'int' 2
> +// CHECK-NEXT: |     |-OMPFirstprivateClause {{.*}} <<invalid sloc>>
> <implicit>
> +// CHECK-NEXT: |     | |-DeclRefExpr {{.*}} <line:25:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |     | `-DeclRefExpr {{.*}} <line:26:25> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |     `-CapturedStmt {{.*}} <line:25:3, line:27:7>
> +// CHECK-NEXT: |       |-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc> nothrow
> +// CHECK-NEXT: |       | |-CapturedStmt {{.*}} <line:25:3, line:27:7>
> +// CHECK-NEXT: |       | | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       | | | |-CapturedStmt {{.*}} <line:25:3, line:27:7>
> +// CHECK-NEXT: |       | | | | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       | | | | | |-ForStmt {{.*}} <line:25:3, line:27:7>
> +// CHECK-NEXT: |       | | | | | | |-DeclStmt {{.*}} <line:25:8, col:17>
> +// CHECK-NEXT: |       | | | | | | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | | | | | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       | | | | | | |-<<<NULL>>>
> +// CHECK-NEXT: |       | | | | | | |-BinaryOperator {{.*}} <col:19,
> col:23> 'int' '<'
> +// CHECK-NEXT: |       | | | | | | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | | | | | | `-DeclRefExpr {{.*}} <col:19>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | | | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | | | | |   `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | | | | | |-UnaryOperator {{.*}} <col:26,
> col:27> 'int' postfix '++'
> +// CHECK-NEXT: |       | | | | | | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | | | `-ForStmt {{.*}} <line:26:5, line:27:7>
> +// CHECK-NEXT: |       | | | | | |   |-DeclStmt {{.*}} <line:26:10,
> col:19>
> +// CHECK-NEXT: |       | | | | | |   | `-VarDecl {{.*}} <col:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       | | | | | |   |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT: |       | | | | | |   |-<<<NULL>>>
> +// CHECK-NEXT: |       | | | | | |   |-BinaryOperator {{.*}} <col:21,
> col:25> 'int' '<'
> +// CHECK-NEXT: |       | | | | | |   | |-ImplicitCastExpr {{.*}} <col:21>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | | | |   | | `-DeclRefExpr {{.*}} <col:21>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | | |   | `-ImplicitCastExpr {{.*}} <col:25>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | | | |   |   `-DeclRefExpr {{.*}} <col:25>
> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | | | | | |   |-UnaryOperator {{.*}} <col:28,
> col:29> 'int' postfix '++'
> +// CHECK-NEXT: |       | | | | | |   | `-DeclRefExpr {{.*}} <col:28>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | | |   `-NullStmt {{.*}} <line:27:7>
> +// CHECK-NEXT: |       | | | | | |-ImplicitParamDecl {{.*}} <line:24:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | | | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | | | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-parallel-for.c:24:9) *const restrict'
> +// CHECK-NEXT: |       | | | | | |-VarDecl {{.*}} <line:25:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | | | | | `-IntegerLiteral {{.*}} <col:16> 'int'
> 0
> +// CHECK-NEXT: |       | | | | | `-VarDecl {{.*}} <line:26:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       | | | | |   `-IntegerLiteral {{.*}} <col:18> 'int'
> 0
> +// CHECK-NEXT: |       | | | | |-DeclRefExpr {{.*}} <line:25:3> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | | | `-DeclRefExpr {{.*}} <line:26:5> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | | | |-ImplicitParamDecl {{.*}} <line:24:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-parallel-for.c:24:9) *const restrict'
> +// CHECK-NEXT: |       | | | |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT: |       | | | | |-CapturedRecordAttr {{.*}} <<invalid
> sloc>> Implicit
> +// CHECK-NEXT: |       | | | | |-FieldDecl {{.*}} <line:25:3> col:3
> implicit 'int'
> +// CHECK-NEXT: |       | | | | | `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       | | | | `-FieldDecl {{.*}} <line:26:5> col:5
> implicit 'int'
> +// CHECK-NEXT: |       | | | |   `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       | | | `-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       | | |   |-ForStmt {{.*}} <line:25:3, line:27:7>
> +// CHECK-NEXT: |       | | |   | |-DeclStmt {{.*}} <line:25:8, col:17>
> +// CHECK-NEXT: |       | | |   | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | |   | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       | | |   | |-<<<NULL>>>
> +// CHECK-NEXT: |       | | |   | |-BinaryOperator {{.*}} <col:19, col:23>
> 'int' '<'
> +// CHECK-NEXT: |       | | |   | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | |   | | | `-DeclRefExpr {{.*}} <col:19> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | |   | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | |   | |   `-DeclRefExpr {{.*}} <col:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | |   | |-UnaryOperator {{.*}} <col:26, col:27>
> 'int' postfix '++'
> +// CHECK-NEXT: |       | | |   | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | |   | `-ForStmt {{.*}} <line:26:5, line:27:7>
> +// CHECK-NEXT: |       | | |   |   |-DeclStmt {{.*}} <line:26:10, col:19>
> +// CHECK-NEXT: |       | | |   |   | `-VarDecl {{.*}} <col:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       | | |   |   |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT: |       | | |   |   |-<<<NULL>>>
> +// CHECK-NEXT: |       | | |   |   |-BinaryOperator {{.*}} <col:21,
> col:25> 'int' '<'
> +// CHECK-NEXT: |       | | |   |   | |-ImplicitCastExpr {{.*}} <col:21>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | |   |   | | `-DeclRefExpr {{.*}} <col:21>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | |   |   | `-ImplicitCastExpr {{.*}} <col:25>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | |   |   |   `-DeclRefExpr {{.*}} <col:25>
> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | | |   |   |-UnaryOperator {{.*}} <col:28,
> col:29> 'int' postfix '++'
> +// CHECK-NEXT: |       | | |   |   | `-DeclRefExpr {{.*}} <col:28> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | |   |   `-NullStmt {{.*}} <line:27:7>
> +// CHECK-NEXT: |       | | |   |-ImplicitParamDecl {{.*}} <line:24:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | |   |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | |   |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-parallel-for.c:24:9) *const restrict'
> +// CHECK-NEXT: |       | | |   |-VarDecl {{.*}} <line:25:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | |   | `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       | | |   `-VarDecl {{.*}} <line:26:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       | | |     `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT: |       | | |-DeclRefExpr {{.*}} <line:25:3> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | `-DeclRefExpr {{.*}} <line:26:5> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | |-AlwaysInlineAttr {{.*}} <<invalid sloc>>
> Implicit __forceinline
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <line:24:9> col:9
> implicit .global_tid. 'const int'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .part_id. 'const int *const restrict'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .privates. 'void *const restrict'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .task_t. 'void *const'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-parallel-for.c:24:9) *const restrict'
> +// CHECK-NEXT: |       | |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT: |       | | |-CapturedRecordAttr {{.*}} <<invalid sloc>>
> Implicit
> +// CHECK-NEXT: |       | | |-FieldDecl {{.*}} <line:25:3> col:3 implicit
> 'int'
> +// CHECK-NEXT: |       | | | `-OMPCaptureKindAttr {{.*}} <<invalid sloc>>
> Implicit 9
> +// CHECK-NEXT: |       | | `-FieldDecl {{.*}} <line:26:5> col:5 implicit
> 'int'
> +// CHECK-NEXT: |       | |   `-OMPCaptureKindAttr {{.*}} <<invalid sloc>>
> Implicit 9
> +// CHECK-NEXT: |       | `-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc> nothrow
> +// CHECK-NEXT: |       |   |-CapturedStmt {{.*}} <line:25:3, line:27:7>
> +// CHECK-NEXT: |       |   | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       |   | | |-ForStmt {{.*}} <line:25:3, line:27:7>
> +// CHECK-NEXT: |       |   | | | |-DeclStmt {{.*}} <line:25:8, col:17>
> +// CHECK-NEXT: |       |   | | | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       |   | | | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       |   | | | |-<<<NULL>>>
> +// CHECK-NEXT: |       |   | | | |-BinaryOperator {{.*}} <col:19, col:23>
> 'int' '<'
> +// CHECK-NEXT: |       |   | | | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |   | | | | | `-DeclRefExpr {{.*}} <col:19> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | | | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |   | | | |   `-DeclRefExpr {{.*}} <col:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       |   | | | |-UnaryOperator {{.*}} <col:26, col:27>
> 'int' postfix '++'
> +// CHECK-NEXT: |       |   | | | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | | | `-ForStmt {{.*}} <line:26:5, line:27:7>
> +// CHECK-NEXT: |       |   | | |   |-DeclStmt {{.*}} <line:26:10, col:19>
> +// CHECK-NEXT: |       |   | | |   | `-VarDecl {{.*}} <col:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       |   | | |   |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT: |       |   | | |   |-<<<NULL>>>
> +// CHECK-NEXT: |       |   | | |   |-BinaryOperator {{.*}} <col:21,
> col:25> 'int' '<'
> +// CHECK-NEXT: |       |   | | |   | |-ImplicitCastExpr {{.*}} <col:21>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |   | | |   | | `-DeclRefExpr {{.*}} <col:21>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | | |   | `-ImplicitCastExpr {{.*}} <col:25>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |   | | |   |   `-DeclRefExpr {{.*}} <col:25>
> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       |   | | |   |-UnaryOperator {{.*}} <col:28,
> col:29> 'int' postfix '++'
> +// CHECK-NEXT: |       |   | | |   | `-DeclRefExpr {{.*}} <col:28> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | | |   `-NullStmt {{.*}} <line:27:7>
> +// CHECK-NEXT: |       |   | | |-ImplicitParamDecl {{.*}} <line:24:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |   | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |   | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-parallel-for.c:24:9) *const restrict'
> +// CHECK-NEXT: |       |   | | |-VarDecl {{.*}} <line:25:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       |   | | | `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       |   | | `-VarDecl {{.*}} <line:26:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       |   | |   `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT: |       |   | |-DeclRefExpr {{.*}} <line:25:3> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       |   | `-DeclRefExpr {{.*}} <line:26:5> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       |   |-ImplicitParamDecl {{.*}} <line:24:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-parallel-for.c:24:9) *const restrict'
> +// CHECK-NEXT: |       |   |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT: |       |   | |-CapturedRecordAttr {{.*}} <<invalid sloc>>
> Implicit
> +// CHECK-NEXT: |       |   | |-FieldDecl {{.*}} <line:25:3> col:3
> implicit 'int'
> +// CHECK-NEXT: |       |   | | `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       |   | `-FieldDecl {{.*}} <line:26:5> col:5
> implicit 'int'
> +// CHECK-NEXT: |       |   |   `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       |   `-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       |     |-ForStmt {{.*}} <line:25:3, line:27:7>
> +// CHECK-NEXT: |       |     | |-DeclStmt {{.*}} <line:25:8, col:17>
> +// CHECK-NEXT: |       |     | | `-VarDecl {{.*}} <col:8, col:16> col:12
> used i 'int' cinit
> +// CHECK-NEXT: |       |     | |   `-IntegerLiteral {{.*}} <col:16> 'int'
> 0
> +// CHECK-NEXT: |       |     | |-<<<NULL>>>
> +// CHECK-NEXT: |       |     | |-BinaryOperator {{.*}} <col:19, col:23>
> 'int' '<'
> +// CHECK-NEXT: |       |     | | |-ImplicitCastExpr {{.*}} <col:19> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       |     | | | `-DeclRefExpr {{.*}} <col:19> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |     | | `-ImplicitCastExpr {{.*}} <col:23> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       |     | |   `-DeclRefExpr {{.*}} <col:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       |     | |-UnaryOperator {{.*}} <col:26, col:27>
> 'int' postfix '++'
> +// CHECK-NEXT: |       |     | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |     | `-ForStmt {{.*}} <line:26:5, line:27:7>
> +// CHECK-NEXT: |       |     |   |-DeclStmt {{.*}} <line:26:10, col:19>
> +// CHECK-NEXT: |       |     |   | `-VarDecl {{.*}} <col:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       |     |   |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT: |       |     |   |-<<<NULL>>>
> +// CHECK-NEXT: |       |     |   |-BinaryOperator {{.*}} <col:21, col:25>
> 'int' '<'
> +// CHECK-NEXT: |       |     |   | |-ImplicitCastExpr {{.*}} <col:21>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |     |   | | `-DeclRefExpr {{.*}} <col:21> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |     |   | `-ImplicitCastExpr {{.*}} <col:25>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |     |   |   `-DeclRefExpr {{.*}} <col:25> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       |     |   |-UnaryOperator {{.*}} <col:28, col:29>
> 'int' postfix '++'
> +// CHECK-NEXT: |       |     |   | `-DeclRefExpr {{.*}} <col:28> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |     |   `-NullStmt {{.*}} <line:27:7>
> +// CHECK-NEXT: |       |     |-ImplicitParamDecl {{.*}} <line:24:9> col:9
> implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |     |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |     |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-parallel-for.c:24:9) *const restrict'
> +// CHECK-NEXT: |       |     |-VarDecl {{.*}} <line:25:8, col:16> col:12
> used i 'int' cinit
> +// CHECK-NEXT: |       |     | `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       |     `-VarDecl {{.*}} <line:26:10, col:18> col:14
> used i 'int' cinit
> +// CHECK-NEXT: |       |       `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT: |       |-DeclRefExpr {{.*}} <line:25:3> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       `-DeclRefExpr {{.*}} <line:26:5> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: `-FunctionDecl {{.*}} <line:30:1, line:36:1> line:30:6
> test_five 'void (int, int, int)'
> +// CHECK-NEXT:   |-ParmVarDecl {{.*}} <col:16, col:20> col:20 used x 'int'
> +// CHECK-NEXT:   |-ParmVarDecl {{.*}} <col:23, col:27> col:27 used y 'int'
> +// CHECK-NEXT:   |-ParmVarDecl {{.*}} <col:30, col:34> col:34 used z 'int'
> +// CHECK-NEXT:   `-CompoundStmt {{.*}} <col:37, line:36:1>
> +// CHECK-NEXT:     `-OMPTargetParallelForDirective {{.*}} <line:31:9,
> col:44>
> +// CHECK-NEXT:       |-OMPCollapseClause {{.*}} <col:33, col:43>
> +// CHECK-NEXT:       | `-ConstantExpr {{.*}} <col:42> 'int'
> +// CHECK-NEXT:       |   `-IntegerLiteral {{.*}} <col:42> 'int' 2
> +// CHECK-NEXT:       |-OMPFirstprivateClause {{.*}} <<invalid sloc>>
> <implicit>
> +// CHECK-NEXT:       | |-DeclRefExpr {{.*}} <line:32:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT:       | |-DeclRefExpr {{.*}} <line:33:25> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT:       | `-DeclRefExpr {{.*}} <line:34:27> 'int' lvalue
> ParmVar {{.*}} 'z' 'int'
> +// CHECK-NEXT:       `-CapturedStmt {{.*}} <line:32:3, line:35:9>
> +// CHECK-NEXT:         |-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc> nothrow
> +// CHECK-NEXT:         | |-CapturedStmt {{.*}} <line:32:3, line:35:9>
> +// CHECK-NEXT:         | | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT:         | | | |-CapturedStmt {{.*}} <line:32:3, line:35:9>
> +// CHECK-NEXT:         | | | | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT:         | | | | | |-ForStmt {{.*}} <line:32:3, line:35:9>
> +// CHECK-NEXT:         | | | | | | |-DeclStmt {{.*}} <line:32:8, col:17>
> +// CHECK-NEXT:         | | | | | | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT:         | | | | | | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT:         | | | | | | |-<<<NULL>>>
> +// CHECK-NEXT:         | | | | | | |-BinaryOperator {{.*}} <col:19,
> col:23> 'int' '<'
> +// CHECK-NEXT:         | | | | | | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         | | | | | | | | `-DeclRefExpr {{.*}} <col:19>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | | | | | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         | | | | | | |   `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT:         | | | | | | |-UnaryOperator {{.*}} <col:26,
> col:27> 'int' postfix '++'
> +// CHECK-NEXT:         | | | | | | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | | | | | `-ForStmt {{.*}} <line:33:5, line:35:9>
> +// CHECK-NEXT:         | | | | | |   |-DeclStmt {{.*}} <line:33:10,
> col:19>
> +// CHECK-NEXT:         | | | | | |   | `-VarDecl {{.*}} <col:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT:         | | | | | |   |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT:         | | | | | |   |-<<<NULL>>>
> +// CHECK-NEXT:         | | | | | |   |-BinaryOperator {{.*}} <col:21,
> col:25> 'int' '<'
> +// CHECK-NEXT:         | | | | | |   | |-ImplicitCastExpr {{.*}} <col:21>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         | | | | | |   | | `-DeclRefExpr {{.*}} <col:21>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | | | | |   | `-ImplicitCastExpr {{.*}} <col:25>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         | | | | | |   |   `-DeclRefExpr {{.*}} <col:25>
> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT:         | | | | | |   |-UnaryOperator {{.*}} <col:28,
> col:29> 'int' postfix '++'
> +// CHECK-NEXT:         | | | | | |   | `-DeclRefExpr {{.*}} <col:28>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | | | | |   `-ForStmt {{.*}} <line:34:7,
> line:35:9>
> +// CHECK-NEXT:         | | | | | |     |-DeclStmt {{.*}} <line:34:12,
> col:21>
> +// CHECK-NEXT:         | | | | | |     | `-VarDecl {{.*}} <col:12,
> col:20> col:16 used i 'int' cinit
> +// CHECK-NEXT:         | | | | | |     |   `-IntegerLiteral {{.*}}
> <col:20> 'int' 0
> +// CHECK-NEXT:         | | | | | |     |-<<<NULL>>>
> +// CHECK-NEXT:         | | | | | |     |-BinaryOperator {{.*}} <col:23,
> col:27> 'int' '<'
> +// CHECK-NEXT:         | | | | | |     | |-ImplicitCastExpr {{.*}}
> <col:23> 'int' <LValueToRValue>
> +// CHECK-NEXT:         | | | | | |     | | `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | | | | |     | `-ImplicitCastExpr {{.*}}
> <col:27> 'int' <LValueToRValue>
> +// CHECK-NEXT:         | | | | | |     |   `-DeclRefExpr {{.*}} <col:27>
> 'int' lvalue ParmVar {{.*}} 'z' 'int'
> +// CHECK-NEXT:         | | | | | |     |-UnaryOperator {{.*}} <col:30,
> col:31> 'int' postfix '++'
> +// CHECK-NEXT:         | | | | | |     | `-DeclRefExpr {{.*}} <col:30>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | | | | |     `-NullStmt {{.*}} <line:35:9>
> +// CHECK-NEXT:         | | | | | |-ImplicitParamDecl {{.*}} <line:31:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT:         | | | | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT:         | | | | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-parallel-for.c:31:9) *const restrict'
> +// CHECK-NEXT:         | | | | | |-VarDecl {{.*}} <line:32:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT:         | | | | | | `-IntegerLiteral {{.*}} <col:16> 'int'
> 0
> +// CHECK-NEXT:         | | | | | |-VarDecl {{.*}} <line:33:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT:         | | | | | | `-IntegerLiteral {{.*}} <col:18> 'int'
> 0
> +// CHECK-NEXT:         | | | | | `-VarDecl {{.*}} <line:34:12, col:20>
> col:16 used i 'int' cinit
> +// CHECK-NEXT:         | | | | |   `-IntegerLiteral {{.*}} <col:20> 'int'
> 0
> +// CHECK-NEXT:         | | | | |-DeclRefExpr {{.*}} <line:32:3> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT:         | | | | |-DeclRefExpr {{.*}} <line:33:5> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT:         | | | | `-DeclRefExpr {{.*}} <line:34:27> 'int'
> lvalue ParmVar {{.*}} 'z' 'int'
> +// CHECK-NEXT:         | | | |-ImplicitParamDecl {{.*}} <line:31:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-parallel-for.c:31:9) *const restrict'
> +// CHECK-NEXT:         | | | |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT:         | | | | |-CapturedRecordAttr {{.*}} <<invalid
> sloc>> Implicit
> +// CHECK-NEXT:         | | | | |-FieldDecl {{.*}} <line:32:3> col:3
> implicit 'int'
> +// CHECK-NEXT:         | | | | | `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT:         | | | | |-FieldDecl {{.*}} <line:33:5> col:5
> implicit 'int'
> +// CHECK-NEXT:         | | | | | `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT:         | | | | `-FieldDecl {{.*}} <line:34:27> col:27
> implicit 'int'
> +// CHECK-NEXT:         | | | |   `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT:         | | | `-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT:         | | |   |-ForStmt {{.*}} <line:32:3, line:35:9>
> +// CHECK-NEXT:         | | |   | |-DeclStmt {{.*}} <line:32:8, col:17>
> +// CHECK-NEXT:         | | |   | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT:         | | |   | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT:         | | |   | |-<<<NULL>>>
> +// CHECK-NEXT:         | | |   | |-BinaryOperator {{.*}} <col:19, col:23>
> 'int' '<'
> +// CHECK-NEXT:         | | |   | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         | | |   | | | `-DeclRefExpr {{.*}} <col:19> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | |   | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         | | |   | |   `-DeclRefExpr {{.*}} <col:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT:         | | |   | |-UnaryOperator {{.*}} <col:26, col:27>
> 'int' postfix '++'
> +// CHECK-NEXT:         | | |   | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | |   | `-ForStmt {{.*}} <line:33:5, line:35:9>
> +// CHECK-NEXT:         | | |   |   |-DeclStmt {{.*}} <line:33:10, col:19>
> +// CHECK-NEXT:         | | |   |   | `-VarDecl {{.*}} <col:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT:         | | |   |   |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT:         | | |   |   |-<<<NULL>>>
> +// CHECK-NEXT:         | | |   |   |-BinaryOperator {{.*}} <col:21,
> col:25> 'int' '<'
> +// CHECK-NEXT:         | | |   |   | |-ImplicitCastExpr {{.*}} <col:21>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         | | |   |   | | `-DeclRefExpr {{.*}} <col:21>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | |   |   | `-ImplicitCastExpr {{.*}} <col:25>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         | | |   |   |   `-DeclRefExpr {{.*}} <col:25>
> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT:         | | |   |   |-UnaryOperator {{.*}} <col:28,
> col:29> 'int' postfix '++'
> +// CHECK-NEXT:         | | |   |   | `-DeclRefExpr {{.*}} <col:28> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | |   |   `-ForStmt {{.*}} <line:34:7, line:35:9>
> +// CHECK-NEXT:         | | |   |     |-DeclStmt {{.*}} <line:34:12,
> col:21>
> +// CHECK-NEXT:         | | |   |     | `-VarDecl {{.*}} <col:12, col:20>
> col:16 used i 'int' cinit
> +// CHECK-NEXT:         | | |   |     |   `-IntegerLiteral {{.*}} <col:20>
> 'int' 0
> +// CHECK-NEXT:         | | |   |     |-<<<NULL>>>
> +// CHECK-NEXT:         | | |   |     |-BinaryOperator {{.*}} <col:23,
> col:27> 'int' '<'
> +// CHECK-NEXT:         | | |   |     | |-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         | | |   |     | | `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | |   |     | `-ImplicitCastExpr {{.*}} <col:27>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         | | |   |     |   `-DeclRefExpr {{.*}} <col:27>
> 'int' lvalue ParmVar {{.*}} 'z' 'int'
> +// CHECK-NEXT:         | | |   |     |-UnaryOperator {{.*}} <col:30,
> col:31> 'int' postfix '++'
> +// CHECK-NEXT:         | | |   |     | `-DeclRefExpr {{.*}} <col:30>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | |   |     `-NullStmt {{.*}} <line:35:9>
> +// CHECK-NEXT:         | | |   |-ImplicitParamDecl {{.*}} <line:31:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT:         | | |   |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT:         | | |   |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-parallel-for.c:31:9) *const restrict'
> +// CHECK-NEXT:         | | |   |-VarDecl {{.*}} <line:32:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT:         | | |   | `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT:         | | |   |-VarDecl {{.*}} <line:33:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT:         | | |   | `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT:         | | |   `-VarDecl {{.*}} <line:34:12, col:20>
> col:16 used i 'int' cinit
> +// CHECK-NEXT:         | | |     `-IntegerLiteral {{.*}} <col:20> 'int' 0
> +// CHECK-NEXT:         | | |-DeclRefExpr {{.*}} <line:32:3> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT:         | | |-DeclRefExpr {{.*}} <line:33:5> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT:         | | `-DeclRefExpr {{.*}} <line:34:27> 'int' lvalue
> ParmVar {{.*}} 'z' 'int'
> +// CHECK-NEXT:         | |-AlwaysInlineAttr {{.*}} <<invalid sloc>>
> Implicit __forceinline
> +// CHECK-NEXT:         | |-ImplicitParamDecl {{.*}} <line:31:9> col:9
> implicit .global_tid. 'const int'
> +// CHECK-NEXT:         | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .part_id. 'const int *const restrict'
> +// CHECK-NEXT:         | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .privates. 'void *const restrict'
> +// CHECK-NEXT:         | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)'
> +// CHECK-NEXT:         | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .task_t. 'void *const'
> +// CHECK-NEXT:         | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-parallel-for.c:31:9) *const restrict'
> +// CHECK-NEXT:         | |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT:         | | |-CapturedRecordAttr {{.*}} <<invalid sloc>>
> Implicit
> +// CHECK-NEXT:         | | |-FieldDecl {{.*}} <line:32:3> col:3 implicit
> 'int'
> +// CHECK-NEXT:         | | | `-OMPCaptureKindAttr {{.*}} <<invalid sloc>>
> Implicit 9
> +// CHECK-NEXT:         | | |-FieldDecl {{.*}} <line:33:5> col:5 implicit
> 'int'
> +// CHECK-NEXT:         | | | `-OMPCaptureKindAttr {{.*}} <<invalid sloc>>
> Implicit 9
> +// CHECK-NEXT:         | | `-FieldDecl {{.*}} <line:34:27> col:27
> implicit 'int'
> +// CHECK-NEXT:         | |   `-OMPCaptureKindAttr {{.*}} <<invalid sloc>>
> Implicit 9
> +// CHECK-NEXT:         | `-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc> nothrow
> +// CHECK-NEXT:         |   |-CapturedStmt {{.*}} <line:32:3, line:35:9>
> +// CHECK-NEXT:         |   | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT:         |   | | |-ForStmt {{.*}} <line:32:3, line:35:9>
> +// CHECK-NEXT:         |   | | | |-DeclStmt {{.*}} <line:32:8, col:17>
> +// CHECK-NEXT:         |   | | | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT:         |   | | | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT:         |   | | | |-<<<NULL>>>
> +// CHECK-NEXT:         |   | | | |-BinaryOperator {{.*}} <col:19, col:23>
> 'int' '<'
> +// CHECK-NEXT:         |   | | | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         |   | | | | | `-DeclRefExpr {{.*}} <col:19> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         |   | | | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         |   | | | |   `-DeclRefExpr {{.*}} <col:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT:         |   | | | |-UnaryOperator {{.*}} <col:26, col:27>
> 'int' postfix '++'
> +// CHECK-NEXT:         |   | | | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         |   | | | `-ForStmt {{.*}} <line:33:5, line:35:9>
> +// CHECK-NEXT:         |   | | |   |-DeclStmt {{.*}} <line:33:10, col:19>
> +// CHECK-NEXT:         |   | | |   | `-VarDecl {{.*}} <col:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT:         |   | | |   |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT:         |   | | |   |-<<<NULL>>>
> +// CHECK-NEXT:         |   | | |   |-BinaryOperator {{.*}} <col:21,
> col:25> 'int' '<'
> +// CHECK-NEXT:         |   | | |   | |-ImplicitCastExpr {{.*}} <col:21>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         |   | | |   | | `-DeclRefExpr {{.*}} <col:21>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         |   | | |   | `-ImplicitCastExpr {{.*}} <col:25>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         |   | | |   |   `-DeclRefExpr {{.*}} <col:25>
> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT:         |   | | |   |-UnaryOperator {{.*}} <col:28,
> col:29> 'int' postfix '++'
> +// CHECK-NEXT:         |   | | |   | `-DeclRefExpr {{.*}} <col:28> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         |   | | |   `-ForStmt {{.*}} <line:34:7, line:35:9>
> +// CHECK-NEXT:         |   | | |     |-DeclStmt {{.*}} <line:34:12,
> col:21>
> +// CHECK-NEXT:         |   | | |     | `-VarDecl {{.*}} <col:12, col:20>
> col:16 used i 'int' cinit
> +// CHECK-NEXT:         |   | | |     |   `-IntegerLiteral {{.*}} <col:20>
> 'int' 0
> +// CHECK-NEXT:         |   | | |     |-<<<NULL>>>
> +// CHECK-NEXT:         |   | | |     |-BinaryOperator {{.*}} <col:23,
> col:27> 'int' '<'
> +// CHECK-NEXT:         |   | | |     | |-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         |   | | |     | | `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         |   | | |     | `-ImplicitCastExpr {{.*}} <col:27>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         |   | | |     |   `-DeclRefExpr {{.*}} <col:27>
> 'int' lvalue ParmVar {{.*}} 'z' 'int'
> +// CHECK-NEXT:         |   | | |     |-UnaryOperator {{.*}} <col:30,
> col:31> 'int' postfix '++'
> +// CHECK-NEXT:         |   | | |     | `-DeclRefExpr {{.*}} <col:30>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         |   | | |     `-NullStmt {{.*}} <line:35:9>
> +// CHECK-NEXT:         |   | | |-ImplicitParamDecl {{.*}} <line:31:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT:         |   | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT:         |   | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-parallel-for.c:31:9) *const restrict'
> +// CHECK-NEXT:         |   | | |-VarDecl {{.*}} <line:32:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT:         |   | | | `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT:         |   | | |-VarDecl {{.*}} <line:33:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT:         |   | | | `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT:         |   | | `-VarDecl {{.*}} <line:34:12, col:20>
> col:16 used i 'int' cinit
> +// CHECK-NEXT:         |   | |   `-IntegerLiteral {{.*}} <col:20> 'int' 0
> +// CHECK-NEXT:         |   | |-DeclRefExpr {{.*}} <line:32:3> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT:         |   | |-DeclRefExpr {{.*}} <line:33:5> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT:         |   | `-DeclRefExpr {{.*}} <line:34:27> 'int'
> lvalue ParmVar {{.*}} 'z' 'int'
> +// CHECK-NEXT:         |   |-ImplicitParamDecl {{.*}} <line:31:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-parallel-for.c:31:9) *const restrict'
> +// CHECK-NEXT:         |   |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT:         |   | |-CapturedRecordAttr {{.*}} <<invalid sloc>>
> Implicit
> +// CHECK-NEXT:         |   | |-FieldDecl {{.*}} <line:32:3> col:3
> implicit 'int'
> +// CHECK-NEXT:         |   | | `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT:         |   | |-FieldDecl {{.*}} <line:33:5> col:5
> implicit 'int'
> +// CHECK-NEXT:         |   | | `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT:         |   | `-FieldDecl {{.*}} <line:34:27> col:27
> implicit 'int'
> +// CHECK-NEXT:         |   |   `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT:         |   `-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT:         |     |-ForStmt {{.*}} <line:32:3, line:35:9>
> +// CHECK-NEXT:         |     | |-DeclStmt {{.*}} <line:32:8, col:17>
> +// CHECK-NEXT:         |     | | `-VarDecl {{.*}} <col:8, col:16> col:12
> used i 'int' cinit
> +// CHECK-NEXT:         |     | |   `-IntegerLiteral {{.*}} <col:16> 'int'
> 0
> +// CHECK-NEXT:         |     | |-<<<NULL>>>
> +// CHECK-NEXT:         |     | |-BinaryOperator {{.*}} <col:19, col:23>
> 'int' '<'
> +// CHECK-NEXT:         |     | | |-ImplicitCastExpr {{.*}} <col:19> 'int'
> <LValueToRValue>
> +// CHECK-NEXT:         |     | | | `-DeclRefExpr {{.*}} <col:19> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         |     | | `-ImplicitCastExpr {{.*}} <col:23> 'int'
> <LValueToRValue>
> +// CHECK-NEXT:         |     | |   `-DeclRefExpr {{.*}} <col:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT:         |     | |-UnaryOperator {{.*}} <col:26, col:27>
> 'int' postfix '++'
> +// CHECK-NEXT:         |     | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         |     | `-ForStmt {{.*}} <line:33:5, line:35:9>
> +// CHECK-NEXT:         |     |   |-DeclStmt {{.*}} <line:33:10, col:19>
> +// CHECK-NEXT:         |     |   | `-VarDecl {{.*}} <col:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT:         |     |   |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT:         |     |   |-<<<NULL>>>
> +// CHECK-NEXT:         |     |   |-BinaryOperator {{.*}} <col:21, col:25>
> 'int' '<'
> +// CHECK-NEXT:         |     |   | |-ImplicitCastExpr {{.*}} <col:21>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         |     |   | | `-DeclRefExpr {{.*}} <col:21> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         |     |   | `-ImplicitCastExpr {{.*}} <col:25>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         |     |   |   `-DeclRefExpr {{.*}} <col:25> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT:         |     |   |-UnaryOperator {{.*}} <col:28, col:29>
> 'int' postfix '++'
> +// CHECK-NEXT:         |     |   | `-DeclRefExpr {{.*}} <col:28> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         |     |   `-ForStmt {{.*}} <line:34:7, line:35:9>
> +// CHECK-NEXT:         |     |     |-DeclStmt {{.*}} <line:34:12, col:21>
> +// CHECK-NEXT:         |     |     | `-VarDecl {{.*}} <col:12, col:20>
> col:16 used i 'int' cinit
> +// CHECK-NEXT:         |     |     |   `-IntegerLiteral {{.*}} <col:20>
> 'int' 0
> +// CHECK-NEXT:         |     |     |-<<<NULL>>>
> +// CHECK-NEXT:         |     |     |-BinaryOperator {{.*}} <col:23,
> col:27> 'int' '<'
> +// CHECK-NEXT:         |     |     | |-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         |     |     | | `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         |     |     | `-ImplicitCastExpr {{.*}} <col:27>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         |     |     |   `-DeclRefExpr {{.*}} <col:27>
> 'int' lvalue ParmVar {{.*}} 'z' 'int'
> +// CHECK-NEXT:         |     |     |-UnaryOperator {{.*}} <col:30,
> col:31> 'int' postfix '++'
> +// CHECK-NEXT:         |     |     | `-DeclRefExpr {{.*}} <col:30> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         |     |     `-NullStmt {{.*}} <line:35:9>
> +// CHECK-NEXT:         |     |-ImplicitParamDecl {{.*}} <line:31:9> col:9
> implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT:         |     |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT:         |     |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-parallel-for.c:31:9) *const restrict'
> +// CHECK-NEXT:         |     |-VarDecl {{.*}} <line:32:8, col:16> col:12
> used i 'int' cinit
> +// CHECK-NEXT:         |     | `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT:         |     |-VarDecl {{.*}} <line:33:10, col:18> col:14
> used i 'int' cinit
> +// CHECK-NEXT:         |     | `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT:         |     `-VarDecl {{.*}} <line:34:12, col:20> col:16
> used i 'int' cinit
> +// CHECK-NEXT:         |       `-IntegerLiteral {{.*}} <col:20> 'int' 0
> +// CHECK-NEXT:         |-DeclRefExpr {{.*}} <line:32:3> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT:         |-DeclRefExpr {{.*}} <line:33:5> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT:         `-DeclRefExpr {{.*}} <line:34:27> 'int' lvalue
> ParmVar {{.*}} 'z' 'int'
>
> Added: cfe/trunk/test/AST/ast-dump-openmp-target-parallel.c
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/test/AST/ast-dump-openmp-target-parallel.c?rev=356569&view=auto
>
> ==============================================================================
> --- cfe/trunk/test/AST/ast-dump-openmp-target-parallel.c (added)
> +++ cfe/trunk/test/AST/ast-dump-openmp-target-parallel.c Wed Mar 20
> 09:31:47 2019
> @@ -0,0 +1,53 @@
> +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s |
> FileCheck --match-full-lines -implicit-check-not=openmp_structured_block %s
> +
> +void test() {
> +#pragma omp target parallel
> +  ;
> +}
> +
> +// CHECK: TranslationUnitDecl {{.*}} <<invalid sloc>> <invalid sloc>
> +// CHECK: `-FunctionDecl {{.*}}
> <{{.*}}ast-dump-openmp-target-parallel.c:3:1, line:6:1> line:3:6 test 'void
> ()'
> +// CHECK-NEXT:   `-CompoundStmt {{.*}} <col:13, line:6:1>
> +// CHECK-NEXT:     `-OMPTargetParallelDirective {{.*}} <line:4:9, col:28>
> +// CHECK-NEXT:       `-CapturedStmt {{.*}} <line:5:3>
> +// CHECK-NEXT:         `-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc> nothrow
> +// CHECK-NEXT:           |-CapturedStmt {{.*}} <col:3>
> +// CHECK-NEXT:           | `-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT:           |   |-CapturedStmt {{.*}} <col:3>
> +// CHECK-NEXT:           |   | `-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT:           |   |   |-NullStmt {{.*}} <col:3>
> +// CHECK-NEXT:           |   |   |-ImplicitParamDecl {{.*}} <line:4:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT:           |   |   |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT:           |   |   `-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-parallel.c:4:9) *const restrict'
> +// CHECK-NEXT:           |   |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-parallel.c:4:9) *const restrict'
> +// CHECK-NEXT:           |   |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT:           |   | `-CapturedRecordAttr {{.*}} <<invalid
> sloc>> Implicit
> +// CHECK-NEXT:           |   `-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT:           |     |-NullStmt {{.*}} <line:5:3>
> +// CHECK-NEXT:           |     |-ImplicitParamDecl {{.*}} <line:4:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT:           |     |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT:           |     `-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-parallel.c:4:9) *const restrict'
> +// CHECK-NEXT:           |-AlwaysInlineAttr {{.*}} <<invalid sloc>>
> Implicit __forceinline
> +// CHECK-NEXT:           |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .global_tid. 'const int'
> +// CHECK-NEXT:           |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .part_id. 'const int *const restrict'
> +// CHECK-NEXT:           |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .privates. 'void *const restrict'
> +// CHECK-NEXT:           |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)'
> +// CHECK-NEXT:           |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .task_t. 'void *const'
> +// CHECK-NEXT:           |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-parallel.c:4:9) *const restrict'
> +// CHECK-NEXT:           |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT:           | `-CapturedRecordAttr {{.*}} <<invalid sloc>>
> Implicit
> +// CHECK-NEXT:           `-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc> nothrow
> +// CHECK-NEXT:             |-CapturedStmt {{.*}} <line:5:3>
> +// CHECK-NEXT:             | `-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT:             |   |-NullStmt {{.*}} <col:3>
> +// CHECK-NEXT:             |   |-ImplicitParamDecl {{.*}} <line:4:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT:             |   |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT:             |   `-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-parallel.c:4:9) *const restrict'
> +// CHECK-NEXT:             |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-parallel.c:4:9) *const restrict'
> +// CHECK-NEXT:             |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT:             | `-CapturedRecordAttr {{.*}} <<invalid sloc>>
> Implicit
> +// CHECK-NEXT:             `-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT:               |-NullStmt {{.*}} <line:5:3>
> +// CHECK-NEXT:               |-ImplicitParamDecl {{.*}} <line:4:9> col:9
> implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT:               |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT:               `-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-parallel.c:4:9) *const restrict'
>
> Added: cfe/trunk/test/AST/ast-dump-openmp-target-simd.c
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/test/AST/ast-dump-openmp-target-simd.c?rev=356569&view=auto
>
> ==============================================================================
> --- cfe/trunk/test/AST/ast-dump-openmp-target-simd.c (added)
> +++ cfe/trunk/test/AST/ast-dump-openmp-target-simd.c Wed Mar 20 09:31:47
> 2019
> @@ -0,0 +1,497 @@
> +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s |
> FileCheck --match-full-lines -implicit-check-not=openmp_structured_block %s
> +
> +void test_one(int x) {
> +#pragma omp target simd
> +  for (int i = 0; i < x; i++)
> +    ;
> +}
> +
> +void test_two(int x, int y) {
> +#pragma omp target simd
> +  for (int i = 0; i < x; i++)
> +    for (int i = 0; i < y; i++)
> +      ;
> +}
> +
> +void test_three(int x, int y) {
> +#pragma omp target simd collapse(1)
> +  for (int i = 0; i < x; i++)
> +    for (int i = 0; i < y; i++)
> +      ;
> +}
> +
> +void test_four(int x, int y) {
> +#pragma omp target simd collapse(2)
> +  for (int i = 0; i < x; i++)
> +    for (int i = 0; i < y; i++)
> +      ;
> +}
> +
> +void test_five(int x, int y, int z) {
> +#pragma omp target simd collapse(2)
> +  for (int i = 0; i < x; i++)
> +    for (int i = 0; i < y; i++)
> +      for (int i = 0; i < z; i++)
> +        ;
> +}
> +
> +// CHECK: TranslationUnitDecl {{.*}} <<invalid sloc>> <invalid sloc>
> +// CHECK: |-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-target-simd.c:3:1,
> line:7:1> line:3:6 test_one 'void (int)'
> +// CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:15, col:19> col:19 used x 'int'
> +// CHECK-NEXT: | `-CompoundStmt {{.*}} <col:22, line:7:1>
> +// CHECK-NEXT: |   `-OMPTargetSimdDirective {{.*}} <line:4:9, col:24>
> +// CHECK-NEXT: |     |-OMPFirstprivateClause {{.*}} <<invalid sloc>>
> <implicit>
> +// CHECK-NEXT: |     | `-DeclRefExpr {{.*}} <line:5:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |     `-CapturedStmt {{.*}} <col:3, line:6:5>
> +// CHECK-NEXT: |       |-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc> nothrow
> +// CHECK-NEXT: |       | |-CapturedStmt {{.*}} <line:5:3, line:6:5>
> +// CHECK-NEXT: |       | | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       | | | |-ForStmt {{.*}} <line:5:3, line:6:5>
> +// CHECK-NEXT: |       | | | | |-DeclStmt {{.*}} <line:5:8, col:17>
> +// CHECK-NEXT: |       | | | | | `-VarDecl {{.*}} <col:8, col:16> col:12
> used i 'int' cinit
> +// CHECK-NEXT: |       | | | | |   `-IntegerLiteral {{.*}} <col:16> 'int'
> 0
> +// CHECK-NEXT: |       | | | | |-<<<NULL>>>
> +// CHECK-NEXT: |       | | | | |-BinaryOperator {{.*}} <col:19, col:23>
> 'int' '<'
> +// CHECK-NEXT: |       | | | | | |-ImplicitCastExpr {{.*}} <col:19> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | | | | | | `-DeclRefExpr {{.*}} <col:19> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | | `-ImplicitCastExpr {{.*}} <col:23> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | | | | |   `-DeclRefExpr {{.*}} <col:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | | | |-UnaryOperator {{.*}} <col:26, col:27>
> 'int' postfix '++'
> +// CHECK-NEXT: |       | | | | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | `-NullStmt {{.*}} <line:6:5>
> +// CHECK-NEXT: |       | | | |-ImplicitParamDecl {{.*}} <line:4:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-simd.c:4:9) *const restrict'
> +// CHECK-NEXT: |       | | | `-VarDecl {{.*}} <line:5:8, col:16> col:12
> used i 'int' cinit
> +// CHECK-NEXT: |       | | |   `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       | | `-DeclRefExpr {{.*}} <col:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | |-AlwaysInlineAttr {{.*}} <<invalid sloc>>
> Implicit __forceinline
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <line:4:9> col:9
> implicit .global_tid. 'const int'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .part_id. 'const int *const restrict'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .privates. 'void *const restrict'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .task_t. 'void *const'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-simd.c:4:9) *const restrict'
> +// CHECK-NEXT: |       | |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT: |       | | |-CapturedRecordAttr {{.*}} <<invalid sloc>>
> Implicit
> +// CHECK-NEXT: |       | | `-FieldDecl {{.*}} <line:5:23> col:23 implicit
> 'int'
> +// CHECK-NEXT: |       | |   `-OMPCaptureKindAttr {{.*}} <<invalid sloc>>
> Implicit 9
> +// CHECK-NEXT: |       | `-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc> nothrow
> +// CHECK-NEXT: |       |   |-ForStmt {{.*}} <col:3, line:6:5>
> +// CHECK-NEXT: |       |   | |-DeclStmt {{.*}} <line:5:8, col:17>
> +// CHECK-NEXT: |       |   | | `-VarDecl {{.*}} <col:8, col:16> col:12
> used i 'int' cinit
> +// CHECK-NEXT: |       |   | |   `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       |   | |-<<<NULL>>>
> +// CHECK-NEXT: |       |   | |-BinaryOperator {{.*}} <col:19, col:23>
> 'int' '<'
> +// CHECK-NEXT: |       |   | | |-ImplicitCastExpr {{.*}} <col:19> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       |   | | | `-DeclRefExpr {{.*}} <col:19> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | | `-ImplicitCastExpr {{.*}} <col:23> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       |   | |   `-DeclRefExpr {{.*}} <col:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       |   | |-UnaryOperator {{.*}} <col:26, col:27>
> 'int' postfix '++'
> +// CHECK-NEXT: |       |   | | `-DeclRefExpr {{.*}} <col:26> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | `-NullStmt {{.*}} <line:6:5>
> +// CHECK-NEXT: |       |   |-ImplicitParamDecl {{.*}} <line:4:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-simd.c:4:9) *const restrict'
> +// CHECK-NEXT: |       |   `-VarDecl {{.*}} <line:5:8, col:16> col:12
> used i 'int' cinit
> +// CHECK-NEXT: |       |     `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       `-DeclRefExpr {{.*}} <col:23> 'int' lvalue ParmVar
> {{.*}} 'x' 'int'
> +// CHECK-NEXT: |-FunctionDecl {{.*}} <line:9:1, line:14:1> line:9:6
> test_two 'void (int, int)'
> +// CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:15, col:19> col:19 used x 'int'
> +// CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:22, col:26> col:26 used y 'int'
> +// CHECK-NEXT: | `-CompoundStmt {{.*}} <col:29, line:14:1>
> +// CHECK-NEXT: |   `-OMPTargetSimdDirective {{.*}} <line:10:9, col:24>
> +// CHECK-NEXT: |     |-OMPFirstprivateClause {{.*}} <<invalid sloc>>
> <implicit>
> +// CHECK-NEXT: |     | |-DeclRefExpr {{.*}} <line:11:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |     | `-DeclRefExpr {{.*}} <line:12:25> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |     `-CapturedStmt {{.*}} <line:11:3, line:13:7>
> +// CHECK-NEXT: |       |-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc> nothrow
> +// CHECK-NEXT: |       | |-CapturedStmt {{.*}} <line:11:3, line:13:7>
> +// CHECK-NEXT: |       | | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       | | | |-ForStmt {{.*}} <line:11:3, line:13:7>
> +// CHECK-NEXT: |       | | | | |-DeclStmt {{.*}} <line:11:8, col:17>
> +// CHECK-NEXT: |       | | | | | `-VarDecl {{.*}} <col:8, col:16> col:12
> used i 'int' cinit
> +// CHECK-NEXT: |       | | | | |   `-IntegerLiteral {{.*}} <col:16> 'int'
> 0
> +// CHECK-NEXT: |       | | | | |-<<<NULL>>>
> +// CHECK-NEXT: |       | | | | |-BinaryOperator {{.*}} <col:19, col:23>
> 'int' '<'
> +// CHECK-NEXT: |       | | | | | |-ImplicitCastExpr {{.*}} <col:19> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | | | | | | `-DeclRefExpr {{.*}} <col:19> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | | `-ImplicitCastExpr {{.*}} <col:23> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | | | | |   `-DeclRefExpr {{.*}} <col:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | | | |-UnaryOperator {{.*}} <col:26, col:27>
> 'int' postfix '++'
> +// CHECK-NEXT: |       | | | | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | `-ForStmt {{.*}} <line:12:5, line:13:7>
> +// CHECK-NEXT: |       | | | |   |-DeclStmt {{.*}} <line:12:10, col:19>
> +// CHECK-NEXT: |       | | | |   | `-VarDecl {{.*}} <col:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       | | | |   |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT: |       | | | |   |-<<<NULL>>>
> +// CHECK-NEXT: |       | | | |   |-BinaryOperator {{.*}} <col:21, col:25>
> 'int' '<'
> +// CHECK-NEXT: |       | | | |   | |-ImplicitCastExpr {{.*}} <col:21>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | |   | | `-DeclRefExpr {{.*}} <col:21> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | |   | `-ImplicitCastExpr {{.*}} <col:25>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | |   |   `-DeclRefExpr {{.*}} <col:25> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | | | |   |-UnaryOperator {{.*}} <col:28, col:29>
> 'int' postfix '++'
> +// CHECK-NEXT: |       | | | |   | `-DeclRefExpr {{.*}} <col:28> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | |   `-NullStmt {{.*}} <line:13:7>
> +// CHECK-NEXT: |       | | | |-ImplicitParamDecl {{.*}} <line:10:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-simd.c:10:9) *const restrict'
> +// CHECK-NEXT: |       | | | |-VarDecl {{.*}} <line:11:8, col:16> col:12
> used i 'int' cinit
> +// CHECK-NEXT: |       | | | | `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       | | | `-VarDecl {{.*}} <line:12:10, col:18> col:14
> used i 'int' cinit
> +// CHECK-NEXT: |       | | |   `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT: |       | | |-DeclRefExpr {{.*}} <line:11:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | `-DeclRefExpr {{.*}} <line:12:25> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | |-AlwaysInlineAttr {{.*}} <<invalid sloc>>
> Implicit __forceinline
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <line:10:9> col:9
> implicit .global_tid. 'const int'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .part_id. 'const int *const restrict'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .privates. 'void *const restrict'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .task_t. 'void *const'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-simd.c:10:9) *const restrict'
> +// CHECK-NEXT: |       | |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT: |       | | |-CapturedRecordAttr {{.*}} <<invalid sloc>>
> Implicit
> +// CHECK-NEXT: |       | | |-FieldDecl {{.*}} <line:11:23> col:23
> implicit 'int'
> +// CHECK-NEXT: |       | | | `-OMPCaptureKindAttr {{.*}} <<invalid sloc>>
> Implicit 9
> +// CHECK-NEXT: |       | | `-FieldDecl {{.*}} <line:12:25> col:25
> implicit 'int'
> +// CHECK-NEXT: |       | |   `-OMPCaptureKindAttr {{.*}} <<invalid sloc>>
> Implicit 9
> +// CHECK-NEXT: |       | `-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc> nothrow
> +// CHECK-NEXT: |       |   |-ForStmt {{.*}} <line:11:3, line:13:7>
> +// CHECK-NEXT: |       |   | |-DeclStmt {{.*}} <line:11:8, col:17>
> +// CHECK-NEXT: |       |   | | `-VarDecl {{.*}} <col:8, col:16> col:12
> used i 'int' cinit
> +// CHECK-NEXT: |       |   | |   `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       |   | |-<<<NULL>>>
> +// CHECK-NEXT: |       |   | |-BinaryOperator {{.*}} <col:19, col:23>
> 'int' '<'
> +// CHECK-NEXT: |       |   | | |-ImplicitCastExpr {{.*}} <col:19> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       |   | | | `-DeclRefExpr {{.*}} <col:19> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | | `-ImplicitCastExpr {{.*}} <col:23> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       |   | |   `-DeclRefExpr {{.*}} <col:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       |   | |-UnaryOperator {{.*}} <col:26, col:27>
> 'int' postfix '++'
> +// CHECK-NEXT: |       |   | | `-DeclRefExpr {{.*}} <col:26> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | `-ForStmt {{.*}} <line:12:5, line:13:7>
> +// CHECK-NEXT: |       |   |   |-DeclStmt {{.*}} <line:12:10, col:19>
> +// CHECK-NEXT: |       |   |   | `-VarDecl {{.*}} <col:10, col:18> col:14
> used i 'int' cinit
> +// CHECK-NEXT: |       |   |   |   `-IntegerLiteral {{.*}} <col:18> 'int'
> 0
> +// CHECK-NEXT: |       |   |   |-<<<NULL>>>
> +// CHECK-NEXT: |       |   |   |-BinaryOperator {{.*}} <col:21, col:25>
> 'int' '<'
> +// CHECK-NEXT: |       |   |   | |-ImplicitCastExpr {{.*}} <col:21> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       |   |   | | `-DeclRefExpr {{.*}} <col:21> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   |   | `-ImplicitCastExpr {{.*}} <col:25> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       |   |   |   `-DeclRefExpr {{.*}} <col:25> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       |   |   |-UnaryOperator {{.*}} <col:28, col:29>
> 'int' postfix '++'
> +// CHECK-NEXT: |       |   |   | `-DeclRefExpr {{.*}} <col:28> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   |   `-NullStmt {{.*}} <line:13:7>
> +// CHECK-NEXT: |       |   |-ImplicitParamDecl {{.*}} <line:10:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-simd.c:10:9) *const restrict'
> +// CHECK-NEXT: |       |   |-VarDecl {{.*}} <line:11:8, col:16> col:12
> used i 'int' cinit
> +// CHECK-NEXT: |       |   | `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       |   `-VarDecl {{.*}} <line:12:10, col:18> col:14
> used i 'int' cinit
> +// CHECK-NEXT: |       |     `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT: |       |-DeclRefExpr {{.*}} <line:11:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       `-DeclRefExpr {{.*}} <line:12:25> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |-FunctionDecl {{.*}} <line:16:1, line:21:1> line:16:6
> test_three 'void (int, int)'
> +// CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:17, col:21> col:21 used x 'int'
> +// CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:24, col:28> col:28 used y 'int'
> +// CHECK-NEXT: | `-CompoundStmt {{.*}} <col:31, line:21:1>
> +// CHECK-NEXT: |   `-OMPTargetSimdDirective {{.*}} <line:17:9, col:36>
> +// CHECK-NEXT: |     |-OMPCollapseClause {{.*}} <col:25, col:35>
> +// CHECK-NEXT: |     | `-ConstantExpr {{.*}} <col:34> 'int'
> +// CHECK-NEXT: |     |   `-IntegerLiteral {{.*}} <col:34> 'int' 1
> +// CHECK-NEXT: |     |-OMPFirstprivateClause {{.*}} <<invalid sloc>>
> <implicit>
> +// CHECK-NEXT: |     | |-DeclRefExpr {{.*}} <line:18:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |     | `-DeclRefExpr {{.*}} <line:19:25> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |     `-CapturedStmt {{.*}} <line:18:3, line:20:7>
> +// CHECK-NEXT: |       |-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc> nothrow
> +// CHECK-NEXT: |       | |-CapturedStmt {{.*}} <line:18:3, line:20:7>
> +// CHECK-NEXT: |       | | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       | | | |-ForStmt {{.*}} <line:18:3, line:20:7>
> +// CHECK-NEXT: |       | | | | |-DeclStmt {{.*}} <line:18:8, col:17>
> +// CHECK-NEXT: |       | | | | | `-VarDecl {{.*}} <col:8, col:16> col:12
> used i 'int' cinit
> +// CHECK-NEXT: |       | | | | |   `-IntegerLiteral {{.*}} <col:16> 'int'
> 0
> +// CHECK-NEXT: |       | | | | |-<<<NULL>>>
> +// CHECK-NEXT: |       | | | | |-BinaryOperator {{.*}} <col:19, col:23>
> 'int' '<'
> +// CHECK-NEXT: |       | | | | | |-ImplicitCastExpr {{.*}} <col:19> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | | | | | | `-DeclRefExpr {{.*}} <col:19> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | | `-ImplicitCastExpr {{.*}} <col:23> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | | | | |   `-DeclRefExpr {{.*}} <col:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | | | |-UnaryOperator {{.*}} <col:26, col:27>
> 'int' postfix '++'
> +// CHECK-NEXT: |       | | | | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | `-ForStmt {{.*}} <line:19:5, line:20:7>
> +// CHECK-NEXT: |       | | | |   |-DeclStmt {{.*}} <line:19:10, col:19>
> +// CHECK-NEXT: |       | | | |   | `-VarDecl {{.*}} <col:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       | | | |   |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT: |       | | | |   |-<<<NULL>>>
> +// CHECK-NEXT: |       | | | |   |-BinaryOperator {{.*}} <col:21, col:25>
> 'int' '<'
> +// CHECK-NEXT: |       | | | |   | |-ImplicitCastExpr {{.*}} <col:21>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | |   | | `-DeclRefExpr {{.*}} <col:21> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | |   | `-ImplicitCastExpr {{.*}} <col:25>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | |   |   `-DeclRefExpr {{.*}} <col:25> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | | | |   |-UnaryOperator {{.*}} <col:28, col:29>
> 'int' postfix '++'
> +// CHECK-NEXT: |       | | | |   | `-DeclRefExpr {{.*}} <col:28> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | |   `-NullStmt {{.*}} <line:20:7>
> +// CHECK-NEXT: |       | | | |-ImplicitParamDecl {{.*}} <line:17:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-simd.c:17:9) *const restrict'
> +// CHECK-NEXT: |       | | | |-VarDecl {{.*}} <line:18:8, col:16> col:12
> used i 'int' cinit
> +// CHECK-NEXT: |       | | | | `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       | | | `-VarDecl {{.*}} <line:19:10, col:18> col:14
> used i 'int' cinit
> +// CHECK-NEXT: |       | | |   `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT: |       | | |-DeclRefExpr {{.*}} <line:18:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | `-DeclRefExpr {{.*}} <line:19:25> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | |-AlwaysInlineAttr {{.*}} <<invalid sloc>>
> Implicit __forceinline
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <line:17:9> col:9
> implicit .global_tid. 'const int'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .part_id. 'const int *const restrict'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .privates. 'void *const restrict'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .task_t. 'void *const'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-simd.c:17:9) *const restrict'
> +// CHECK-NEXT: |       | |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT: |       | | |-CapturedRecordAttr {{.*}} <<invalid sloc>>
> Implicit
> +// CHECK-NEXT: |       | | |-FieldDecl {{.*}} <line:18:23> col:23
> implicit 'int'
> +// CHECK-NEXT: |       | | | `-OMPCaptureKindAttr {{.*}} <<invalid sloc>>
> Implicit 9
> +// CHECK-NEXT: |       | | `-FieldDecl {{.*}} <line:19:25> col:25
> implicit 'int'
> +// CHECK-NEXT: |       | |   `-OMPCaptureKindAttr {{.*}} <<invalid sloc>>
> Implicit 9
> +// CHECK-NEXT: |       | `-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc> nothrow
> +// CHECK-NEXT: |       |   |-ForStmt {{.*}} <line:18:3, line:20:7>
> +// CHECK-NEXT: |       |   | |-DeclStmt {{.*}} <line:18:8, col:17>
> +// CHECK-NEXT: |       |   | | `-VarDecl {{.*}} <col:8, col:16> col:12
> used i 'int' cinit
> +// CHECK-NEXT: |       |   | |   `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       |   | |-<<<NULL>>>
> +// CHECK-NEXT: |       |   | |-BinaryOperator {{.*}} <col:19, col:23>
> 'int' '<'
> +// CHECK-NEXT: |       |   | | |-ImplicitCastExpr {{.*}} <col:19> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       |   | | | `-DeclRefExpr {{.*}} <col:19> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | | `-ImplicitCastExpr {{.*}} <col:23> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       |   | |   `-DeclRefExpr {{.*}} <col:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       |   | |-UnaryOperator {{.*}} <col:26, col:27>
> 'int' postfix '++'
> +// CHECK-NEXT: |       |   | | `-DeclRefExpr {{.*}} <col:26> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | `-ForStmt {{.*}} <line:19:5, line:20:7>
> +// CHECK-NEXT: |       |   |   |-DeclStmt {{.*}} <line:19:10, col:19>
> +// CHECK-NEXT: |       |   |   | `-VarDecl {{.*}} <col:10, col:18> col:14
> used i 'int' cinit
> +// CHECK-NEXT: |       |   |   |   `-IntegerLiteral {{.*}} <col:18> 'int'
> 0
> +// CHECK-NEXT: |       |   |   |-<<<NULL>>>
> +// CHECK-NEXT: |       |   |   |-BinaryOperator {{.*}} <col:21, col:25>
> 'int' '<'
> +// CHECK-NEXT: |       |   |   | |-ImplicitCastExpr {{.*}} <col:21> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       |   |   | | `-DeclRefExpr {{.*}} <col:21> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   |   | `-ImplicitCastExpr {{.*}} <col:25> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       |   |   |   `-DeclRefExpr {{.*}} <col:25> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       |   |   |-UnaryOperator {{.*}} <col:28, col:29>
> 'int' postfix '++'
> +// CHECK-NEXT: |       |   |   | `-DeclRefExpr {{.*}} <col:28> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   |   `-NullStmt {{.*}} <line:20:7>
> +// CHECK-NEXT: |       |   |-ImplicitParamDecl {{.*}} <line:17:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-simd.c:17:9) *const restrict'
> +// CHECK-NEXT: |       |   |-VarDecl {{.*}} <line:18:8, col:16> col:12
> used i 'int' cinit
> +// CHECK-NEXT: |       |   | `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       |   `-VarDecl {{.*}} <line:19:10, col:18> col:14
> used i 'int' cinit
> +// CHECK-NEXT: |       |     `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT: |       |-DeclRefExpr {{.*}} <line:18:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       `-DeclRefExpr {{.*}} <line:19:25> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |-FunctionDecl {{.*}} <line:23:1, line:28:1> line:23:6
> test_four 'void (int, int)'
> +// CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:16, col:20> col:20 used x 'int'
> +// CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:23, col:27> col:27 used y 'int'
> +// CHECK-NEXT: | `-CompoundStmt {{.*}} <col:30, line:28:1>
> +// CHECK-NEXT: |   `-OMPTargetSimdDirective {{.*}} <line:24:9, col:36>
> +// CHECK-NEXT: |     |-OMPCollapseClause {{.*}} <col:25, col:35>
> +// CHECK-NEXT: |     | `-ConstantExpr {{.*}} <col:34> 'int'
> +// CHECK-NEXT: |     |   `-IntegerLiteral {{.*}} <col:34> 'int' 2
> +// CHECK-NEXT: |     |-OMPFirstprivateClause {{.*}} <<invalid sloc>>
> <implicit>
> +// CHECK-NEXT: |     | |-DeclRefExpr {{.*}} <line:25:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |     | `-DeclRefExpr {{.*}} <line:26:25> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |     `-CapturedStmt {{.*}} <line:25:3, line:27:7>
> +// CHECK-NEXT: |       |-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc> nothrow
> +// CHECK-NEXT: |       | |-CapturedStmt {{.*}} <line:25:3, line:27:7>
> +// CHECK-NEXT: |       | | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       | | | |-ForStmt {{.*}} <line:25:3, line:27:7>
> +// CHECK-NEXT: |       | | | | |-DeclStmt {{.*}} <line:25:8, col:17>
> +// CHECK-NEXT: |       | | | | | `-VarDecl {{.*}} <col:8, col:16> col:12
> used i 'int' cinit
> +// CHECK-NEXT: |       | | | | |   `-IntegerLiteral {{.*}} <col:16> 'int'
> 0
> +// CHECK-NEXT: |       | | | | |-<<<NULL>>>
> +// CHECK-NEXT: |       | | | | |-BinaryOperator {{.*}} <col:19, col:23>
> 'int' '<'
> +// CHECK-NEXT: |       | | | | | |-ImplicitCastExpr {{.*}} <col:19> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | | | | | | `-DeclRefExpr {{.*}} <col:19> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | | `-ImplicitCastExpr {{.*}} <col:23> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       | | | | |   `-DeclRefExpr {{.*}} <col:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | | | |-UnaryOperator {{.*}} <col:26, col:27>
> 'int' postfix '++'
> +// CHECK-NEXT: |       | | | | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | `-ForStmt {{.*}} <line:26:5, line:27:7>
> +// CHECK-NEXT: |       | | | |   |-DeclStmt {{.*}} <line:26:10, col:19>
> +// CHECK-NEXT: |       | | | |   | `-VarDecl {{.*}} <col:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       | | | |   |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT: |       | | | |   |-<<<NULL>>>
> +// CHECK-NEXT: |       | | | |   |-BinaryOperator {{.*}} <col:21, col:25>
> 'int' '<'
> +// CHECK-NEXT: |       | | | |   | |-ImplicitCastExpr {{.*}} <col:21>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | |   | | `-DeclRefExpr {{.*}} <col:21> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | |   | `-ImplicitCastExpr {{.*}} <col:25>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | |   |   `-DeclRefExpr {{.*}} <col:25> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | | | |   |-UnaryOperator {{.*}} <col:28, col:29>
> 'int' postfix '++'
> +// CHECK-NEXT: |       | | | |   | `-DeclRefExpr {{.*}} <col:28> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | |   `-NullStmt {{.*}} <line:27:7>
> +// CHECK-NEXT: |       | | | |-ImplicitParamDecl {{.*}} <line:24:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-simd.c:24:9) *const restrict'
> +// CHECK-NEXT: |       | | | |-VarDecl {{.*}} <line:25:8, col:16> col:12
> used i 'int' cinit
> +// CHECK-NEXT: |       | | | | `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       | | | `-VarDecl {{.*}} <line:26:10, col:18> col:14
> used i 'int' cinit
> +// CHECK-NEXT: |       | | |   `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT: |       | | |-DeclRefExpr {{.*}} <line:25:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | `-DeclRefExpr {{.*}} <line:26:25> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | |-AlwaysInlineAttr {{.*}} <<invalid sloc>>
> Implicit __forceinline
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <line:24:9> col:9
> implicit .global_tid. 'const int'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .part_id. 'const int *const restrict'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .privates. 'void *const restrict'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .task_t. 'void *const'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-simd.c:24:9) *const restrict'
> +// CHECK-NEXT: |       | |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT: |       | | |-CapturedRecordAttr {{.*}} <<invalid sloc>>
> Implicit
> +// CHECK-NEXT: |       | | |-FieldDecl {{.*}} <line:25:23> col:23
> implicit 'int'
> +// CHECK-NEXT: |       | | | `-OMPCaptureKindAttr {{.*}} <<invalid sloc>>
> Implicit 9
> +// CHECK-NEXT: |       | | `-FieldDecl {{.*}} <line:26:25> col:25
> implicit 'int'
> +// CHECK-NEXT: |       | |   `-OMPCaptureKindAttr {{.*}} <<invalid sloc>>
> Implicit 9
> +// CHECK-NEXT: |       | `-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc> nothrow
> +// CHECK-NEXT: |       |   |-ForStmt {{.*}} <line:25:3, line:27:7>
> +// CHECK-NEXT: |       |   | |-DeclStmt {{.*}} <line:25:8, col:17>
> +// CHECK-NEXT: |       |   | | `-VarDecl {{.*}} <col:8, col:16> col:12
> used i 'int' cinit
> +// CHECK-NEXT: |       |   | |   `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       |   | |-<<<NULL>>>
> +// CHECK-NEXT: |       |   | |-BinaryOperator {{.*}} <col:19, col:23>
> 'int' '<'
> +// CHECK-NEXT: |       |   | | |-ImplicitCastExpr {{.*}} <col:19> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       |   | | | `-DeclRefExpr {{.*}} <col:19> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | | `-ImplicitCastExpr {{.*}} <col:23> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       |   | |   `-DeclRefExpr {{.*}} <col:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       |   | |-UnaryOperator {{.*}} <col:26, col:27>
> 'int' postfix '++'
> +// CHECK-NEXT: |       |   | | `-DeclRefExpr {{.*}} <col:26> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | `-ForStmt {{.*}} <line:26:5, line:27:7>
> +// CHECK-NEXT: |       |   |   |-DeclStmt {{.*}} <line:26:10, col:19>
> +// CHECK-NEXT: |       |   |   | `-VarDecl {{.*}} <col:10, col:18> col:14
> used i 'int' cinit
> +// CHECK-NEXT: |       |   |   |   `-IntegerLiteral {{.*}} <col:18> 'int'
> 0
> +// CHECK-NEXT: |       |   |   |-<<<NULL>>>
> +// CHECK-NEXT: |       |   |   |-BinaryOperator {{.*}} <col:21, col:25>
> 'int' '<'
> +// CHECK-NEXT: |       |   |   | |-ImplicitCastExpr {{.*}} <col:21> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       |   |   | | `-DeclRefExpr {{.*}} <col:21> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   |   | `-ImplicitCastExpr {{.*}} <col:25> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       |   |   |   `-DeclRefExpr {{.*}} <col:25> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       |   |   |-UnaryOperator {{.*}} <col:28, col:29>
> 'int' postfix '++'
> +// CHECK-NEXT: |       |   |   | `-DeclRefExpr {{.*}} <col:28> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   |   `-NullStmt {{.*}} <line:27:7>
> +// CHECK-NEXT: |       |   |-ImplicitParamDecl {{.*}} <line:24:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-simd.c:24:9) *const restrict'
> +// CHECK-NEXT: |       |   |-VarDecl {{.*}} <line:25:8, col:16> col:12
> used i 'int' cinit
> +// CHECK-NEXT: |       |   | `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       |   `-VarDecl {{.*}} <line:26:10, col:18> col:14
> used i 'int' cinit
> +// CHECK-NEXT: |       |     `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT: |       |-DeclRefExpr {{.*}} <line:25:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       `-DeclRefExpr {{.*}} <line:26:25> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: `-FunctionDecl {{.*}} <line:30:1, line:36:1> line:30:6
> test_five 'void (int, int, int)'
> +// CHECK-NEXT:   |-ParmVarDecl {{.*}} <col:16, col:20> col:20 used x 'int'
> +// CHECK-NEXT:   |-ParmVarDecl {{.*}} <col:23, col:27> col:27 used y 'int'
> +// CHECK-NEXT:   |-ParmVarDecl {{.*}} <col:30, col:34> col:34 used z 'int'
> +// CHECK-NEXT:   `-CompoundStmt {{.*}} <col:37, line:36:1>
> +// CHECK-NEXT:     `-OMPTargetSimdDirective {{.*}} <line:31:9, col:36>
> +// CHECK-NEXT:       |-OMPCollapseClause {{.*}} <col:25, col:35>
> +// CHECK-NEXT:       | `-ConstantExpr {{.*}} <col:34> 'int'
> +// CHECK-NEXT:       |   `-IntegerLiteral {{.*}} <col:34> 'int' 2
> +// CHECK-NEXT:       |-OMPFirstprivateClause {{.*}} <<invalid sloc>>
> <implicit>
> +// CHECK-NEXT:       | |-DeclRefExpr {{.*}} <line:32:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT:       | |-DeclRefExpr {{.*}} <line:33:25> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT:       | `-DeclRefExpr {{.*}} <line:34:27> 'int' lvalue
> ParmVar {{.*}} 'z' 'int'
> +// CHECK-NEXT:       `-CapturedStmt {{.*}} <line:32:3, line:35:9>
> +// CHECK-NEXT:         |-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc> nothrow
> +// CHECK-NEXT:         | |-CapturedStmt {{.*}} <line:32:3, line:35:9>
> +// CHECK-NEXT:         | | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT:         | | | |-ForStmt {{.*}} <line:32:3, line:35:9>
> +// CHECK-NEXT:         | | | | |-DeclStmt {{.*}} <line:32:8, col:17>
> +// CHECK-NEXT:         | | | | | `-VarDecl {{.*}} <col:8, col:16> col:12
> used i 'int' cinit
> +// CHECK-NEXT:         | | | | |   `-IntegerLiteral {{.*}} <col:16> 'int'
> 0
> +// CHECK-NEXT:         | | | | |-<<<NULL>>>
> +// CHECK-NEXT:         | | | | |-BinaryOperator {{.*}} <col:19, col:23>
> 'int' '<'
> +// CHECK-NEXT:         | | | | | |-ImplicitCastExpr {{.*}} <col:19> 'int'
> <LValueToRValue>
> +// CHECK-NEXT:         | | | | | | `-DeclRefExpr {{.*}} <col:19> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | | | | `-ImplicitCastExpr {{.*}} <col:23> 'int'
> <LValueToRValue>
> +// CHECK-NEXT:         | | | | |   `-DeclRefExpr {{.*}} <col:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT:         | | | | |-UnaryOperator {{.*}} <col:26, col:27>
> 'int' postfix '++'
> +// CHECK-NEXT:         | | | | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | | | `-ForStmt {{.*}} <line:33:5, line:35:9>
> +// CHECK-NEXT:         | | | |   |-DeclStmt {{.*}} <line:33:10, col:19>
> +// CHECK-NEXT:         | | | |   | `-VarDecl {{.*}} <col:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT:         | | | |   |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT:         | | | |   |-<<<NULL>>>
> +// CHECK-NEXT:         | | | |   |-BinaryOperator {{.*}} <col:21, col:25>
> 'int' '<'
> +// CHECK-NEXT:         | | | |   | |-ImplicitCastExpr {{.*}} <col:21>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         | | | |   | | `-DeclRefExpr {{.*}} <col:21> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | | |   | `-ImplicitCastExpr {{.*}} <col:25>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         | | | |   |   `-DeclRefExpr {{.*}} <col:25> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT:         | | | |   |-UnaryOperator {{.*}} <col:28, col:29>
> 'int' postfix '++'
> +// CHECK-NEXT:         | | | |   | `-DeclRefExpr {{.*}} <col:28> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | | |   `-ForStmt {{.*}} <line:34:7, line:35:9>
> +// CHECK-NEXT:         | | | |     |-DeclStmt {{.*}} <line:34:12, col:21>
> +// CHECK-NEXT:         | | | |     | `-VarDecl {{.*}} <col:12, col:20>
> col:16 used i 'int' cinit
> +// CHECK-NEXT:         | | | |     |   `-IntegerLiteral {{.*}} <col:20>
> 'int' 0
> +// CHECK-NEXT:         | | | |     |-<<<NULL>>>
> +// CHECK-NEXT:         | | | |     |-BinaryOperator {{.*}} <col:23,
> col:27> 'int' '<'
> +// CHECK-NEXT:         | | | |     | |-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         | | | |     | | `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | | |     | `-ImplicitCastExpr {{.*}} <col:27>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         | | | |     |   `-DeclRefExpr {{.*}} <col:27>
> 'int' lvalue ParmVar {{.*}} 'z' 'int'
> +// CHECK-NEXT:         | | | |     |-UnaryOperator {{.*}} <col:30,
> col:31> 'int' postfix '++'
> +// CHECK-NEXT:         | | | |     | `-DeclRefExpr {{.*}} <col:30> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | | |     `-NullStmt {{.*}} <line:35:9>
> +// CHECK-NEXT:         | | | |-ImplicitParamDecl {{.*}} <line:31:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-simd.c:31:9) *const restrict'
> +// CHECK-NEXT:         | | | |-VarDecl {{.*}} <line:32:8, col:16> col:12
> used i 'int' cinit
> +// CHECK-NEXT:         | | | | `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT:         | | | |-VarDecl {{.*}} <line:33:10, col:18> col:14
> used i 'int' cinit
> +// CHECK-NEXT:         | | | | `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT:         | | | `-VarDecl {{.*}} <line:34:12, col:20> col:16
> used i 'int' cinit
> +// CHECK-NEXT:         | | |   `-IntegerLiteral {{.*}} <col:20> 'int' 0
> +// CHECK-NEXT:         | | |-DeclRefExpr {{.*}} <line:32:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT:         | | |-DeclRefExpr {{.*}} <line:33:25> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT:         | | `-DeclRefExpr {{.*}} <line:34:27> 'int' lvalue
> ParmVar {{.*}} 'z' 'int'
> +// CHECK-NEXT:         | |-AlwaysInlineAttr {{.*}} <<invalid sloc>>
> Implicit __forceinline
> +// CHECK-NEXT:         | |-ImplicitParamDecl {{.*}} <line:31:9> col:9
> implicit .global_tid. 'const int'
> +// CHECK-NEXT:         | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .part_id. 'const int *const restrict'
> +// CHECK-NEXT:         | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .privates. 'void *const restrict'
> +// CHECK-NEXT:         | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)'
> +// CHECK-NEXT:         | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .task_t. 'void *const'
> +// CHECK-NEXT:         | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-simd.c:31:9) *const restrict'
> +// CHECK-NEXT:         | |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT:         | | |-CapturedRecordAttr {{.*}} <<invalid sloc>>
> Implicit
> +// CHECK-NEXT:         | | |-FieldDecl {{.*}} <line:32:23> col:23
> implicit 'int'
> +// CHECK-NEXT:         | | | `-OMPCaptureKindAttr {{.*}} <<invalid sloc>>
> Implicit 9
> +// CHECK-NEXT:         | | |-FieldDecl {{.*}} <line:33:25> col:25
> implicit 'int'
> +// CHECK-NEXT:         | | | `-OMPCaptureKindAttr {{.*}} <<invalid sloc>>
> Implicit 9
> +// CHECK-NEXT:         | | `-FieldDecl {{.*}} <line:34:27> col:27
> implicit 'int'
> +// CHECK-NEXT:         | |   `-OMPCaptureKindAttr {{.*}} <<invalid sloc>>
> Implicit 9
> +// CHECK-NEXT:         | `-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc> nothrow
> +// CHECK-NEXT:         |   |-ForStmt {{.*}} <line:32:3, line:35:9>
> +// CHECK-NEXT:         |   | |-DeclStmt {{.*}} <line:32:8, col:17>
> +// CHECK-NEXT:         |   | | `-VarDecl {{.*}} <col:8, col:16> col:12
> used i 'int' cinit
> +// CHECK-NEXT:         |   | |   `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT:         |   | |-<<<NULL>>>
> +// CHECK-NEXT:         |   | |-BinaryOperator {{.*}} <col:19, col:23>
> 'int' '<'
> +// CHECK-NEXT:         |   | | |-ImplicitCastExpr {{.*}} <col:19> 'int'
> <LValueToRValue>
> +// CHECK-NEXT:         |   | | | `-DeclRefExpr {{.*}} <col:19> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         |   | | `-ImplicitCastExpr {{.*}} <col:23> 'int'
> <LValueToRValue>
> +// CHECK-NEXT:         |   | |   `-DeclRefExpr {{.*}} <col:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT:         |   | |-UnaryOperator {{.*}} <col:26, col:27>
> 'int' postfix '++'
> +// CHECK-NEXT:         |   | | `-DeclRefExpr {{.*}} <col:26> 'int' lvalue
> Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         |   | `-ForStmt {{.*}} <line:33:5, line:35:9>
> +// CHECK-NEXT:         |   |   |-DeclStmt {{.*}} <line:33:10, col:19>
> +// CHECK-NEXT:         |   |   | `-VarDecl {{.*}} <col:10, col:18> col:14
> used i 'int' cinit
> +// CHECK-NEXT:         |   |   |   `-IntegerLiteral {{.*}} <col:18> 'int'
> 0
> +// CHECK-NEXT:         |   |   |-<<<NULL>>>
> +// CHECK-NEXT:         |   |   |-BinaryOperator {{.*}} <col:21, col:25>
> 'int' '<'
> +// CHECK-NEXT:         |   |   | |-ImplicitCastExpr {{.*}} <col:21> 'int'
> <LValueToRValue>
> +// CHECK-NEXT:         |   |   | | `-DeclRefExpr {{.*}} <col:21> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         |   |   | `-ImplicitCastExpr {{.*}} <col:25> 'int'
> <LValueToRValue>
> +// CHECK-NEXT:         |   |   |   `-DeclRefExpr {{.*}} <col:25> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT:         |   |   |-UnaryOperator {{.*}} <col:28, col:29>
> 'int' postfix '++'
> +// CHECK-NEXT:         |   |   | `-DeclRefExpr {{.*}} <col:28> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         |   |   `-ForStmt {{.*}} <line:34:7, line:35:9>
> +// CHECK-NEXT:         |   |     |-DeclStmt {{.*}} <line:34:12, col:21>
> +// CHECK-NEXT:         |   |     | `-VarDecl {{.*}} <col:12, col:20>
> col:16 used i 'int' cinit
> +// CHECK-NEXT:         |   |     |   `-IntegerLiteral {{.*}} <col:20>
> 'int' 0
> +// CHECK-NEXT:         |   |     |-<<<NULL>>>
> +// CHECK-NEXT:         |   |     |-BinaryOperator {{.*}} <col:23, col:27>
> 'int' '<'
> +// CHECK-NEXT:         |   |     | |-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         |   |     | | `-DeclRefExpr {{.*}} <col:23> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         |   |     | `-ImplicitCastExpr {{.*}} <col:27>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         |   |     |   `-DeclRefExpr {{.*}} <col:27> 'int'
> lvalue ParmVar {{.*}} 'z' 'int'
> +// CHECK-NEXT:         |   |     |-UnaryOperator {{.*}} <col:30, col:31>
> 'int' postfix '++'
> +// CHECK-NEXT:         |   |     | `-DeclRefExpr {{.*}} <col:30> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         |   |     `-NullStmt {{.*}} <line:35:9>
> +// CHECK-NEXT:         |   |-ImplicitParamDecl {{.*}} <line:31:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-simd.c:31:9) *const restrict'
> +// CHECK-NEXT:         |   |-VarDecl {{.*}} <line:32:8, col:16> col:12
> used i 'int' cinit
> +// CHECK-NEXT:         |   | `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT:         |   |-VarDecl {{.*}} <line:33:10, col:18> col:14
> used i 'int' cinit
> +// CHECK-NEXT:         |   | `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT:         |   `-VarDecl {{.*}} <line:34:12, col:20> col:16
> used i 'int' cinit
> +// CHECK-NEXT:         |     `-IntegerLiteral {{.*}} <col:20> 'int' 0
> +// CHECK-NEXT:         |-DeclRefExpr {{.*}} <line:32:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT:         |-DeclRefExpr {{.*}} <line:33:25> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT:         `-DeclRefExpr {{.*}} <line:34:27> 'int' lvalue
> ParmVar {{.*}} 'z' 'int'
>
> Added:
> cfe/trunk/test/AST/ast-dump-openmp-target-teams-distribute-parallel-for-simd.c
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/test/AST/ast-dump-openmp-target-teams-distribute-parallel-for-simd.c?rev=356569&view=auto
>
> ==============================================================================
> ---
> cfe/trunk/test/AST/ast-dump-openmp-target-teams-distribute-parallel-for-simd.c
> (added)
> +++
> cfe/trunk/test/AST/ast-dump-openmp-target-teams-distribute-parallel-for-simd.c
> Wed Mar 20 09:31:47 2019
> @@ -0,0 +1,1957 @@
> +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s |
> FileCheck --match-full-lines -implicit-check-not=openmp_structured_block %s
> +
> +void test_one(int x) {
> +#pragma omp target teams distribute parallel for simd
> +  for (int i = 0; i < x; i++)
> +    ;
> +}
> +
> +void test_two(int x, int y) {
> +#pragma omp target teams distribute parallel for simd
> +  for (int i = 0; i < x; i++)
> +    for (int i = 0; i < y; i++)
> +      ;
> +}
> +
> +void test_three(int x, int y) {
> +#pragma omp target teams distribute parallel for simd collapse(1)
> +  for (int i = 0; i < x; i++)
> +    for (int i = 0; i < y; i++)
> +      ;
> +}
> +
> +void test_four(int x, int y) {
> +#pragma omp target teams distribute parallel for simd collapse(2)
> +  for (int i = 0; i < x; i++)
> +    for (int i = 0; i < y; i++)
> +      ;
> +}
> +
> +void test_five(int x, int y, int z) {
> +#pragma omp target teams distribute parallel for simd collapse(2)
> +  for (int i = 0; i < x; i++)
> +    for (int i = 0; i < y; i++)
> +      for (int i = 0; i < z; i++)
> +        ;
> +}
> +
> +// CHECK: TranslationUnitDecl {{.*}} <<invalid sloc>> <invalid sloc>
> +// CHECK: |-FunctionDecl {{.*}}
> <{{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:3:1,
> line:7:1> line:3:6 test_one 'void (int)'
> +// CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:15, col:19> col:19 used x 'int'
> +// CHECK-NEXT: | `-CompoundStmt {{.*}} <col:22, line:7:1>
> +// CHECK-NEXT: |   `-OMPTargetTeamsDistributeParallelForSimdDirective
> {{.*}} <line:4:9, col:54>
> +// CHECK-NEXT: |     |-OMPFirstprivateClause {{.*}} <<invalid sloc>>
> <implicit>
> +// CHECK-NEXT: |     | `-DeclRefExpr {{.*}} <line:5:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |     `-CapturedStmt {{.*}} <col:3, line:6:5>
> +// CHECK-NEXT: |       |-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc> nothrow
> +// CHECK-NEXT: |       | |-CapturedStmt {{.*}} <line:5:3, line:6:5>
> +// CHECK-NEXT: |       | | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       | | | |-CapturedStmt {{.*}} <line:5:3, line:6:5>
> +// CHECK-NEXT: |       | | | | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       | | | | | |-CapturedStmt {{.*}} <line:5:3,
> line:6:5>
> +// CHECK-NEXT: |       | | | | | | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       | | | | | | | |-ForStmt {{.*}} <line:5:3, line:6:5>
> +// CHECK-NEXT: |       | | | | | | | | |-DeclStmt {{.*}} <line:5:8,
> col:17>
> +// CHECK-NEXT: |       | | | | | | | | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | | | | | | | |   `-IntegerLiteral {{.*}}
> <col:16> 'int' 0
> +// CHECK-NEXT: |       | | | | | | | | |-<<<NULL>>>
> +// CHECK-NEXT: |       | | | | | | | | |-BinaryOperator {{.*}} <col:19,
> col:23> 'int' '<'
> +// CHECK-NEXT: |       | | | | | | | | | |-ImplicitCastExpr {{.*}}
> <col:19> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | | | | | | | | `-DeclRefExpr {{.*}} <col:19>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | | | | | | `-ImplicitCastExpr {{.*}}
> <col:23> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | | | | | | |   `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | | | | | | | |-UnaryOperator {{.*}} <col:26,
> col:27> 'int' postfix '++'
> +// CHECK-NEXT: |       | | | | | | | | | `-DeclRefExpr {{.*}} <col:26>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | | | | | `-NullStmt {{.*}} <line:6:5>
> +// CHECK-NEXT: |       | | | | | | | |-ImplicitParamDecl {{.*}}
> <line:4:9> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | | | | | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | | | | | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit used .previous.lb. 'const unsigned long'
> +// CHECK-NEXT: |       | | | | | | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit used .previous.ub. 'const unsigned long'
> +// CHECK-NEXT: |       | | | | | | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:4:9)
> *const restrict'
> +// CHECK-NEXT: |       | | | | | | | `-VarDecl {{.*}} <line:5:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | | | | | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       | | | | | | `-DeclRefExpr {{.*}} <col:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | | | | |-ImplicitParamDecl {{.*}} <line:4:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | | | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | | | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:4:9)
> *const restrict'
> +// CHECK-NEXT: |       | | | | | |-RecordDecl {{.*}} <col:9> col:9
> implicit struct definition
> +// CHECK-NEXT: |       | | | | | | |-CapturedRecordAttr {{.*}} <<invalid
> sloc>> Implicit
> +// CHECK-NEXT: |       | | | | | | `-FieldDecl {{.*}} <line:5:23> col:23
> implicit 'int'
> +// CHECK-NEXT: |       | | | | | |   `-OMPCaptureKindAttr {{.*}}
> <<invalid sloc>> Implicit 9
> +// CHECK-NEXT: |       | | | | | `-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       | | | | |   |-ForStmt {{.*}} <col:3, line:6:5>
> +// CHECK-NEXT: |       | | | | |   | |-DeclStmt {{.*}} <line:5:8, col:17>
> +// CHECK-NEXT: |       | | | | |   | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | | | |   | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       | | | | |   | |-<<<NULL>>>
> +// CHECK-NEXT: |       | | | | |   | |-BinaryOperator {{.*}} <col:19,
> col:23> 'int' '<'
> +// CHECK-NEXT: |       | | | | |   | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | | |   | | | `-DeclRefExpr {{.*}} <col:19>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | |   | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | | |   | |   `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | | | |   | |-UnaryOperator {{.*}} <col:26,
> col:27> 'int' postfix '++'
> +// CHECK-NEXT: |       | | | | |   | | `-DeclRefExpr {{.*}} <col:26>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | |   | `-NullStmt {{.*}} <line:6:5>
> +// CHECK-NEXT: |       | | | | |   |-ImplicitParamDecl {{.*}} <line:4:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | | | |   |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | | | |   |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit used .previous.lb. 'const unsigned long'
> +// CHECK-NEXT: |       | | | | |   |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit used .previous.ub. 'const unsigned long'
> +// CHECK-NEXT: |       | | | | |   |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:4:9)
> *const restrict'
> +// CHECK-NEXT: |       | | | | |   `-VarDecl {{.*}} <line:5:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | | | |     `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       | | | | `-DeclRefExpr {{.*}} <col:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | | |-ImplicitParamDecl {{.*}} <line:4:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:4:9)
> *const restrict'
> +// CHECK-NEXT: |       | | | |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT: |       | | | | |-CapturedRecordAttr {{.*}} <<invalid
> sloc>> Implicit
> +// CHECK-NEXT: |       | | | | `-FieldDecl {{.*}} <line:5:23> col:23
> implicit 'int'
> +// CHECK-NEXT: |       | | | |   `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       | | | `-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       | | |   |-CapturedStmt {{.*}} <col:3, line:6:5>
> +// CHECK-NEXT: |       | | |   | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       | | |   | | |-ForStmt {{.*}} <line:5:3, line:6:5>
> +// CHECK-NEXT: |       | | |   | | | |-DeclStmt {{.*}} <line:5:8, col:17>
> +// CHECK-NEXT: |       | | |   | | | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | |   | | | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       | | |   | | | |-<<<NULL>>>
> +// CHECK-NEXT: |       | | |   | | | |-BinaryOperator {{.*}} <col:19,
> col:23> 'int' '<'
> +// CHECK-NEXT: |       | | |   | | | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | |   | | | | | `-DeclRefExpr {{.*}} <col:19>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | |   | | | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | |   | | | |   `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | |   | | | |-UnaryOperator {{.*}} <col:26,
> col:27> 'int' postfix '++'
> +// CHECK-NEXT: |       | | |   | | | | `-DeclRefExpr {{.*}} <col:26>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | |   | | | `-NullStmt {{.*}} <line:6:5>
> +// CHECK-NEXT: |       | | |   | | |-ImplicitParamDecl {{.*}} <line:4:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | |   | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | |   | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit used .previous.lb. 'const unsigned long'
> +// CHECK-NEXT: |       | | |   | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit used .previous.ub. 'const unsigned long'
> +// CHECK-NEXT: |       | | |   | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:4:9)
> *const restrict'
> +// CHECK-NEXT: |       | | |   | | `-VarDecl {{.*}} <line:5:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | |   | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       | | |   | `-DeclRefExpr {{.*}} <col:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | |   |-ImplicitParamDecl {{.*}} <line:4:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | |   |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | |   |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:4:9)
> *const restrict'
> +// CHECK-NEXT: |       | | |   |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT: |       | | |   | |-CapturedRecordAttr {{.*}} <<invalid
> sloc>> Implicit
> +// CHECK-NEXT: |       | | |   | `-FieldDecl {{.*}} <line:5:23> col:23
> implicit 'int'
> +// CHECK-NEXT: |       | | |   |   `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       | | |   `-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       | | |     |-ForStmt {{.*}} <col:3, line:6:5>
> +// CHECK-NEXT: |       | | |     | |-DeclStmt {{.*}} <line:5:8, col:17>
> +// CHECK-NEXT: |       | | |     | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | |     | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       | | |     | |-<<<NULL>>>
> +// CHECK-NEXT: |       | | |     | |-BinaryOperator {{.*}} <col:19,
> col:23> 'int' '<'
> +// CHECK-NEXT: |       | | |     | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | |     | | | `-DeclRefExpr {{.*}} <col:19>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | |     | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | |     | |   `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | |     | |-UnaryOperator {{.*}} <col:26,
> col:27> 'int' postfix '++'
> +// CHECK-NEXT: |       | | |     | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | |     | `-NullStmt {{.*}} <line:6:5>
> +// CHECK-NEXT: |       | | |     |-ImplicitParamDecl {{.*}} <line:4:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | |     |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | |     |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit used .previous.lb. 'const unsigned long'
> +// CHECK-NEXT: |       | | |     |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit used .previous.ub. 'const unsigned long'
> +// CHECK-NEXT: |       | | |     |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:4:9)
> *const restrict'
> +// CHECK-NEXT: |       | | |     `-VarDecl {{.*}} <line:5:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | |       `-IntegerLiteral {{.*}} <col:16> 'int'
> 0
> +// CHECK-NEXT: |       | | `-DeclRefExpr {{.*}} <col:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | |-AlwaysInlineAttr {{.*}} <<invalid sloc>>
> Implicit __forceinline
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <line:4:9> col:9
> implicit .global_tid. 'const int'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .part_id. 'const int *const restrict'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .privates. 'void *const restrict'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .task_t. 'void *const'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:4:9)
> *const restrict'
> +// CHECK-NEXT: |       | |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT: |       | | |-CapturedRecordAttr {{.*}} <<invalid sloc>>
> Implicit
> +// CHECK-NEXT: |       | | `-FieldDecl {{.*}} <line:5:23> col:23 implicit
> 'int'
> +// CHECK-NEXT: |       | |   `-OMPCaptureKindAttr {{.*}} <<invalid sloc>>
> Implicit 9
> +// CHECK-NEXT: |       | `-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc> nothrow
> +// CHECK-NEXT: |       |   |-CapturedStmt {{.*}} <col:3, line:6:5>
> +// CHECK-NEXT: |       |   | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       |   | | |-CapturedStmt {{.*}} <line:5:3, line:6:5>
> +// CHECK-NEXT: |       |   | | | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       |   | | | | |-ForStmt {{.*}} <line:5:3, line:6:5>
> +// CHECK-NEXT: |       |   | | | | | |-DeclStmt {{.*}} <line:5:8, col:17>
> +// CHECK-NEXT: |       |   | | | | | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       |   | | | | | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       |   | | | | | |-<<<NULL>>>
> +// CHECK-NEXT: |       |   | | | | | |-BinaryOperator {{.*}} <col:19,
> col:23> 'int' '<'
> +// CHECK-NEXT: |       |   | | | | | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |   | | | | | | | `-DeclRefExpr {{.*}} <col:19>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | | | | | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |   | | | | | |   `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       |   | | | | | |-UnaryOperator {{.*}} <col:26,
> col:27> 'int' postfix '++'
> +// CHECK-NEXT: |       |   | | | | | | `-DeclRefExpr {{.*}} <col:26>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | | | | | `-NullStmt {{.*}} <line:6:5>
> +// CHECK-NEXT: |       |   | | | | |-ImplicitParamDecl {{.*}} <line:4:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |   | | | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |   | | | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit used .previous.lb. 'const unsigned long'
> +// CHECK-NEXT: |       |   | | | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit used .previous.ub. 'const unsigned long'
> +// CHECK-NEXT: |       |   | | | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:4:9)
> *const restrict'
> +// CHECK-NEXT: |       |   | | | | `-VarDecl {{.*}} <line:5:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       |   | | | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       |   | | | `-DeclRefExpr {{.*}} <col:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       |   | | |-ImplicitParamDecl {{.*}} <line:4:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |   | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |   | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:4:9)
> *const restrict'
> +// CHECK-NEXT: |       |   | | |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT: |       |   | | | |-CapturedRecordAttr {{.*}} <<invalid
> sloc>> Implicit
> +// CHECK-NEXT: |       |   | | | `-FieldDecl {{.*}} <line:5:23> col:23
> implicit 'int'
> +// CHECK-NEXT: |       |   | | |   `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       |   | | `-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       |   | |   |-ForStmt {{.*}} <col:3, line:6:5>
> +// CHECK-NEXT: |       |   | |   | |-DeclStmt {{.*}} <line:5:8, col:17>
> +// CHECK-NEXT: |       |   | |   | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       |   | |   | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       |   | |   | |-<<<NULL>>>
> +// CHECK-NEXT: |       |   | |   | |-BinaryOperator {{.*}} <col:19,
> col:23> 'int' '<'
> +// CHECK-NEXT: |       |   | |   | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |   | |   | | | `-DeclRefExpr {{.*}} <col:19>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | |   | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |   | |   | |   `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       |   | |   | |-UnaryOperator {{.*}} <col:26,
> col:27> 'int' postfix '++'
> +// CHECK-NEXT: |       |   | |   | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | |   | `-NullStmt {{.*}} <line:6:5>
> +// CHECK-NEXT: |       |   | |   |-ImplicitParamDecl {{.*}} <line:4:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |   | |   |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |   | |   |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit used .previous.lb. 'const unsigned long'
> +// CHECK-NEXT: |       |   | |   |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit used .previous.ub. 'const unsigned long'
> +// CHECK-NEXT: |       |   | |   |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:4:9)
> *const restrict'
> +// CHECK-NEXT: |       |   | |   `-VarDecl {{.*}} <line:5:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       |   | |     `-IntegerLiteral {{.*}} <col:16> 'int'
> 0
> +// CHECK-NEXT: |       |   | `-DeclRefExpr {{.*}} <col:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       |   |-ImplicitParamDecl {{.*}} <line:4:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:4:9)
> *const restrict'
> +// CHECK-NEXT: |       |   |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT: |       |   | |-CapturedRecordAttr {{.*}} <<invalid sloc>>
> Implicit
> +// CHECK-NEXT: |       |   | `-FieldDecl {{.*}} <line:5:23> col:23
> implicit 'int'
> +// CHECK-NEXT: |       |   |   `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       |   `-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       |     |-CapturedStmt {{.*}} <col:3, line:6:5>
> +// CHECK-NEXT: |       |     | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       |     | | |-ForStmt {{.*}} <line:5:3, line:6:5>
> +// CHECK-NEXT: |       |     | | | |-DeclStmt {{.*}} <line:5:8, col:17>
> +// CHECK-NEXT: |       |     | | | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       |     | | | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       |     | | | |-<<<NULL>>>
> +// CHECK-NEXT: |       |     | | | |-BinaryOperator {{.*}} <col:19,
> col:23> 'int' '<'
> +// CHECK-NEXT: |       |     | | | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |     | | | | | `-DeclRefExpr {{.*}} <col:19>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |     | | | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |     | | | |   `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       |     | | | |-UnaryOperator {{.*}} <col:26,
> col:27> 'int' postfix '++'
> +// CHECK-NEXT: |       |     | | | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |     | | | `-NullStmt {{.*}} <line:6:5>
> +// CHECK-NEXT: |       |     | | |-ImplicitParamDecl {{.*}} <line:4:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |     | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |     | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit used .previous.lb. 'const unsigned long'
> +// CHECK-NEXT: |       |     | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit used .previous.ub. 'const unsigned long'
> +// CHECK-NEXT: |       |     | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:4:9)
> *const restrict'
> +// CHECK-NEXT: |       |     | | `-VarDecl {{.*}} <line:5:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       |     | |   `-IntegerLiteral {{.*}} <col:16> 'int'
> 0
> +// CHECK-NEXT: |       |     | `-DeclRefExpr {{.*}} <col:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       |     |-ImplicitParamDecl {{.*}} <line:4:9> col:9
> implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |     |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |     |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:4:9)
> *const restrict'
> +// CHECK-NEXT: |       |     |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT: |       |     | |-CapturedRecordAttr {{.*}} <<invalid
> sloc>> Implicit
> +// CHECK-NEXT: |       |     | `-FieldDecl {{.*}} <line:5:23> col:23
> implicit 'int'
> +// CHECK-NEXT: |       |     |   `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       |     `-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       |       |-ForStmt {{.*}} <col:3, line:6:5>
> +// CHECK-NEXT: |       |       | |-DeclStmt {{.*}} <line:5:8, col:17>
> +// CHECK-NEXT: |       |       | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       |       | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       |       | |-<<<NULL>>>
> +// CHECK-NEXT: |       |       | |-BinaryOperator {{.*}} <col:19, col:23>
> 'int' '<'
> +// CHECK-NEXT: |       |       | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |       | | | `-DeclRefExpr {{.*}} <col:19> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |       | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |       | |   `-DeclRefExpr {{.*}} <col:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       |       | |-UnaryOperator {{.*}} <col:26, col:27>
> 'int' postfix '++'
> +// CHECK-NEXT: |       |       | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |       | `-NullStmt {{.*}} <line:6:5>
> +// CHECK-NEXT: |       |       |-ImplicitParamDecl {{.*}} <line:4:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |       |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |       |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit used .previous.lb. 'const unsigned long'
> +// CHECK-NEXT: |       |       |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit used .previous.ub. 'const unsigned long'
> +// CHECK-NEXT: |       |       |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:4:9)
> *const restrict'
> +// CHECK-NEXT: |       |       `-VarDecl {{.*}} <line:5:8, col:16> col:12
> used i 'int' cinit
> +// CHECK-NEXT: |       |         `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       `-DeclRefExpr {{.*}} <col:23> 'int' lvalue ParmVar
> {{.*}} 'x' 'int'
> +// CHECK-NEXT: |-FunctionDecl {{.*}} <line:9:1, line:14:1> line:9:6
> test_two 'void (int, int)'
> +// CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:15, col:19> col:19 used x 'int'
> +// CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:22, col:26> col:26 used y 'int'
> +// CHECK-NEXT: | `-CompoundStmt {{.*}} <col:29, line:14:1>
> +// CHECK-NEXT: |   `-OMPTargetTeamsDistributeParallelForSimdDirective
> {{.*}} <line:10:9, col:54>
> +// CHECK-NEXT: |     |-OMPFirstprivateClause {{.*}} <<invalid sloc>>
> <implicit>
> +// CHECK-NEXT: |     | |-DeclRefExpr {{.*}} <line:11:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |     | `-DeclRefExpr {{.*}} <line:12:25> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |     `-CapturedStmt {{.*}} <line:11:3, line:13:7>
> +// CHECK-NEXT: |       |-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc> nothrow
> +// CHECK-NEXT: |       | |-CapturedStmt {{.*}} <line:11:3, line:13:7>
> +// CHECK-NEXT: |       | | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       | | | |-CapturedStmt {{.*}} <line:11:3, line:13:7>
> +// CHECK-NEXT: |       | | | | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       | | | | | |-CapturedStmt {{.*}} <line:11:3,
> line:13:7>
> +// CHECK-NEXT: |       | | | | | | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       | | | | | | | |-ForStmt {{.*}} <line:11:3,
> line:13:7>
> +// CHECK-NEXT: |       | | | | | | | | |-DeclStmt {{.*}} <line:11:8,
> col:17>
> +// CHECK-NEXT: |       | | | | | | | | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | | | | | | | |   `-IntegerLiteral {{.*}}
> <col:16> 'int' 0
> +// CHECK-NEXT: |       | | | | | | | | |-<<<NULL>>>
> +// CHECK-NEXT: |       | | | | | | | | |-BinaryOperator {{.*}} <col:19,
> col:23> 'int' '<'
> +// CHECK-NEXT: |       | | | | | | | | | |-ImplicitCastExpr {{.*}}
> <col:19> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | | | | | | | | `-DeclRefExpr {{.*}} <col:19>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | | | | | | `-ImplicitCastExpr {{.*}}
> <col:23> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | | | | | | |   `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | | | | | | | |-UnaryOperator {{.*}} <col:26,
> col:27> 'int' postfix '++'
> +// CHECK-NEXT: |       | | | | | | | | | `-DeclRefExpr {{.*}} <col:26>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | | | | | `-ForStmt {{.*}} <line:12:5,
> line:13:7>
> +// CHECK-NEXT: |       | | | | | | | |   |-DeclStmt {{.*}} <line:12:10,
> col:19>
> +// CHECK-NEXT: |       | | | | | | | |   | `-VarDecl {{.*}} <col:10,
> col:18> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       | | | | | | | |   |   `-IntegerLiteral {{.*}}
> <col:18> 'int' 0
> +// CHECK-NEXT: |       | | | | | | | |   |-<<<NULL>>>
> +// CHECK-NEXT: |       | | | | | | | |   |-BinaryOperator {{.*}} <col:21,
> col:25> 'int' '<'
> +// CHECK-NEXT: |       | | | | | | | |   | |-ImplicitCastExpr {{.*}}
> <col:21> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | | | | | |   | | `-DeclRefExpr {{.*}}
> <col:21> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | | | | |   | `-ImplicitCastExpr {{.*}}
> <col:25> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | | | | | |   |   `-DeclRefExpr {{.*}}
> <col:25> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | | | | | | | |   |-UnaryOperator {{.*}} <col:28,
> col:29> 'int' postfix '++'
> +// CHECK-NEXT: |       | | | | | | | |   | `-DeclRefExpr {{.*}} <col:28>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | | | | |   `-NullStmt {{.*}} <line:13:7>
> +// CHECK-NEXT: |       | | | | | | | |-ImplicitParamDecl {{.*}}
> <line:10:9> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | | | | | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | | | | | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit used .previous.lb. 'const unsigned long'
> +// CHECK-NEXT: |       | | | | | | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit used .previous.ub. 'const unsigned long'
> +// CHECK-NEXT: |       | | | | | | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:10:9)
> *const restrict'
> +// CHECK-NEXT: |       | | | | | | | |-VarDecl {{.*}} <line:11:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | | | | | | | `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       | | | | | | | `-VarDecl {{.*}} <line:12:10,
> col:18> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       | | | | | | |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT: |       | | | | | | |-DeclRefExpr {{.*}} <line:11:23>
> 'int' lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | | | | | `-DeclRefExpr {{.*}} <line:12:25>
> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | | | | | |-ImplicitParamDecl {{.*}} <line:10:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | | | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | | | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:10:9)
> *const restrict'
> +// CHECK-NEXT: |       | | | | | |-RecordDecl {{.*}} <col:9> col:9
> implicit struct definition
> +// CHECK-NEXT: |       | | | | | | |-CapturedRecordAttr {{.*}} <<invalid
> sloc>> Implicit
> +// CHECK-NEXT: |       | | | | | | |-FieldDecl {{.*}} <line:11:23> col:23
> implicit 'int'
> +// CHECK-NEXT: |       | | | | | | | `-OMPCaptureKindAttr {{.*}}
> <<invalid sloc>> Implicit 9
> +// CHECK-NEXT: |       | | | | | | `-FieldDecl {{.*}} <line:12:25> col:25
> implicit 'int'
> +// CHECK-NEXT: |       | | | | | |   `-OMPCaptureKindAttr {{.*}}
> <<invalid sloc>> Implicit 9
> +// CHECK-NEXT: |       | | | | | `-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       | | | | |   |-ForStmt {{.*}} <line:11:3, line:13:7>
> +// CHECK-NEXT: |       | | | | |   | |-DeclStmt {{.*}} <line:11:8, col:17>
> +// CHECK-NEXT: |       | | | | |   | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | | | |   | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       | | | | |   | |-<<<NULL>>>
> +// CHECK-NEXT: |       | | | | |   | |-BinaryOperator {{.*}} <col:19,
> col:23> 'int' '<'
> +// CHECK-NEXT: |       | | | | |   | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | | |   | | | `-DeclRefExpr {{.*}} <col:19>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | |   | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | | |   | |   `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | | | |   | |-UnaryOperator {{.*}} <col:26,
> col:27> 'int' postfix '++'
> +// CHECK-NEXT: |       | | | | |   | | `-DeclRefExpr {{.*}} <col:26>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | |   | `-ForStmt {{.*}} <line:12:5,
> line:13:7>
> +// CHECK-NEXT: |       | | | | |   |   |-DeclStmt {{.*}} <line:12:10,
> col:19>
> +// CHECK-NEXT: |       | | | | |   |   | `-VarDecl {{.*}} <col:10,
> col:18> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       | | | | |   |   |   `-IntegerLiteral {{.*}}
> <col:18> 'int' 0
> +// CHECK-NEXT: |       | | | | |   |   |-<<<NULL>>>
> +// CHECK-NEXT: |       | | | | |   |   |-BinaryOperator {{.*}} <col:21,
> col:25> 'int' '<'
> +// CHECK-NEXT: |       | | | | |   |   | |-ImplicitCastExpr {{.*}}
> <col:21> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | | |   |   | | `-DeclRefExpr {{.*}} <col:21>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | |   |   | `-ImplicitCastExpr {{.*}}
> <col:25> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | | |   |   |   `-DeclRefExpr {{.*}} <col:25>
> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | | | | |   |   |-UnaryOperator {{.*}} <col:28,
> col:29> 'int' postfix '++'
> +// CHECK-NEXT: |       | | | | |   |   | `-DeclRefExpr {{.*}} <col:28>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | |   |   `-NullStmt {{.*}} <line:13:7>
> +// CHECK-NEXT: |       | | | | |   |-ImplicitParamDecl {{.*}} <line:10:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | | | |   |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | | | |   |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit used .previous.lb. 'const unsigned long'
> +// CHECK-NEXT: |       | | | | |   |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit used .previous.ub. 'const unsigned long'
> +// CHECK-NEXT: |       | | | | |   |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:10:9)
> *const restrict'
> +// CHECK-NEXT: |       | | | | |   |-VarDecl {{.*}} <line:11:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | | | |   | `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       | | | | |   `-VarDecl {{.*}} <line:12:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       | | | | |     `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT: |       | | | | |-DeclRefExpr {{.*}} <line:11:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | | | `-DeclRefExpr {{.*}} <line:12:25> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | | | |-ImplicitParamDecl {{.*}} <line:10:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:10:9)
> *const restrict'
> +// CHECK-NEXT: |       | | | |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT: |       | | | | |-CapturedRecordAttr {{.*}} <<invalid
> sloc>> Implicit
> +// CHECK-NEXT: |       | | | | |-FieldDecl {{.*}} <line:11:23> col:23
> implicit 'int'
> +// CHECK-NEXT: |       | | | | | `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       | | | | `-FieldDecl {{.*}} <line:12:25> col:25
> implicit 'int'
> +// CHECK-NEXT: |       | | | |   `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       | | | `-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       | | |   |-CapturedStmt {{.*}} <line:11:3,
> line:13:7>
> +// CHECK-NEXT: |       | | |   | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       | | |   | | |-ForStmt {{.*}} <line:11:3, line:13:7>
> +// CHECK-NEXT: |       | | |   | | | |-DeclStmt {{.*}} <line:11:8, col:17>
> +// CHECK-NEXT: |       | | |   | | | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | |   | | | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       | | |   | | | |-<<<NULL>>>
> +// CHECK-NEXT: |       | | |   | | | |-BinaryOperator {{.*}} <col:19,
> col:23> 'int' '<'
> +// CHECK-NEXT: |       | | |   | | | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | |   | | | | | `-DeclRefExpr {{.*}} <col:19>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | |   | | | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | |   | | | |   `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | |   | | | |-UnaryOperator {{.*}} <col:26,
> col:27> 'int' postfix '++'
> +// CHECK-NEXT: |       | | |   | | | | `-DeclRefExpr {{.*}} <col:26>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | |   | | | `-ForStmt {{.*}} <line:12:5,
> line:13:7>
> +// CHECK-NEXT: |       | | |   | | |   |-DeclStmt {{.*}} <line:12:10,
> col:19>
> +// CHECK-NEXT: |       | | |   | | |   | `-VarDecl {{.*}} <col:10,
> col:18> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       | | |   | | |   |   `-IntegerLiteral {{.*}}
> <col:18> 'int' 0
> +// CHECK-NEXT: |       | | |   | | |   |-<<<NULL>>>
> +// CHECK-NEXT: |       | | |   | | |   |-BinaryOperator {{.*}} <col:21,
> col:25> 'int' '<'
> +// CHECK-NEXT: |       | | |   | | |   | |-ImplicitCastExpr {{.*}}
> <col:21> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | |   | | |   | | `-DeclRefExpr {{.*}} <col:21>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | |   | | |   | `-ImplicitCastExpr {{.*}}
> <col:25> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | |   | | |   |   `-DeclRefExpr {{.*}} <col:25>
> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | | |   | | |   |-UnaryOperator {{.*}} <col:28,
> col:29> 'int' postfix '++'
> +// CHECK-NEXT: |       | | |   | | |   | `-DeclRefExpr {{.*}} <col:28>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | |   | | |   `-NullStmt {{.*}} <line:13:7>
> +// CHECK-NEXT: |       | | |   | | |-ImplicitParamDecl {{.*}} <line:10:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | |   | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | |   | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit used .previous.lb. 'const unsigned long'
> +// CHECK-NEXT: |       | | |   | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit used .previous.ub. 'const unsigned long'
> +// CHECK-NEXT: |       | | |   | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:10:9)
> *const restrict'
> +// CHECK-NEXT: |       | | |   | | |-VarDecl {{.*}} <line:11:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | |   | | | `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       | | |   | | `-VarDecl {{.*}} <line:12:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       | | |   | |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT: |       | | |   | |-DeclRefExpr {{.*}} <line:11:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | |   | `-DeclRefExpr {{.*}} <line:12:25> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | | |   |-ImplicitParamDecl {{.*}} <line:10:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | |   |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | |   |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:10:9)
> *const restrict'
> +// CHECK-NEXT: |       | | |   |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT: |       | | |   | |-CapturedRecordAttr {{.*}} <<invalid
> sloc>> Implicit
> +// CHECK-NEXT: |       | | |   | |-FieldDecl {{.*}} <line:11:23> col:23
> implicit 'int'
> +// CHECK-NEXT: |       | | |   | | `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       | | |   | `-FieldDecl {{.*}} <line:12:25> col:25
> implicit 'int'
> +// CHECK-NEXT: |       | | |   |   `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       | | |   `-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       | | |     |-ForStmt {{.*}} <line:11:3, line:13:7>
> +// CHECK-NEXT: |       | | |     | |-DeclStmt {{.*}} <line:11:8, col:17>
> +// CHECK-NEXT: |       | | |     | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | |     | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       | | |     | |-<<<NULL>>>
> +// CHECK-NEXT: |       | | |     | |-BinaryOperator {{.*}} <col:19,
> col:23> 'int' '<'
> +// CHECK-NEXT: |       | | |     | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | |     | | | `-DeclRefExpr {{.*}} <col:19>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | |     | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | |     | |   `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | |     | |-UnaryOperator {{.*}} <col:26,
> col:27> 'int' postfix '++'
> +// CHECK-NEXT: |       | | |     | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | |     | `-ForStmt {{.*}} <line:12:5, line:13:7>
> +// CHECK-NEXT: |       | | |     |   |-DeclStmt {{.*}} <line:12:10,
> col:19>
> +// CHECK-NEXT: |       | | |     |   | `-VarDecl {{.*}} <col:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       | | |     |   |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT: |       | | |     |   |-<<<NULL>>>
> +// CHECK-NEXT: |       | | |     |   |-BinaryOperator {{.*}} <col:21,
> col:25> 'int' '<'
> +// CHECK-NEXT: |       | | |     |   | |-ImplicitCastExpr {{.*}} <col:21>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | |     |   | | `-DeclRefExpr {{.*}} <col:21>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | |     |   | `-ImplicitCastExpr {{.*}} <col:25>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | |     |   |   `-DeclRefExpr {{.*}} <col:25>
> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | | |     |   |-UnaryOperator {{.*}} <col:28,
> col:29> 'int' postfix '++'
> +// CHECK-NEXT: |       | | |     |   | `-DeclRefExpr {{.*}} <col:28>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | |     |   `-NullStmt {{.*}} <line:13:7>
> +// CHECK-NEXT: |       | | |     |-ImplicitParamDecl {{.*}} <line:10:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | |     |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | |     |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit used .previous.lb. 'const unsigned long'
> +// CHECK-NEXT: |       | | |     |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit used .previous.ub. 'const unsigned long'
> +// CHECK-NEXT: |       | | |     |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:10:9)
> *const restrict'
> +// CHECK-NEXT: |       | | |     |-VarDecl {{.*}} <line:11:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | |     | `-IntegerLiteral {{.*}} <col:16> 'int'
> 0
> +// CHECK-NEXT: |       | | |     `-VarDecl {{.*}} <line:12:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       | | |       `-IntegerLiteral {{.*}} <col:18> 'int'
> 0
> +// CHECK-NEXT: |       | | |-DeclRefExpr {{.*}} <line:11:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | `-DeclRefExpr {{.*}} <line:12:25> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | |-AlwaysInlineAttr {{.*}} <<invalid sloc>>
> Implicit __forceinline
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <line:10:9> col:9
> implicit .global_tid. 'const int'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .part_id. 'const int *const restrict'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .privates. 'void *const restrict'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .task_t. 'void *const'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:10:9)
> *const restrict'
> +// CHECK-NEXT: |       | |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT: |       | | |-CapturedRecordAttr {{.*}} <<invalid sloc>>
> Implicit
> +// CHECK-NEXT: |       | | |-FieldDecl {{.*}} <line:11:23> col:23
> implicit 'int'
> +// CHECK-NEXT: |       | | | `-OMPCaptureKindAttr {{.*}} <<invalid sloc>>
> Implicit 9
> +// CHECK-NEXT: |       | | `-FieldDecl {{.*}} <line:12:25> col:25
> implicit 'int'
> +// CHECK-NEXT: |       | |   `-OMPCaptureKindAttr {{.*}} <<invalid sloc>>
> Implicit 9
> +// CHECK-NEXT: |       | `-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc> nothrow
> +// CHECK-NEXT: |       |   |-CapturedStmt {{.*}} <line:11:3, line:13:7>
> +// CHECK-NEXT: |       |   | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       |   | | |-CapturedStmt {{.*}} <line:11:3,
> line:13:7>
> +// CHECK-NEXT: |       |   | | | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       |   | | | | |-ForStmt {{.*}} <line:11:3, line:13:7>
> +// CHECK-NEXT: |       |   | | | | | |-DeclStmt {{.*}} <line:11:8, col:17>
> +// CHECK-NEXT: |       |   | | | | | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       |   | | | | | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       |   | | | | | |-<<<NULL>>>
> +// CHECK-NEXT: |       |   | | | | | |-BinaryOperator {{.*}} <col:19,
> col:23> 'int' '<'
> +// CHECK-NEXT: |       |   | | | | | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |   | | | | | | | `-DeclRefExpr {{.*}} <col:19>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | | | | | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |   | | | | | |   `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       |   | | | | | |-UnaryOperator {{.*}} <col:26,
> col:27> 'int' postfix '++'
> +// CHECK-NEXT: |       |   | | | | | | `-DeclRefExpr {{.*}} <col:26>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | | | | | `-ForStmt {{.*}} <line:12:5,
> line:13:7>
> +// CHECK-NEXT: |       |   | | | | |   |-DeclStmt {{.*}} <line:12:10,
> col:19>
> +// CHECK-NEXT: |       |   | | | | |   | `-VarDecl {{.*}} <col:10,
> col:18> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       |   | | | | |   |   `-IntegerLiteral {{.*}}
> <col:18> 'int' 0
> +// CHECK-NEXT: |       |   | | | | |   |-<<<NULL>>>
> +// CHECK-NEXT: |       |   | | | | |   |-BinaryOperator {{.*}} <col:21,
> col:25> 'int' '<'
> +// CHECK-NEXT: |       |   | | | | |   | |-ImplicitCastExpr {{.*}}
> <col:21> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |   | | | | |   | | `-DeclRefExpr {{.*}} <col:21>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | | | | |   | `-ImplicitCastExpr {{.*}}
> <col:25> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |   | | | | |   |   `-DeclRefExpr {{.*}} <col:25>
> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       |   | | | | |   |-UnaryOperator {{.*}} <col:28,
> col:29> 'int' postfix '++'
> +// CHECK-NEXT: |       |   | | | | |   | `-DeclRefExpr {{.*}} <col:28>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | | | | |   `-NullStmt {{.*}} <line:13:7>
> +// CHECK-NEXT: |       |   | | | | |-ImplicitParamDecl {{.*}} <line:10:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |   | | | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |   | | | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit used .previous.lb. 'const unsigned long'
> +// CHECK-NEXT: |       |   | | | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit used .previous.ub. 'const unsigned long'
> +// CHECK-NEXT: |       |   | | | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:10:9)
> *const restrict'
> +// CHECK-NEXT: |       |   | | | | |-VarDecl {{.*}} <line:11:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       |   | | | | | `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       |   | | | | `-VarDecl {{.*}} <line:12:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       |   | | | |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT: |       |   | | | |-DeclRefExpr {{.*}} <line:11:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       |   | | | `-DeclRefExpr {{.*}} <line:12:25> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       |   | | |-ImplicitParamDecl {{.*}} <line:10:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |   | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |   | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:10:9)
> *const restrict'
> +// CHECK-NEXT: |       |   | | |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT: |       |   | | | |-CapturedRecordAttr {{.*}} <<invalid
> sloc>> Implicit
> +// CHECK-NEXT: |       |   | | | |-FieldDecl {{.*}} <line:11:23> col:23
> implicit 'int'
> +// CHECK-NEXT: |       |   | | | | `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       |   | | | `-FieldDecl {{.*}} <line:12:25> col:25
> implicit 'int'
> +// CHECK-NEXT: |       |   | | |   `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       |   | | `-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       |   | |   |-ForStmt {{.*}} <line:11:3, line:13:7>
> +// CHECK-NEXT: |       |   | |   | |-DeclStmt {{.*}} <line:11:8, col:17>
> +// CHECK-NEXT: |       |   | |   | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       |   | |   | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       |   | |   | |-<<<NULL>>>
> +// CHECK-NEXT: |       |   | |   | |-BinaryOperator {{.*}} <col:19,
> col:23> 'int' '<'
> +// CHECK-NEXT: |       |   | |   | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |   | |   | | | `-DeclRefExpr {{.*}} <col:19>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | |   | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |   | |   | |   `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       |   | |   | |-UnaryOperator {{.*}} <col:26,
> col:27> 'int' postfix '++'
> +// CHECK-NEXT: |       |   | |   | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | |   | `-ForStmt {{.*}} <line:12:5, line:13:7>
> +// CHECK-NEXT: |       |   | |   |   |-DeclStmt {{.*}} <line:12:10,
> col:19>
> +// CHECK-NEXT: |       |   | |   |   | `-VarDecl {{.*}} <col:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       |   | |   |   |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT: |       |   | |   |   |-<<<NULL>>>
> +// CHECK-NEXT: |       |   | |   |   |-BinaryOperator {{.*}} <col:21,
> col:25> 'int' '<'
> +// CHECK-NEXT: |       |   | |   |   | |-ImplicitCastExpr {{.*}} <col:21>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |   | |   |   | | `-DeclRefExpr {{.*}} <col:21>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | |   |   | `-ImplicitCastExpr {{.*}} <col:25>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |   | |   |   |   `-DeclRefExpr {{.*}} <col:25>
> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       |   | |   |   |-UnaryOperator {{.*}} <col:28,
> col:29> 'int' postfix '++'
> +// CHECK-NEXT: |       |   | |   |   | `-DeclRefExpr {{.*}} <col:28>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | |   |   `-NullStmt {{.*}} <line:13:7>
> +// CHECK-NEXT: |       |   | |   |-ImplicitParamDecl {{.*}} <line:10:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |   | |   |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |   | |   |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit used .previous.lb. 'const unsigned long'
> +// CHECK-NEXT: |       |   | |   |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit used .previous.ub. 'const unsigned long'
> +// CHECK-NEXT: |       |   | |   |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:10:9)
> *const restrict'
> +// CHECK-NEXT: |       |   | |   |-VarDecl {{.*}} <line:11:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       |   | |   | `-IntegerLiteral {{.*}} <col:16> 'int'
> 0
> +// CHECK-NEXT: |       |   | |   `-VarDecl {{.*}} <line:12:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       |   | |     `-IntegerLiteral {{.*}} <col:18> 'int'
> 0
> +// CHECK-NEXT: |       |   | |-DeclRefExpr {{.*}} <line:11:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       |   | `-DeclRefExpr {{.*}} <line:12:25> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       |   |-ImplicitParamDecl {{.*}} <line:10:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:10:9)
> *const restrict'
> +// CHECK-NEXT: |       |   |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT: |       |   | |-CapturedRecordAttr {{.*}} <<invalid sloc>>
> Implicit
> +// CHECK-NEXT: |       |   | |-FieldDecl {{.*}} <line:11:23> col:23
> implicit 'int'
> +// CHECK-NEXT: |       |   | | `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       |   | `-FieldDecl {{.*}} <line:12:25> col:25
> implicit 'int'
> +// CHECK-NEXT: |       |   |   `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       |   `-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       |     |-CapturedStmt {{.*}} <line:11:3, line:13:7>
> +// CHECK-NEXT: |       |     | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       |     | | |-ForStmt {{.*}} <line:11:3, line:13:7>
> +// CHECK-NEXT: |       |     | | | |-DeclStmt {{.*}} <line:11:8, col:17>
> +// CHECK-NEXT: |       |     | | | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       |     | | | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       |     | | | |-<<<NULL>>>
> +// CHECK-NEXT: |       |     | | | |-BinaryOperator {{.*}} <col:19,
> col:23> 'int' '<'
> +// CHECK-NEXT: |       |     | | | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |     | | | | | `-DeclRefExpr {{.*}} <col:19>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |     | | | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |     | | | |   `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       |     | | | |-UnaryOperator {{.*}} <col:26,
> col:27> 'int' postfix '++'
> +// CHECK-NEXT: |       |     | | | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |     | | | `-ForStmt {{.*}} <line:12:5, line:13:7>
> +// CHECK-NEXT: |       |     | | |   |-DeclStmt {{.*}} <line:12:10,
> col:19>
> +// CHECK-NEXT: |       |     | | |   | `-VarDecl {{.*}} <col:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       |     | | |   |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT: |       |     | | |   |-<<<NULL>>>
> +// CHECK-NEXT: |       |     | | |   |-BinaryOperator {{.*}} <col:21,
> col:25> 'int' '<'
> +// CHECK-NEXT: |       |     | | |   | |-ImplicitCastExpr {{.*}} <col:21>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |     | | |   | | `-DeclRefExpr {{.*}} <col:21>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |     | | |   | `-ImplicitCastExpr {{.*}} <col:25>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |     | | |   |   `-DeclRefExpr {{.*}} <col:25>
> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       |     | | |   |-UnaryOperator {{.*}} <col:28,
> col:29> 'int' postfix '++'
> +// CHECK-NEXT: |       |     | | |   | `-DeclRefExpr {{.*}} <col:28>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |     | | |   `-NullStmt {{.*}} <line:13:7>
> +// CHECK-NEXT: |       |     | | |-ImplicitParamDecl {{.*}} <line:10:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |     | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |     | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit used .previous.lb. 'const unsigned long'
> +// CHECK-NEXT: |       |     | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit used .previous.ub. 'const unsigned long'
> +// CHECK-NEXT: |       |     | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:10:9)
> *const restrict'
> +// CHECK-NEXT: |       |     | | |-VarDecl {{.*}} <line:11:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       |     | | | `-IntegerLiteral {{.*}} <col:16> 'int'
> 0
> +// CHECK-NEXT: |       |     | | `-VarDecl {{.*}} <line:12:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       |     | |   `-IntegerLiteral {{.*}} <col:18> 'int'
> 0
> +// CHECK-NEXT: |       |     | |-DeclRefExpr {{.*}} <line:11:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       |     | `-DeclRefExpr {{.*}} <line:12:25> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       |     |-ImplicitParamDecl {{.*}} <line:10:9> col:9
> implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |     |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |     |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:10:9)
> *const restrict'
> +// CHECK-NEXT: |       |     |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT: |       |     | |-CapturedRecordAttr {{.*}} <<invalid
> sloc>> Implicit
> +// CHECK-NEXT: |       |     | |-FieldDecl {{.*}} <line:11:23> col:23
> implicit 'int'
> +// CHECK-NEXT: |       |     | | `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       |     | `-FieldDecl {{.*}} <line:12:25> col:25
> implicit 'int'
> +// CHECK-NEXT: |       |     |   `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       |     `-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       |       |-ForStmt {{.*}} <line:11:3, line:13:7>
> +// CHECK-NEXT: |       |       | |-DeclStmt {{.*}} <line:11:8, col:17>
> +// CHECK-NEXT: |       |       | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       |       | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       |       | |-<<<NULL>>>
> +// CHECK-NEXT: |       |       | |-BinaryOperator {{.*}} <col:19, col:23>
> 'int' '<'
> +// CHECK-NEXT: |       |       | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |       | | | `-DeclRefExpr {{.*}} <col:19> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |       | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |       | |   `-DeclRefExpr {{.*}} <col:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       |       | |-UnaryOperator {{.*}} <col:26, col:27>
> 'int' postfix '++'
> +// CHECK-NEXT: |       |       | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |       | `-ForStmt {{.*}} <line:12:5, line:13:7>
> +// CHECK-NEXT: |       |       |   |-DeclStmt {{.*}} <line:12:10, col:19>
> +// CHECK-NEXT: |       |       |   | `-VarDecl {{.*}} <col:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       |       |   |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT: |       |       |   |-<<<NULL>>>
> +// CHECK-NEXT: |       |       |   |-BinaryOperator {{.*}} <col:21,
> col:25> 'int' '<'
> +// CHECK-NEXT: |       |       |   | |-ImplicitCastExpr {{.*}} <col:21>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |       |   | | `-DeclRefExpr {{.*}} <col:21>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |       |   | `-ImplicitCastExpr {{.*}} <col:25>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |       |   |   `-DeclRefExpr {{.*}} <col:25>
> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       |       |   |-UnaryOperator {{.*}} <col:28,
> col:29> 'int' postfix '++'
> +// CHECK-NEXT: |       |       |   | `-DeclRefExpr {{.*}} <col:28> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |       |   `-NullStmt {{.*}} <line:13:7>
> +// CHECK-NEXT: |       |       |-ImplicitParamDecl {{.*}} <line:10:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |       |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |       |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit used .previous.lb. 'const unsigned long'
> +// CHECK-NEXT: |       |       |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit used .previous.ub. 'const unsigned long'
> +// CHECK-NEXT: |       |       |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:10:9)
> *const restrict'
> +// CHECK-NEXT: |       |       |-VarDecl {{.*}} <line:11:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       |       | `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       |       `-VarDecl {{.*}} <line:12:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       |         `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT: |       |-DeclRefExpr {{.*}} <line:11:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       `-DeclRefExpr {{.*}} <line:12:25> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |-FunctionDecl {{.*}} <line:16:1, line:21:1> line:16:6
> test_three 'void (int, int)'
> +// CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:17, col:21> col:21 used x 'int'
> +// CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:24, col:28> col:28 used y 'int'
> +// CHECK-NEXT: | `-CompoundStmt {{.*}} <col:31, line:21:1>
> +// CHECK-NEXT: |   `-OMPTargetTeamsDistributeParallelForSimdDirective
> {{.*}} <line:17:9, col:66>
> +// CHECK-NEXT: |     |-OMPCollapseClause {{.*}} <col:55, col:65>
> +// CHECK-NEXT: |     | `-ConstantExpr {{.*}} <col:64> 'int'
> +// CHECK-NEXT: |     |   `-IntegerLiteral {{.*}} <col:64> 'int' 1
> +// CHECK-NEXT: |     |-OMPFirstprivateClause {{.*}} <<invalid sloc>>
> <implicit>
> +// CHECK-NEXT: |     | |-DeclRefExpr {{.*}} <line:18:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |     | `-DeclRefExpr {{.*}} <line:19:25> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |     `-CapturedStmt {{.*}} <line:18:3, line:20:7>
> +// CHECK-NEXT: |       |-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc> nothrow
> +// CHECK-NEXT: |       | |-CapturedStmt {{.*}} <line:18:3, line:20:7>
> +// CHECK-NEXT: |       | | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       | | | |-CapturedStmt {{.*}} <line:18:3, line:20:7>
> +// CHECK-NEXT: |       | | | | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       | | | | | |-CapturedStmt {{.*}} <line:18:3,
> line:20:7>
> +// CHECK-NEXT: |       | | | | | | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       | | | | | | | |-ForStmt {{.*}} <line:18:3,
> line:20:7>
> +// CHECK-NEXT: |       | | | | | | | | |-DeclStmt {{.*}} <line:18:8,
> col:17>
> +// CHECK-NEXT: |       | | | | | | | | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | | | | | | | |   `-IntegerLiteral {{.*}}
> <col:16> 'int' 0
> +// CHECK-NEXT: |       | | | | | | | | |-<<<NULL>>>
> +// CHECK-NEXT: |       | | | | | | | | |-BinaryOperator {{.*}} <col:19,
> col:23> 'int' '<'
> +// CHECK-NEXT: |       | | | | | | | | | |-ImplicitCastExpr {{.*}}
> <col:19> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | | | | | | | | `-DeclRefExpr {{.*}} <col:19>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | | | | | | `-ImplicitCastExpr {{.*}}
> <col:23> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | | | | | | |   `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | | | | | | | |-UnaryOperator {{.*}} <col:26,
> col:27> 'int' postfix '++'
> +// CHECK-NEXT: |       | | | | | | | | | `-DeclRefExpr {{.*}} <col:26>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | | | | | `-ForStmt {{.*}} <line:19:5,
> line:20:7>
> +// CHECK-NEXT: |       | | | | | | | |   |-DeclStmt {{.*}} <line:19:10,
> col:19>
> +// CHECK-NEXT: |       | | | | | | | |   | `-VarDecl {{.*}} <col:10,
> col:18> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       | | | | | | | |   |   `-IntegerLiteral {{.*}}
> <col:18> 'int' 0
> +// CHECK-NEXT: |       | | | | | | | |   |-<<<NULL>>>
> +// CHECK-NEXT: |       | | | | | | | |   |-BinaryOperator {{.*}} <col:21,
> col:25> 'int' '<'
> +// CHECK-NEXT: |       | | | | | | | |   | |-ImplicitCastExpr {{.*}}
> <col:21> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | | | | | |   | | `-DeclRefExpr {{.*}}
> <col:21> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | | | | |   | `-ImplicitCastExpr {{.*}}
> <col:25> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | | | | | |   |   `-DeclRefExpr {{.*}}
> <col:25> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | | | | | | | |   |-UnaryOperator {{.*}} <col:28,
> col:29> 'int' postfix '++'
> +// CHECK-NEXT: |       | | | | | | | |   | `-DeclRefExpr {{.*}} <col:28>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | | | | |   `-NullStmt {{.*}} <line:20:7>
> +// CHECK-NEXT: |       | | | | | | | |-ImplicitParamDecl {{.*}}
> <line:17:9> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | | | | | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | | | | | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit used .previous.lb. 'const unsigned long'
> +// CHECK-NEXT: |       | | | | | | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit used .previous.ub. 'const unsigned long'
> +// CHECK-NEXT: |       | | | | | | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:17:9)
> *const restrict'
> +// CHECK-NEXT: |       | | | | | | | |-VarDecl {{.*}} <line:18:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | | | | | | | `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       | | | | | | | `-VarDecl {{.*}} <line:19:10,
> col:18> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       | | | | | | |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT: |       | | | | | | |-DeclRefExpr {{.*}} <line:18:23>
> 'int' lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | | | | | `-DeclRefExpr {{.*}} <line:19:25>
> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | | | | | |-ImplicitParamDecl {{.*}} <line:17:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | | | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | | | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:17:9)
> *const restrict'
> +// CHECK-NEXT: |       | | | | | |-RecordDecl {{.*}} <col:9> col:9
> implicit struct definition
> +// CHECK-NEXT: |       | | | | | | |-CapturedRecordAttr {{.*}} <<invalid
> sloc>> Implicit
> +// CHECK-NEXT: |       | | | | | | |-FieldDecl {{.*}} <line:18:23> col:23
> implicit 'int'
> +// CHECK-NEXT: |       | | | | | | | `-OMPCaptureKindAttr {{.*}}
> <<invalid sloc>> Implicit 9
> +// CHECK-NEXT: |       | | | | | | `-FieldDecl {{.*}} <line:19:25> col:25
> implicit 'int'
> +// CHECK-NEXT: |       | | | | | |   `-OMPCaptureKindAttr {{.*}}
> <<invalid sloc>> Implicit 9
> +// CHECK-NEXT: |       | | | | | `-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       | | | | |   |-ForStmt {{.*}} <line:18:3, line:20:7>
> +// CHECK-NEXT: |       | | | | |   | |-DeclStmt {{.*}} <line:18:8, col:17>
> +// CHECK-NEXT: |       | | | | |   | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | | | |   | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       | | | | |   | |-<<<NULL>>>
> +// CHECK-NEXT: |       | | | | |   | |-BinaryOperator {{.*}} <col:19,
> col:23> 'int' '<'
> +// CHECK-NEXT: |       | | | | |   | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | | |   | | | `-DeclRefExpr {{.*}} <col:19>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | |   | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | | |   | |   `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | | | |   | |-UnaryOperator {{.*}} <col:26,
> col:27> 'int' postfix '++'
> +// CHECK-NEXT: |       | | | | |   | | `-DeclRefExpr {{.*}} <col:26>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | |   | `-ForStmt {{.*}} <line:19:5,
> line:20:7>
> +// CHECK-NEXT: |       | | | | |   |   |-DeclStmt {{.*}} <line:19:10,
> col:19>
> +// CHECK-NEXT: |       | | | | |   |   | `-VarDecl {{.*}} <col:10,
> col:18> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       | | | | |   |   |   `-IntegerLiteral {{.*}}
> <col:18> 'int' 0
> +// CHECK-NEXT: |       | | | | |   |   |-<<<NULL>>>
> +// CHECK-NEXT: |       | | | | |   |   |-BinaryOperator {{.*}} <col:21,
> col:25> 'int' '<'
> +// CHECK-NEXT: |       | | | | |   |   | |-ImplicitCastExpr {{.*}}
> <col:21> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | | |   |   | | `-DeclRefExpr {{.*}} <col:21>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | |   |   | `-ImplicitCastExpr {{.*}}
> <col:25> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | | |   |   |   `-DeclRefExpr {{.*}} <col:25>
> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | | | | |   |   |-UnaryOperator {{.*}} <col:28,
> col:29> 'int' postfix '++'
> +// CHECK-NEXT: |       | | | | |   |   | `-DeclRefExpr {{.*}} <col:28>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | |   |   `-NullStmt {{.*}} <line:20:7>
> +// CHECK-NEXT: |       | | | | |   |-ImplicitParamDecl {{.*}} <line:17:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | | | |   |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | | | |   |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit used .previous.lb. 'const unsigned long'
> +// CHECK-NEXT: |       | | | | |   |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit used .previous.ub. 'const unsigned long'
> +// CHECK-NEXT: |       | | | | |   |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:17:9)
> *const restrict'
> +// CHECK-NEXT: |       | | | | |   |-VarDecl {{.*}} <line:18:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | | | |   | `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       | | | | |   `-VarDecl {{.*}} <line:19:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       | | | | |     `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT: |       | | | | |-DeclRefExpr {{.*}} <line:18:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | | | `-DeclRefExpr {{.*}} <line:19:25> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | | | |-ImplicitParamDecl {{.*}} <line:17:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:17:9)
> *const restrict'
> +// CHECK-NEXT: |       | | | |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT: |       | | | | |-CapturedRecordAttr {{.*}} <<invalid
> sloc>> Implicit
> +// CHECK-NEXT: |       | | | | |-FieldDecl {{.*}} <line:18:23> col:23
> implicit 'int'
> +// CHECK-NEXT: |       | | | | | `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       | | | | `-FieldDecl {{.*}} <line:19:25> col:25
> implicit 'int'
> +// CHECK-NEXT: |       | | | |   `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       | | | `-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       | | |   |-CapturedStmt {{.*}} <line:18:3,
> line:20:7>
> +// CHECK-NEXT: |       | | |   | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       | | |   | | |-ForStmt {{.*}} <line:18:3, line:20:7>
> +// CHECK-NEXT: |       | | |   | | | |-DeclStmt {{.*}} <line:18:8, col:17>
> +// CHECK-NEXT: |       | | |   | | | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | |   | | | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       | | |   | | | |-<<<NULL>>>
> +// CHECK-NEXT: |       | | |   | | | |-BinaryOperator {{.*}} <col:19,
> col:23> 'int' '<'
> +// CHECK-NEXT: |       | | |   | | | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | |   | | | | | `-DeclRefExpr {{.*}} <col:19>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | |   | | | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | |   | | | |   `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | |   | | | |-UnaryOperator {{.*}} <col:26,
> col:27> 'int' postfix '++'
> +// CHECK-NEXT: |       | | |   | | | | `-DeclRefExpr {{.*}} <col:26>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | |   | | | `-ForStmt {{.*}} <line:19:5,
> line:20:7>
> +// CHECK-NEXT: |       | | |   | | |   |-DeclStmt {{.*}} <line:19:10,
> col:19>
> +// CHECK-NEXT: |       | | |   | | |   | `-VarDecl {{.*}} <col:10,
> col:18> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       | | |   | | |   |   `-IntegerLiteral {{.*}}
> <col:18> 'int' 0
> +// CHECK-NEXT: |       | | |   | | |   |-<<<NULL>>>
> +// CHECK-NEXT: |       | | |   | | |   |-BinaryOperator {{.*}} <col:21,
> col:25> 'int' '<'
> +// CHECK-NEXT: |       | | |   | | |   | |-ImplicitCastExpr {{.*}}
> <col:21> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | |   | | |   | | `-DeclRefExpr {{.*}} <col:21>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | |   | | |   | `-ImplicitCastExpr {{.*}}
> <col:25> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | |   | | |   |   `-DeclRefExpr {{.*}} <col:25>
> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | | |   | | |   |-UnaryOperator {{.*}} <col:28,
> col:29> 'int' postfix '++'
> +// CHECK-NEXT: |       | | |   | | |   | `-DeclRefExpr {{.*}} <col:28>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | |   | | |   `-NullStmt {{.*}} <line:20:7>
> +// CHECK-NEXT: |       | | |   | | |-ImplicitParamDecl {{.*}} <line:17:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | |   | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | |   | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit used .previous.lb. 'const unsigned long'
> +// CHECK-NEXT: |       | | |   | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit used .previous.ub. 'const unsigned long'
> +// CHECK-NEXT: |       | | |   | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:17:9)
> *const restrict'
> +// CHECK-NEXT: |       | | |   | | |-VarDecl {{.*}} <line:18:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | |   | | | `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       | | |   | | `-VarDecl {{.*}} <line:19:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       | | |   | |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT: |       | | |   | |-DeclRefExpr {{.*}} <line:18:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | |   | `-DeclRefExpr {{.*}} <line:19:25> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | | |   |-ImplicitParamDecl {{.*}} <line:17:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | |   |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | |   |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:17:9)
> *const restrict'
> +// CHECK-NEXT: |       | | |   |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT: |       | | |   | |-CapturedRecordAttr {{.*}} <<invalid
> sloc>> Implicit
> +// CHECK-NEXT: |       | | |   | |-FieldDecl {{.*}} <line:18:23> col:23
> implicit 'int'
> +// CHECK-NEXT: |       | | |   | | `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       | | |   | `-FieldDecl {{.*}} <line:19:25> col:25
> implicit 'int'
> +// CHECK-NEXT: |       | | |   |   `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       | | |   `-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       | | |     |-ForStmt {{.*}} <line:18:3, line:20:7>
> +// CHECK-NEXT: |       | | |     | |-DeclStmt {{.*}} <line:18:8, col:17>
> +// CHECK-NEXT: |       | | |     | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | |     | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       | | |     | |-<<<NULL>>>
> +// CHECK-NEXT: |       | | |     | |-BinaryOperator {{.*}} <col:19,
> col:23> 'int' '<'
> +// CHECK-NEXT: |       | | |     | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | |     | | | `-DeclRefExpr {{.*}} <col:19>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | |     | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | |     | |   `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | |     | |-UnaryOperator {{.*}} <col:26,
> col:27> 'int' postfix '++'
> +// CHECK-NEXT: |       | | |     | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | |     | `-ForStmt {{.*}} <line:19:5, line:20:7>
> +// CHECK-NEXT: |       | | |     |   |-DeclStmt {{.*}} <line:19:10,
> col:19>
> +// CHECK-NEXT: |       | | |     |   | `-VarDecl {{.*}} <col:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       | | |     |   |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT: |       | | |     |   |-<<<NULL>>>
> +// CHECK-NEXT: |       | | |     |   |-BinaryOperator {{.*}} <col:21,
> col:25> 'int' '<'
> +// CHECK-NEXT: |       | | |     |   | |-ImplicitCastExpr {{.*}} <col:21>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | |     |   | | `-DeclRefExpr {{.*}} <col:21>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | |     |   | `-ImplicitCastExpr {{.*}} <col:25>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | |     |   |   `-DeclRefExpr {{.*}} <col:25>
> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | | |     |   |-UnaryOperator {{.*}} <col:28,
> col:29> 'int' postfix '++'
> +// CHECK-NEXT: |       | | |     |   | `-DeclRefExpr {{.*}} <col:28>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | |     |   `-NullStmt {{.*}} <line:20:7>
> +// CHECK-NEXT: |       | | |     |-ImplicitParamDecl {{.*}} <line:17:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | |     |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | |     |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit used .previous.lb. 'const unsigned long'
> +// CHECK-NEXT: |       | | |     |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit used .previous.ub. 'const unsigned long'
> +// CHECK-NEXT: |       | | |     |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:17:9)
> *const restrict'
> +// CHECK-NEXT: |       | | |     |-VarDecl {{.*}} <line:18:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | |     | `-IntegerLiteral {{.*}} <col:16> 'int'
> 0
> +// CHECK-NEXT: |       | | |     `-VarDecl {{.*}} <line:19:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       | | |       `-IntegerLiteral {{.*}} <col:18> 'int'
> 0
> +// CHECK-NEXT: |       | | |-DeclRefExpr {{.*}} <line:18:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | `-DeclRefExpr {{.*}} <line:19:25> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | |-AlwaysInlineAttr {{.*}} <<invalid sloc>>
> Implicit __forceinline
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <line:17:9> col:9
> implicit .global_tid. 'const int'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .part_id. 'const int *const restrict'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .privates. 'void *const restrict'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .task_t. 'void *const'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:17:9)
> *const restrict'
> +// CHECK-NEXT: |       | |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT: |       | | |-CapturedRecordAttr {{.*}} <<invalid sloc>>
> Implicit
> +// CHECK-NEXT: |       | | |-FieldDecl {{.*}} <line:18:23> col:23
> implicit 'int'
> +// CHECK-NEXT: |       | | | `-OMPCaptureKindAttr {{.*}} <<invalid sloc>>
> Implicit 9
> +// CHECK-NEXT: |       | | `-FieldDecl {{.*}} <line:19:25> col:25
> implicit 'int'
> +// CHECK-NEXT: |       | |   `-OMPCaptureKindAttr {{.*}} <<invalid sloc>>
> Implicit 9
> +// CHECK-NEXT: |       | `-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc> nothrow
> +// CHECK-NEXT: |       |   |-CapturedStmt {{.*}} <line:18:3, line:20:7>
> +// CHECK-NEXT: |       |   | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       |   | | |-CapturedStmt {{.*}} <line:18:3,
> line:20:7>
> +// CHECK-NEXT: |       |   | | | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       |   | | | | |-ForStmt {{.*}} <line:18:3, line:20:7>
> +// CHECK-NEXT: |       |   | | | | | |-DeclStmt {{.*}} <line:18:8, col:17>
> +// CHECK-NEXT: |       |   | | | | | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       |   | | | | | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       |   | | | | | |-<<<NULL>>>
> +// CHECK-NEXT: |       |   | | | | | |-BinaryOperator {{.*}} <col:19,
> col:23> 'int' '<'
> +// CHECK-NEXT: |       |   | | | | | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |   | | | | | | | `-DeclRefExpr {{.*}} <col:19>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | | | | | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |   | | | | | |   `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       |   | | | | | |-UnaryOperator {{.*}} <col:26,
> col:27> 'int' postfix '++'
> +// CHECK-NEXT: |       |   | | | | | | `-DeclRefExpr {{.*}} <col:26>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | | | | | `-ForStmt {{.*}} <line:19:5,
> line:20:7>
> +// CHECK-NEXT: |       |   | | | | |   |-DeclStmt {{.*}} <line:19:10,
> col:19>
> +// CHECK-NEXT: |       |   | | | | |   | `-VarDecl {{.*}} <col:10,
> col:18> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       |   | | | | |   |   `-IntegerLiteral {{.*}}
> <col:18> 'int' 0
> +// CHECK-NEXT: |       |   | | | | |   |-<<<NULL>>>
> +// CHECK-NEXT: |       |   | | | | |   |-BinaryOperator {{.*}} <col:21,
> col:25> 'int' '<'
> +// CHECK-NEXT: |       |   | | | | |   | |-ImplicitCastExpr {{.*}}
> <col:21> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |   | | | | |   | | `-DeclRefExpr {{.*}} <col:21>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | | | | |   | `-ImplicitCastExpr {{.*}}
> <col:25> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |   | | | | |   |   `-DeclRefExpr {{.*}} <col:25>
> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       |   | | | | |   |-UnaryOperator {{.*}} <col:28,
> col:29> 'int' postfix '++'
> +// CHECK-NEXT: |       |   | | | | |   | `-DeclRefExpr {{.*}} <col:28>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | | | | |   `-NullStmt {{.*}} <line:20:7>
> +// CHECK-NEXT: |       |   | | | | |-ImplicitParamDecl {{.*}} <line:17:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |   | | | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |   | | | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit used .previous.lb. 'const unsigned long'
> +// CHECK-NEXT: |       |   | | | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit used .previous.ub. 'const unsigned long'
> +// CHECK-NEXT: |       |   | | | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:17:9)
> *const restrict'
> +// CHECK-NEXT: |       |   | | | | |-VarDecl {{.*}} <line:18:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       |   | | | | | `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       |   | | | | `-VarDecl {{.*}} <line:19:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       |   | | | |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT: |       |   | | | |-DeclRefExpr {{.*}} <line:18:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       |   | | | `-DeclRefExpr {{.*}} <line:19:25> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       |   | | |-ImplicitParamDecl {{.*}} <line:17:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |   | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |   | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:17:9)
> *const restrict'
> +// CHECK-NEXT: |       |   | | |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT: |       |   | | | |-CapturedRecordAttr {{.*}} <<invalid
> sloc>> Implicit
> +// CHECK-NEXT: |       |   | | | |-FieldDecl {{.*}} <line:18:23> col:23
> implicit 'int'
> +// CHECK-NEXT: |       |   | | | | `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       |   | | | `-FieldDecl {{.*}} <line:19:25> col:25
> implicit 'int'
> +// CHECK-NEXT: |       |   | | |   `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       |   | | `-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       |   | |   |-ForStmt {{.*}} <line:18:3, line:20:7>
> +// CHECK-NEXT: |       |   | |   | |-DeclStmt {{.*}} <line:18:8, col:17>
> +// CHECK-NEXT: |       |   | |   | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       |   | |   | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       |   | |   | |-<<<NULL>>>
> +// CHECK-NEXT: |       |   | |   | |-BinaryOperator {{.*}} <col:19,
> col:23> 'int' '<'
> +// CHECK-NEXT: |       |   | |   | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |   | |   | | | `-DeclRefExpr {{.*}} <col:19>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | |   | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |   | |   | |   `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       |   | |   | |-UnaryOperator {{.*}} <col:26,
> col:27> 'int' postfix '++'
> +// CHECK-NEXT: |       |   | |   | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | |   | `-ForStmt {{.*}} <line:19:5, line:20:7>
> +// CHECK-NEXT: |       |   | |   |   |-DeclStmt {{.*}} <line:19:10,
> col:19>
> +// CHECK-NEXT: |       |   | |   |   | `-VarDecl {{.*}} <col:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       |   | |   |   |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT: |       |   | |   |   |-<<<NULL>>>
> +// CHECK-NEXT: |       |   | |   |   |-BinaryOperator {{.*}} <col:21,
> col:25> 'int' '<'
> +// CHECK-NEXT: |       |   | |   |   | |-ImplicitCastExpr {{.*}} <col:21>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |   | |   |   | | `-DeclRefExpr {{.*}} <col:21>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | |   |   | `-ImplicitCastExpr {{.*}} <col:25>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |   | |   |   |   `-DeclRefExpr {{.*}} <col:25>
> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       |   | |   |   |-UnaryOperator {{.*}} <col:28,
> col:29> 'int' postfix '++'
> +// CHECK-NEXT: |       |   | |   |   | `-DeclRefExpr {{.*}} <col:28>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | |   |   `-NullStmt {{.*}} <line:20:7>
> +// CHECK-NEXT: |       |   | |   |-ImplicitParamDecl {{.*}} <line:17:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |   | |   |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |   | |   |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit used .previous.lb. 'const unsigned long'
> +// CHECK-NEXT: |       |   | |   |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit used .previous.ub. 'const unsigned long'
> +// CHECK-NEXT: |       |   | |   |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:17:9)
> *const restrict'
> +// CHECK-NEXT: |       |   | |   |-VarDecl {{.*}} <line:18:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       |   | |   | `-IntegerLiteral {{.*}} <col:16> 'int'
> 0
> +// CHECK-NEXT: |       |   | |   `-VarDecl {{.*}} <line:19:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       |   | |     `-IntegerLiteral {{.*}} <col:18> 'int'
> 0
> +// CHECK-NEXT: |       |   | |-DeclRefExpr {{.*}} <line:18:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       |   | `-DeclRefExpr {{.*}} <line:19:25> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       |   |-ImplicitParamDecl {{.*}} <line:17:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:17:9)
> *const restrict'
> +// CHECK-NEXT: |       |   |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT: |       |   | |-CapturedRecordAttr {{.*}} <<invalid sloc>>
> Implicit
> +// CHECK-NEXT: |       |   | |-FieldDecl {{.*}} <line:18:23> col:23
> implicit 'int'
> +// CHECK-NEXT: |       |   | | `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       |   | `-FieldDecl {{.*}} <line:19:25> col:25
> implicit 'int'
> +// CHECK-NEXT: |       |   |   `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       |   `-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       |     |-CapturedStmt {{.*}} <line:18:3, line:20:7>
> +// CHECK-NEXT: |       |     | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       |     | | |-ForStmt {{.*}} <line:18:3, line:20:7>
> +// CHECK-NEXT: |       |     | | | |-DeclStmt {{.*}} <line:18:8, col:17>
> +// CHECK-NEXT: |       |     | | | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       |     | | | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       |     | | | |-<<<NULL>>>
> +// CHECK-NEXT: |       |     | | | |-BinaryOperator {{.*}} <col:19,
> col:23> 'int' '<'
> +// CHECK-NEXT: |       |     | | | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |     | | | | | `-DeclRefExpr {{.*}} <col:19>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |     | | | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |     | | | |   `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       |     | | | |-UnaryOperator {{.*}} <col:26,
> col:27> 'int' postfix '++'
> +// CHECK-NEXT: |       |     | | | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |     | | | `-ForStmt {{.*}} <line:19:5, line:20:7>
> +// CHECK-NEXT: |       |     | | |   |-DeclStmt {{.*}} <line:19:10,
> col:19>
> +// CHECK-NEXT: |       |     | | |   | `-VarDecl {{.*}} <col:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       |     | | |   |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT: |       |     | | |   |-<<<NULL>>>
> +// CHECK-NEXT: |       |     | | |   |-BinaryOperator {{.*}} <col:21,
> col:25> 'int' '<'
> +// CHECK-NEXT: |       |     | | |   | |-ImplicitCastExpr {{.*}} <col:21>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |     | | |   | | `-DeclRefExpr {{.*}} <col:21>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |     | | |   | `-ImplicitCastExpr {{.*}} <col:25>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |     | | |   |   `-DeclRefExpr {{.*}} <col:25>
> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       |     | | |   |-UnaryOperator {{.*}} <col:28,
> col:29> 'int' postfix '++'
> +// CHECK-NEXT: |       |     | | |   | `-DeclRefExpr {{.*}} <col:28>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |     | | |   `-NullStmt {{.*}} <line:20:7>
> +// CHECK-NEXT: |       |     | | |-ImplicitParamDecl {{.*}} <line:17:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |     | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |     | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit used .previous.lb. 'const unsigned long'
> +// CHECK-NEXT: |       |     | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit used .previous.ub. 'const unsigned long'
> +// CHECK-NEXT: |       |     | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:17:9)
> *const restrict'
> +// CHECK-NEXT: |       |     | | |-VarDecl {{.*}} <line:18:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       |     | | | `-IntegerLiteral {{.*}} <col:16> 'int'
> 0
> +// CHECK-NEXT: |       |     | | `-VarDecl {{.*}} <line:19:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       |     | |   `-IntegerLiteral {{.*}} <col:18> 'int'
> 0
> +// CHECK-NEXT: |       |     | |-DeclRefExpr {{.*}} <line:18:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       |     | `-DeclRefExpr {{.*}} <line:19:25> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       |     |-ImplicitParamDecl {{.*}} <line:17:9> col:9
> implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |     |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |     |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:17:9)
> *const restrict'
> +// CHECK-NEXT: |       |     |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT: |       |     | |-CapturedRecordAttr {{.*}} <<invalid
> sloc>> Implicit
> +// CHECK-NEXT: |       |     | |-FieldDecl {{.*}} <line:18:23> col:23
> implicit 'int'
> +// CHECK-NEXT: |       |     | | `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       |     | `-FieldDecl {{.*}} <line:19:25> col:25
> implicit 'int'
> +// CHECK-NEXT: |       |     |   `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       |     `-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       |       |-ForStmt {{.*}} <line:18:3, line:20:7>
> +// CHECK-NEXT: |       |       | |-DeclStmt {{.*}} <line:18:8, col:17>
> +// CHECK-NEXT: |       |       | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       |       | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       |       | |-<<<NULL>>>
> +// CHECK-NEXT: |       |       | |-BinaryOperator {{.*}} <col:19, col:23>
> 'int' '<'
> +// CHECK-NEXT: |       |       | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |       | | | `-DeclRefExpr {{.*}} <col:19> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |       | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |       | |   `-DeclRefExpr {{.*}} <col:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       |       | |-UnaryOperator {{.*}} <col:26, col:27>
> 'int' postfix '++'
> +// CHECK-NEXT: |       |       | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |       | `-ForStmt {{.*}} <line:19:5, line:20:7>
> +// CHECK-NEXT: |       |       |   |-DeclStmt {{.*}} <line:19:10, col:19>
> +// CHECK-NEXT: |       |       |   | `-VarDecl {{.*}} <col:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       |       |   |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT: |       |       |   |-<<<NULL>>>
> +// CHECK-NEXT: |       |       |   |-BinaryOperator {{.*}} <col:21,
> col:25> 'int' '<'
> +// CHECK-NEXT: |       |       |   | |-ImplicitCastExpr {{.*}} <col:21>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |       |   | | `-DeclRefExpr {{.*}} <col:21>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |       |   | `-ImplicitCastExpr {{.*}} <col:25>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |       |   |   `-DeclRefExpr {{.*}} <col:25>
> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       |       |   |-UnaryOperator {{.*}} <col:28,
> col:29> 'int' postfix '++'
> +// CHECK-NEXT: |       |       |   | `-DeclRefExpr {{.*}} <col:28> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |       |   `-NullStmt {{.*}} <line:20:7>
> +// CHECK-NEXT: |       |       |-ImplicitParamDecl {{.*}} <line:17:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |       |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |       |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit used .previous.lb. 'const unsigned long'
> +// CHECK-NEXT: |       |       |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit used .previous.ub. 'const unsigned long'
> +// CHECK-NEXT: |       |       |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:17:9)
> *const restrict'
> +// CHECK-NEXT: |       |       |-VarDecl {{.*}} <line:18:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       |       | `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       |       `-VarDecl {{.*}} <line:19:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       |         `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT: |       |-DeclRefExpr {{.*}} <line:18:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       `-DeclRefExpr {{.*}} <line:19:25> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |-FunctionDecl {{.*}} <line:23:1, line:28:1> line:23:6
> test_four 'void (int, int)'
> +// CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:16, col:20> col:20 used x 'int'
> +// CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:23, col:27> col:27 used y 'int'
> +// CHECK-NEXT: | `-CompoundStmt {{.*}} <col:30, line:28:1>
> +// CHECK-NEXT: |   `-OMPTargetTeamsDistributeParallelForSimdDirective
> {{.*}} <line:24:9, col:66>
> +// CHECK-NEXT: |     |-OMPCollapseClause {{.*}} <col:55, col:65>
> +// CHECK-NEXT: |     | `-ConstantExpr {{.*}} <col:64> 'int'
> +// CHECK-NEXT: |     |   `-IntegerLiteral {{.*}} <col:64> 'int' 2
> +// CHECK-NEXT: |     |-OMPFirstprivateClause {{.*}} <<invalid sloc>>
> <implicit>
> +// CHECK-NEXT: |     | |-DeclRefExpr {{.*}} <line:25:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |     | `-DeclRefExpr {{.*}} <line:26:25> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |     `-CapturedStmt {{.*}} <line:25:3, line:27:7>
> +// CHECK-NEXT: |       |-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc> nothrow
> +// CHECK-NEXT: |       | |-CapturedStmt {{.*}} <line:25:3, line:27:7>
> +// CHECK-NEXT: |       | | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       | | | |-CapturedStmt {{.*}} <line:25:3, line:27:7>
> +// CHECK-NEXT: |       | | | | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       | | | | | |-CapturedStmt {{.*}} <line:25:3,
> line:27:7>
> +// CHECK-NEXT: |       | | | | | | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       | | | | | | | |-ForStmt {{.*}} <line:25:3,
> line:27:7>
> +// CHECK-NEXT: |       | | | | | | | | |-DeclStmt {{.*}} <line:25:8,
> col:17>
> +// CHECK-NEXT: |       | | | | | | | | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | | | | | | | |   `-IntegerLiteral {{.*}}
> <col:16> 'int' 0
> +// CHECK-NEXT: |       | | | | | | | | |-<<<NULL>>>
> +// CHECK-NEXT: |       | | | | | | | | |-BinaryOperator {{.*}} <col:19,
> col:23> 'int' '<'
> +// CHECK-NEXT: |       | | | | | | | | | |-ImplicitCastExpr {{.*}}
> <col:19> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | | | | | | | | `-DeclRefExpr {{.*}} <col:19>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | | | | | | `-ImplicitCastExpr {{.*}}
> <col:23> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | | | | | | |   `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | | | | | | | |-UnaryOperator {{.*}} <col:26,
> col:27> 'int' postfix '++'
> +// CHECK-NEXT: |       | | | | | | | | | `-DeclRefExpr {{.*}} <col:26>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | | | | | `-ForStmt {{.*}} <line:26:5,
> line:27:7>
> +// CHECK-NEXT: |       | | | | | | | |   |-DeclStmt {{.*}} <line:26:10,
> col:19>
> +// CHECK-NEXT: |       | | | | | | | |   | `-VarDecl {{.*}} <col:10,
> col:18> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       | | | | | | | |   |   `-IntegerLiteral {{.*}}
> <col:18> 'int' 0
> +// CHECK-NEXT: |       | | | | | | | |   |-<<<NULL>>>
> +// CHECK-NEXT: |       | | | | | | | |   |-BinaryOperator {{.*}} <col:21,
> col:25> 'int' '<'
> +// CHECK-NEXT: |       | | | | | | | |   | |-ImplicitCastExpr {{.*}}
> <col:21> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | | | | | |   | | `-DeclRefExpr {{.*}}
> <col:21> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | | | | |   | `-ImplicitCastExpr {{.*}}
> <col:25> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | | | | | |   |   `-DeclRefExpr {{.*}}
> <col:25> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | | | | | | | |   |-UnaryOperator {{.*}} <col:28,
> col:29> 'int' postfix '++'
> +// CHECK-NEXT: |       | | | | | | | |   | `-DeclRefExpr {{.*}} <col:28>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | | | | |   `-NullStmt {{.*}} <line:27:7>
> +// CHECK-NEXT: |       | | | | | | | |-ImplicitParamDecl {{.*}}
> <line:24:9> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | | | | | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | | | | | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit used .previous.lb. 'const unsigned long'
> +// CHECK-NEXT: |       | | | | | | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit used .previous.ub. 'const unsigned long'
> +// CHECK-NEXT: |       | | | | | | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:24:9)
> *const restrict'
> +// CHECK-NEXT: |       | | | | | | | |-VarDecl {{.*}} <line:25:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | | | | | | | `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       | | | | | | | `-VarDecl {{.*}} <line:26:10,
> col:18> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       | | | | | | |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT: |       | | | | | | |-DeclRefExpr {{.*}} <line:25:23>
> 'int' lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | | | | | `-DeclRefExpr {{.*}} <line:26:25>
> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | | | | | |-ImplicitParamDecl {{.*}} <line:24:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | | | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | | | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:24:9)
> *const restrict'
> +// CHECK-NEXT: |       | | | | | |-RecordDecl {{.*}} <col:9> col:9
> implicit struct definition
> +// CHECK-NEXT: |       | | | | | | |-CapturedRecordAttr {{.*}} <<invalid
> sloc>> Implicit
> +// CHECK-NEXT: |       | | | | | | |-FieldDecl {{.*}} <line:25:23> col:23
> implicit 'int'
> +// CHECK-NEXT: |       | | | | | | | `-OMPCaptureKindAttr {{.*}}
> <<invalid sloc>> Implicit 9
> +// CHECK-NEXT: |       | | | | | | `-FieldDecl {{.*}} <line:26:25> col:25
> implicit 'int'
> +// CHECK-NEXT: |       | | | | | |   `-OMPCaptureKindAttr {{.*}}
> <<invalid sloc>> Implicit 9
> +// CHECK-NEXT: |       | | | | | `-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       | | | | |   |-ForStmt {{.*}} <line:25:3, line:27:7>
> +// CHECK-NEXT: |       | | | | |   | |-DeclStmt {{.*}} <line:25:8, col:17>
> +// CHECK-NEXT: |       | | | | |   | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | | | |   | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       | | | | |   | |-<<<NULL>>>
> +// CHECK-NEXT: |       | | | | |   | |-BinaryOperator {{.*}} <col:19,
> col:23> 'int' '<'
> +// CHECK-NEXT: |       | | | | |   | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | | |   | | | `-DeclRefExpr {{.*}} <col:19>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | |   | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | | |   | |   `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | | | |   | |-UnaryOperator {{.*}} <col:26,
> col:27> 'int' postfix '++'
> +// CHECK-NEXT: |       | | | | |   | | `-DeclRefExpr {{.*}} <col:26>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | |   | `-ForStmt {{.*}} <line:26:5,
> line:27:7>
> +// CHECK-NEXT: |       | | | | |   |   |-DeclStmt {{.*}} <line:26:10,
> col:19>
> +// CHECK-NEXT: |       | | | | |   |   | `-VarDecl {{.*}} <col:10,
> col:18> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       | | | | |   |   |   `-IntegerLiteral {{.*}}
> <col:18> 'int' 0
> +// CHECK-NEXT: |       | | | | |   |   |-<<<NULL>>>
> +// CHECK-NEXT: |       | | | | |   |   |-BinaryOperator {{.*}} <col:21,
> col:25> 'int' '<'
> +// CHECK-NEXT: |       | | | | |   |   | |-ImplicitCastExpr {{.*}}
> <col:21> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | | |   |   | | `-DeclRefExpr {{.*}} <col:21>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | |   |   | `-ImplicitCastExpr {{.*}}
> <col:25> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | | |   |   |   `-DeclRefExpr {{.*}} <col:25>
> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | | | | |   |   |-UnaryOperator {{.*}} <col:28,
> col:29> 'int' postfix '++'
> +// CHECK-NEXT: |       | | | | |   |   | `-DeclRefExpr {{.*}} <col:28>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | |   |   `-NullStmt {{.*}} <line:27:7>
> +// CHECK-NEXT: |       | | | | |   |-ImplicitParamDecl {{.*}} <line:24:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | | | |   |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | | | |   |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit used .previous.lb. 'const unsigned long'
> +// CHECK-NEXT: |       | | | | |   |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit used .previous.ub. 'const unsigned long'
> +// CHECK-NEXT: |       | | | | |   |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:24:9)
> *const restrict'
> +// CHECK-NEXT: |       | | | | |   |-VarDecl {{.*}} <line:25:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | | | |   | `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       | | | | |   `-VarDecl {{.*}} <line:26:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       | | | | |     `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT: |       | | | | |-DeclRefExpr {{.*}} <line:25:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | | | `-DeclRefExpr {{.*}} <line:26:25> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | | | |-ImplicitParamDecl {{.*}} <line:24:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:24:9)
> *const restrict'
> +// CHECK-NEXT: |       | | | |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT: |       | | | | |-CapturedRecordAttr {{.*}} <<invalid
> sloc>> Implicit
> +// CHECK-NEXT: |       | | | | |-FieldDecl {{.*}} <line:25:23> col:23
> implicit 'int'
> +// CHECK-NEXT: |       | | | | | `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       | | | | `-FieldDecl {{.*}} <line:26:25> col:25
> implicit 'int'
> +// CHECK-NEXT: |       | | | |   `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       | | | `-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       | | |   |-CapturedStmt {{.*}} <line:25:3,
> line:27:7>
> +// CHECK-NEXT: |       | | |   | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       | | |   | | |-ForStmt {{.*}} <line:25:3, line:27:7>
> +// CHECK-NEXT: |       | | |   | | | |-DeclStmt {{.*}} <line:25:8, col:17>
> +// CHECK-NEXT: |       | | |   | | | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | |   | | | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       | | |   | | | |-<<<NULL>>>
> +// CHECK-NEXT: |       | | |   | | | |-BinaryOperator {{.*}} <col:19,
> col:23> 'int' '<'
> +// CHECK-NEXT: |       | | |   | | | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | |   | | | | | `-DeclRefExpr {{.*}} <col:19>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | |   | | | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | |   | | | |   `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | |   | | | |-UnaryOperator {{.*}} <col:26,
> col:27> 'int' postfix '++'
> +// CHECK-NEXT: |       | | |   | | | | `-DeclRefExpr {{.*}} <col:26>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | |   | | | `-ForStmt {{.*}} <line:26:5,
> line:27:7>
> +// CHECK-NEXT: |       | | |   | | |   |-DeclStmt {{.*}} <line:26:10,
> col:19>
> +// CHECK-NEXT: |       | | |   | | |   | `-VarDecl {{.*}} <col:10,
> col:18> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       | | |   | | |   |   `-IntegerLiteral {{.*}}
> <col:18> 'int' 0
> +// CHECK-NEXT: |       | | |   | | |   |-<<<NULL>>>
> +// CHECK-NEXT: |       | | |   | | |   |-BinaryOperator {{.*}} <col:21,
> col:25> 'int' '<'
> +// CHECK-NEXT: |       | | |   | | |   | |-ImplicitCastExpr {{.*}}
> <col:21> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | |   | | |   | | `-DeclRefExpr {{.*}} <col:21>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | |   | | |   | `-ImplicitCastExpr {{.*}}
> <col:25> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | |   | | |   |   `-DeclRefExpr {{.*}} <col:25>
> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | | |   | | |   |-UnaryOperator {{.*}} <col:28,
> col:29> 'int' postfix '++'
> +// CHECK-NEXT: |       | | |   | | |   | `-DeclRefExpr {{.*}} <col:28>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | |   | | |   `-NullStmt {{.*}} <line:27:7>
> +// CHECK-NEXT: |       | | |   | | |-ImplicitParamDecl {{.*}} <line:24:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | |   | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | |   | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit used .previous.lb. 'const unsigned long'
> +// CHECK-NEXT: |       | | |   | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit used .previous.ub. 'const unsigned long'
> +// CHECK-NEXT: |       | | |   | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:24:9)
> *const restrict'
> +// CHECK-NEXT: |       | | |   | | |-VarDecl {{.*}} <line:25:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | |   | | | `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       | | |   | | `-VarDecl {{.*}} <line:26:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       | | |   | |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT: |       | | |   | |-DeclRefExpr {{.*}} <line:25:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | |   | `-DeclRefExpr {{.*}} <line:26:25> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | | |   |-ImplicitParamDecl {{.*}} <line:24:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | |   |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | |   |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:24:9)
> *const restrict'
> +// CHECK-NEXT: |       | | |   |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT: |       | | |   | |-CapturedRecordAttr {{.*}} <<invalid
> sloc>> Implicit
> +// CHECK-NEXT: |       | | |   | |-FieldDecl {{.*}} <line:25:23> col:23
> implicit 'int'
> +// CHECK-NEXT: |       | | |   | | `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       | | |   | `-FieldDecl {{.*}} <line:26:25> col:25
> implicit 'int'
> +// CHECK-NEXT: |       | | |   |   `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       | | |   `-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       | | |     |-ForStmt {{.*}} <line:25:3, line:27:7>
> +// CHECK-NEXT: |       | | |     | |-DeclStmt {{.*}} <line:25:8, col:17>
> +// CHECK-NEXT: |       | | |     | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | |     | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       | | |     | |-<<<NULL>>>
> +// CHECK-NEXT: |       | | |     | |-BinaryOperator {{.*}} <col:19,
> col:23> 'int' '<'
> +// CHECK-NEXT: |       | | |     | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | |     | | | `-DeclRefExpr {{.*}} <col:19>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | |     | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | |     | |   `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | |     | |-UnaryOperator {{.*}} <col:26,
> col:27> 'int' postfix '++'
> +// CHECK-NEXT: |       | | |     | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | |     | `-ForStmt {{.*}} <line:26:5, line:27:7>
> +// CHECK-NEXT: |       | | |     |   |-DeclStmt {{.*}} <line:26:10,
> col:19>
> +// CHECK-NEXT: |       | | |     |   | `-VarDecl {{.*}} <col:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       | | |     |   |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT: |       | | |     |   |-<<<NULL>>>
> +// CHECK-NEXT: |       | | |     |   |-BinaryOperator {{.*}} <col:21,
> col:25> 'int' '<'
> +// CHECK-NEXT: |       | | |     |   | |-ImplicitCastExpr {{.*}} <col:21>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | |     |   | | `-DeclRefExpr {{.*}} <col:21>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | |     |   | `-ImplicitCastExpr {{.*}} <col:25>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | |     |   |   `-DeclRefExpr {{.*}} <col:25>
> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | | |     |   |-UnaryOperator {{.*}} <col:28,
> col:29> 'int' postfix '++'
> +// CHECK-NEXT: |       | | |     |   | `-DeclRefExpr {{.*}} <col:28>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | |     |   `-NullStmt {{.*}} <line:27:7>
> +// CHECK-NEXT: |       | | |     |-ImplicitParamDecl {{.*}} <line:24:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | |     |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | |     |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit used .previous.lb. 'const unsigned long'
> +// CHECK-NEXT: |       | | |     |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit used .previous.ub. 'const unsigned long'
> +// CHECK-NEXT: |       | | |     |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:24:9)
> *const restrict'
> +// CHECK-NEXT: |       | | |     |-VarDecl {{.*}} <line:25:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | |     | `-IntegerLiteral {{.*}} <col:16> 'int'
> 0
> +// CHECK-NEXT: |       | | |     `-VarDecl {{.*}} <line:26:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       | | |       `-IntegerLiteral {{.*}} <col:18> 'int'
> 0
> +// CHECK-NEXT: |       | | |-DeclRefExpr {{.*}} <line:25:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | `-DeclRefExpr {{.*}} <line:26:25> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | |-AlwaysInlineAttr {{.*}} <<invalid sloc>>
> Implicit __forceinline
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <line:24:9> col:9
> implicit .global_tid. 'const int'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .part_id. 'const int *const restrict'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .privates. 'void *const restrict'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .task_t. 'void *const'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:24:9)
> *const restrict'
> +// CHECK-NEXT: |       | |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT: |       | | |-CapturedRecordAttr {{.*}} <<invalid sloc>>
> Implicit
> +// CHECK-NEXT: |       | | |-FieldDecl {{.*}} <line:25:23> col:23
> implicit 'int'
> +// CHECK-NEXT: |       | | | `-OMPCaptureKindAttr {{.*}} <<invalid sloc>>
> Implicit 9
> +// CHECK-NEXT: |       | | `-FieldDecl {{.*}} <line:26:25> col:25
> implicit 'int'
> +// CHECK-NEXT: |       | |   `-OMPCaptureKindAttr {{.*}} <<invalid sloc>>
> Implicit 9
> +// CHECK-NEXT: |       | `-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc> nothrow
> +// CHECK-NEXT: |       |   |-CapturedStmt {{.*}} <line:25:3, line:27:7>
> +// CHECK-NEXT: |       |   | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       |   | | |-CapturedStmt {{.*}} <line:25:3,
> line:27:7>
> +// CHECK-NEXT: |       |   | | | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       |   | | | | |-ForStmt {{.*}} <line:25:3, line:27:7>
> +// CHECK-NEXT: |       |   | | | | | |-DeclStmt {{.*}} <line:25:8, col:17>
> +// CHECK-NEXT: |       |   | | | | | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       |   | | | | | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       |   | | | | | |-<<<NULL>>>
> +// CHECK-NEXT: |       |   | | | | | |-BinaryOperator {{.*}} <col:19,
> col:23> 'int' '<'
> +// CHECK-NEXT: |       |   | | | | | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |   | | | | | | | `-DeclRefExpr {{.*}} <col:19>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | | | | | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |   | | | | | |   `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       |   | | | | | |-UnaryOperator {{.*}} <col:26,
> col:27> 'int' postfix '++'
> +// CHECK-NEXT: |       |   | | | | | | `-DeclRefExpr {{.*}} <col:26>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | | | | | `-ForStmt {{.*}} <line:26:5,
> line:27:7>
> +// CHECK-NEXT: |       |   | | | | |   |-DeclStmt {{.*}} <line:26:10,
> col:19>
> +// CHECK-NEXT: |       |   | | | | |   | `-VarDecl {{.*}} <col:10,
> col:18> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       |   | | | | |   |   `-IntegerLiteral {{.*}}
> <col:18> 'int' 0
> +// CHECK-NEXT: |       |   | | | | |   |-<<<NULL>>>
> +// CHECK-NEXT: |       |   | | | | |   |-BinaryOperator {{.*}} <col:21,
> col:25> 'int' '<'
> +// CHECK-NEXT: |       |   | | | | |   | |-ImplicitCastExpr {{.*}}
> <col:21> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |   | | | | |   | | `-DeclRefExpr {{.*}} <col:21>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | | | | |   | `-ImplicitCastExpr {{.*}}
> <col:25> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |   | | | | |   |   `-DeclRefExpr {{.*}} <col:25>
> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       |   | | | | |   |-UnaryOperator {{.*}} <col:28,
> col:29> 'int' postfix '++'
> +// CHECK-NEXT: |       |   | | | | |   | `-DeclRefExpr {{.*}} <col:28>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | | | | |   `-NullStmt {{.*}} <line:27:7>
> +// CHECK-NEXT: |       |   | | | | |-ImplicitParamDecl {{.*}} <line:24:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |   | | | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |   | | | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit used .previous.lb. 'const unsigned long'
> +// CHECK-NEXT: |       |   | | | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit used .previous.ub. 'const unsigned long'
> +// CHECK-NEXT: |       |   | | | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:24:9)
> *const restrict'
> +// CHECK-NEXT: |       |   | | | | |-VarDecl {{.*}} <line:25:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       |   | | | | | `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       |   | | | | `-VarDecl {{.*}} <line:26:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       |   | | | |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT: |       |   | | | |-DeclRefExpr {{.*}} <line:25:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       |   | | | `-DeclRefExpr {{.*}} <line:26:25> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       |   | | |-ImplicitParamDecl {{.*}} <line:24:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |   | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |   | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:24:9)
> *const restrict'
> +// CHECK-NEXT: |       |   | | |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT: |       |   | | | |-CapturedRecordAttr {{.*}} <<invalid
> sloc>> Implicit
> +// CHECK-NEXT: |       |   | | | |-FieldDecl {{.*}} <line:25:23> col:23
> implicit 'int'
> +// CHECK-NEXT: |       |   | | | | `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       |   | | | `-FieldDecl {{.*}} <line:26:25> col:25
> implicit 'int'
> +// CHECK-NEXT: |       |   | | |   `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       |   | | `-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       |   | |   |-ForStmt {{.*}} <line:25:3, line:27:7>
> +// CHECK-NEXT: |       |   | |   | |-DeclStmt {{.*}} <line:25:8, col:17>
> +// CHECK-NEXT: |       |   | |   | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       |   | |   | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       |   | |   | |-<<<NULL>>>
> +// CHECK-NEXT: |       |   | |   | |-BinaryOperator {{.*}} <col:19,
> col:23> 'int' '<'
> +// CHECK-NEXT: |       |   | |   | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |   | |   | | | `-DeclRefExpr {{.*}} <col:19>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | |   | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |   | |   | |   `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       |   | |   | |-UnaryOperator {{.*}} <col:26,
> col:27> 'int' postfix '++'
> +// CHECK-NEXT: |       |   | |   | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | |   | `-ForStmt {{.*}} <line:26:5, line:27:7>
> +// CHECK-NEXT: |       |   | |   |   |-DeclStmt {{.*}} <line:26:10,
> col:19>
> +// CHECK-NEXT: |       |   | |   |   | `-VarDecl {{.*}} <col:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       |   | |   |   |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT: |       |   | |   |   |-<<<NULL>>>
> +// CHECK-NEXT: |       |   | |   |   |-BinaryOperator {{.*}} <col:21,
> col:25> 'int' '<'
> +// CHECK-NEXT: |       |   | |   |   | |-ImplicitCastExpr {{.*}} <col:21>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |   | |   |   | | `-DeclRefExpr {{.*}} <col:21>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | |   |   | `-ImplicitCastExpr {{.*}} <col:25>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |   | |   |   |   `-DeclRefExpr {{.*}} <col:25>
> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       |   | |   |   |-UnaryOperator {{.*}} <col:28,
> col:29> 'int' postfix '++'
> +// CHECK-NEXT: |       |   | |   |   | `-DeclRefExpr {{.*}} <col:28>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | |   |   `-NullStmt {{.*}} <line:27:7>
> +// CHECK-NEXT: |       |   | |   |-ImplicitParamDecl {{.*}} <line:24:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |   | |   |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |   | |   |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit used .previous.lb. 'const unsigned long'
> +// CHECK-NEXT: |       |   | |   |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit used .previous.ub. 'const unsigned long'
> +// CHECK-NEXT: |       |   | |   |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:24:9)
> *const restrict'
> +// CHECK-NEXT: |       |   | |   |-VarDecl {{.*}} <line:25:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       |   | |   | `-IntegerLiteral {{.*}} <col:16> 'int'
> 0
> +// CHECK-NEXT: |       |   | |   `-VarDecl {{.*}} <line:26:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       |   | |     `-IntegerLiteral {{.*}} <col:18> 'int'
> 0
> +// CHECK-NEXT: |       |   | |-DeclRefExpr {{.*}} <line:25:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       |   | `-DeclRefExpr {{.*}} <line:26:25> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       |   |-ImplicitParamDecl {{.*}} <line:24:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:24:9)
> *const restrict'
> +// CHECK-NEXT: |       |   |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT: |       |   | |-CapturedRecordAttr {{.*}} <<invalid sloc>>
> Implicit
> +// CHECK-NEXT: |       |   | |-FieldDecl {{.*}} <line:25:23> col:23
> implicit 'int'
> +// CHECK-NEXT: |       |   | | `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       |   | `-FieldDecl {{.*}} <line:26:25> col:25
> implicit 'int'
> +// CHECK-NEXT: |       |   |   `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       |   `-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       |     |-CapturedStmt {{.*}} <line:25:3, line:27:7>
> +// CHECK-NEXT: |       |     | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       |     | | |-ForStmt {{.*}} <line:25:3, line:27:7>
> +// CHECK-NEXT: |       |     | | | |-DeclStmt {{.*}} <line:25:8, col:17>
> +// CHECK-NEXT: |       |     | | | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       |     | | | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       |     | | | |-<<<NULL>>>
> +// CHECK-NEXT: |       |     | | | |-BinaryOperator {{.*}} <col:19,
> col:23> 'int' '<'
> +// CHECK-NEXT: |       |     | | | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |     | | | | | `-DeclRefExpr {{.*}} <col:19>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |     | | | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |     | | | |   `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       |     | | | |-UnaryOperator {{.*}} <col:26,
> col:27> 'int' postfix '++'
> +// CHECK-NEXT: |       |     | | | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |     | | | `-ForStmt {{.*}} <line:26:5, line:27:7>
> +// CHECK-NEXT: |       |     | | |   |-DeclStmt {{.*}} <line:26:10,
> col:19>
> +// CHECK-NEXT: |       |     | | |   | `-VarDecl {{.*}} <col:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       |     | | |   |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT: |       |     | | |   |-<<<NULL>>>
> +// CHECK-NEXT: |       |     | | |   |-BinaryOperator {{.*}} <col:21,
> col:25> 'int' '<'
> +// CHECK-NEXT: |       |     | | |   | |-ImplicitCastExpr {{.*}} <col:21>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |     | | |   | | `-DeclRefExpr {{.*}} <col:21>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |     | | |   | `-ImplicitCastExpr {{.*}} <col:25>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |     | | |   |   `-DeclRefExpr {{.*}} <col:25>
> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       |     | | |   |-UnaryOperator {{.*}} <col:28,
> col:29> 'int' postfix '++'
> +// CHECK-NEXT: |       |     | | |   | `-DeclRefExpr {{.*}} <col:28>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |     | | |   `-NullStmt {{.*}} <line:27:7>
> +// CHECK-NEXT: |       |     | | |-ImplicitParamDecl {{.*}} <line:24:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |     | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |     | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit used .previous.lb. 'const unsigned long'
> +// CHECK-NEXT: |       |     | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit used .previous.ub. 'const unsigned long'
> +// CHECK-NEXT: |       |     | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:24:9)
> *const restrict'
> +// CHECK-NEXT: |       |     | | |-VarDecl {{.*}} <line:25:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       |     | | | `-IntegerLiteral {{.*}} <col:16> 'int'
> 0
> +// CHECK-NEXT: |       |     | | `-VarDecl {{.*}} <line:26:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       |     | |   `-IntegerLiteral {{.*}} <col:18> 'int'
> 0
> +// CHECK-NEXT: |       |     | |-DeclRefExpr {{.*}} <line:25:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       |     | `-DeclRefExpr {{.*}} <line:26:25> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       |     |-ImplicitParamDecl {{.*}} <line:24:9> col:9
> implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |     |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |     |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:24:9)
> *const restrict'
> +// CHECK-NEXT: |       |     |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT: |       |     | |-CapturedRecordAttr {{.*}} <<invalid
> sloc>> Implicit
> +// CHECK-NEXT: |       |     | |-FieldDecl {{.*}} <line:25:23> col:23
> implicit 'int'
> +// CHECK-NEXT: |       |     | | `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       |     | `-FieldDecl {{.*}} <line:26:25> col:25
> implicit 'int'
> +// CHECK-NEXT: |       |     |   `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       |     `-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       |       |-ForStmt {{.*}} <line:25:3, line:27:7>
> +// CHECK-NEXT: |       |       | |-DeclStmt {{.*}} <line:25:8, col:17>
> +// CHECK-NEXT: |       |       | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       |       | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       |       | |-<<<NULL>>>
> +// CHECK-NEXT: |       |       | |-BinaryOperator {{.*}} <col:19, col:23>
> 'int' '<'
> +// CHECK-NEXT: |       |       | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |       | | | `-DeclRefExpr {{.*}} <col:19> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |       | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |       | |   `-DeclRefExpr {{.*}} <col:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       |       | |-UnaryOperator {{.*}} <col:26, col:27>
> 'int' postfix '++'
> +// CHECK-NEXT: |       |       | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |       | `-ForStmt {{.*}} <line:26:5, line:27:7>
> +// CHECK-NEXT: |       |       |   |-DeclStmt {{.*}} <line:26:10, col:19>
> +// CHECK-NEXT: |       |       |   | `-VarDecl {{.*}} <col:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       |       |   |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT: |       |       |   |-<<<NULL>>>
> +// CHECK-NEXT: |       |       |   |-BinaryOperator {{.*}} <col:21,
> col:25> 'int' '<'
> +// CHECK-NEXT: |       |       |   | |-ImplicitCastExpr {{.*}} <col:21>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |       |   | | `-DeclRefExpr {{.*}} <col:21>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |       |   | `-ImplicitCastExpr {{.*}} <col:25>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |       |   |   `-DeclRefExpr {{.*}} <col:25>
> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       |       |   |-UnaryOperator {{.*}} <col:28,
> col:29> 'int' postfix '++'
> +// CHECK-NEXT: |       |       |   | `-DeclRefExpr {{.*}} <col:28> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |       |   `-NullStmt {{.*}} <line:27:7>
> +// CHECK-NEXT: |       |       |-ImplicitParamDecl {{.*}} <line:24:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |       |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |       |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit used .previous.lb. 'const unsigned long'
> +// CHECK-NEXT: |       |       |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit used .previous.ub. 'const unsigned long'
> +// CHECK-NEXT: |       |       |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:24:9)
> *const restrict'
> +// CHECK-NEXT: |       |       |-VarDecl {{.*}} <line:25:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       |       | `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       |       `-VarDecl {{.*}} <line:26:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       |         `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT: |       |-DeclRefExpr {{.*}} <line:25:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       `-DeclRefExpr {{.*}} <line:26:25> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: `-FunctionDecl {{.*}} <line:30:1, line:36:1> line:30:6
> test_five 'void (int, int, int)'
> +// CHECK-NEXT:   |-ParmVarDecl {{.*}} <col:16, col:20> col:20 used x 'int'
> +// CHECK-NEXT:   |-ParmVarDecl {{.*}} <col:23, col:27> col:27 used y 'int'
> +// CHECK-NEXT:   |-ParmVarDecl {{.*}} <col:30, col:34> col:34 used z 'int'
> +// CHECK-NEXT:   `-CompoundStmt {{.*}} <col:37, line:36:1>
> +// CHECK-NEXT:     `-OMPTargetTeamsDistributeParallelForSimdDirective
> {{.*}} <line:31:9, col:66>
> +// CHECK-NEXT:       |-OMPCollapseClause {{.*}} <col:55, col:65>
> +// CHECK-NEXT:       | `-ConstantExpr {{.*}} <col:64> 'int'
> +// CHECK-NEXT:       |   `-IntegerLiteral {{.*}} <col:64> 'int' 2
> +// CHECK-NEXT:       |-OMPFirstprivateClause {{.*}} <<invalid sloc>>
> <implicit>
> +// CHECK-NEXT:       | |-DeclRefExpr {{.*}} <line:32:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT:       | |-DeclRefExpr {{.*}} <line:33:25> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT:       | `-DeclRefExpr {{.*}} <line:34:27> 'int' lvalue
> ParmVar {{.*}} 'z' 'int'
> +// CHECK-NEXT:       `-CapturedStmt {{.*}} <line:32:3, line:35:9>
> +// CHECK-NEXT:         |-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc> nothrow
> +// CHECK-NEXT:         | |-CapturedStmt {{.*}} <line:32:3, line:35:9>
> +// CHECK-NEXT:         | | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT:         | | | |-CapturedStmt {{.*}} <line:32:3, line:35:9>
> +// CHECK-NEXT:         | | | | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT:         | | | | | |-CapturedStmt {{.*}} <line:32:3,
> line:35:9>
> +// CHECK-NEXT:         | | | | | | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT:         | | | | | | | |-ForStmt {{.*}} <line:32:3,
> line:35:9>
> +// CHECK-NEXT:         | | | | | | | | |-DeclStmt {{.*}} <line:32:8,
> col:17>
> +// CHECK-NEXT:         | | | | | | | | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT:         | | | | | | | | |   `-IntegerLiteral {{.*}}
> <col:16> 'int' 0
> +// CHECK-NEXT:         | | | | | | | | |-<<<NULL>>>
> +// CHECK-NEXT:         | | | | | | | | |-BinaryOperator {{.*}} <col:19,
> col:23> 'int' '<'
> +// CHECK-NEXT:         | | | | | | | | | |-ImplicitCastExpr {{.*}}
> <col:19> 'int' <LValueToRValue>
> +// CHECK-NEXT:         | | | | | | | | | | `-DeclRefExpr {{.*}} <col:19>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | | | | | | | | `-ImplicitCastExpr {{.*}}
> <col:23> 'int' <LValueToRValue>
> +// CHECK-NEXT:         | | | | | | | | |   `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT:         | | | | | | | | |-UnaryOperator {{.*}} <col:26,
> col:27> 'int' postfix '++'
> +// CHECK-NEXT:         | | | | | | | | | `-DeclRefExpr {{.*}} <col:26>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | | | | | | | `-ForStmt {{.*}} <line:33:5,
> line:35:9>
> +// CHECK-NEXT:         | | | | | | | |   |-DeclStmt {{.*}} <line:33:10,
> col:19>
> +// CHECK-NEXT:         | | | | | | | |   | `-VarDecl {{.*}} <col:10,
> col:18> col:14 used i 'int' cinit
> +// CHECK-NEXT:         | | | | | | | |   |   `-IntegerLiteral {{.*}}
> <col:18> 'int' 0
> +// CHECK-NEXT:         | | | | | | | |   |-<<<NULL>>>
> +// CHECK-NEXT:         | | | | | | | |   |-BinaryOperator {{.*}} <col:21,
> col:25> 'int' '<'
> +// CHECK-NEXT:         | | | | | | | |   | |-ImplicitCastExpr {{.*}}
> <col:21> 'int' <LValueToRValue>
> +// CHECK-NEXT:         | | | | | | | |   | | `-DeclRefExpr {{.*}}
> <col:21> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | | | | | | |   | `-ImplicitCastExpr {{.*}}
> <col:25> 'int' <LValueToRValue>
> +// CHECK-NEXT:         | | | | | | | |   |   `-DeclRefExpr {{.*}}
> <col:25> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT:         | | | | | | | |   |-UnaryOperator {{.*}} <col:28,
> col:29> 'int' postfix '++'
> +// CHECK-NEXT:         | | | | | | | |   | `-DeclRefExpr {{.*}} <col:28>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | | | | | | |   `-ForStmt {{.*}} <line:34:7,
> line:35:9>
> +// CHECK-NEXT:         | | | | | | | |     |-DeclStmt {{.*}} <line:34:12,
> col:21>
> +// CHECK-NEXT:         | | | | | | | |     | `-VarDecl {{.*}} <col:12,
> col:20> col:16 used i 'int' cinit
> +// CHECK-NEXT:         | | | | | | | |     |   `-IntegerLiteral {{.*}}
> <col:20> 'int' 0
> +// CHECK-NEXT:         | | | | | | | |     |-<<<NULL>>>
> +// CHECK-NEXT:         | | | | | | | |     |-BinaryOperator {{.*}}
> <col:23, col:27> 'int' '<'
> +// CHECK-NEXT:         | | | | | | | |     | |-ImplicitCastExpr {{.*}}
> <col:23> 'int' <LValueToRValue>
> +// CHECK-NEXT:         | | | | | | | |     | | `-DeclRefExpr {{.*}}
> <col:23> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | | | | | | |     | `-ImplicitCastExpr {{.*}}
> <col:27> 'int' <LValueToRValue>
> +// CHECK-NEXT:         | | | | | | | |     |   `-DeclRefExpr {{.*}}
> <col:27> 'int' lvalue ParmVar {{.*}} 'z' 'int'
> +// CHECK-NEXT:         | | | | | | | |     |-UnaryOperator {{.*}}
> <col:30, col:31> 'int' postfix '++'
> +// CHECK-NEXT:         | | | | | | | |     | `-DeclRefExpr {{.*}}
> <col:30> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | | | | | | |     `-NullStmt {{.*}} <line:35:9>
> +// CHECK-NEXT:         | | | | | | | |-ImplicitParamDecl {{.*}}
> <line:31:9> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT:         | | | | | | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT:         | | | | | | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit used .previous.lb. 'const unsigned long'
> +// CHECK-NEXT:         | | | | | | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit used .previous.ub. 'const unsigned long'
> +// CHECK-NEXT:         | | | | | | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:31:9)
> *const restrict'
> +// CHECK-NEXT:         | | | | | | | |-VarDecl {{.*}} <line:32:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT:         | | | | | | | | `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT:         | | | | | | | |-VarDecl {{.*}} <line:33:10,
> col:18> col:14 used i 'int' cinit
> +// CHECK-NEXT:         | | | | | | | | `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT:         | | | | | | | `-VarDecl {{.*}} <line:34:12,
> col:20> col:16 used i 'int' cinit
> +// CHECK-NEXT:         | | | | | | |   `-IntegerLiteral {{.*}} <col:20>
> 'int' 0
> +// CHECK-NEXT:         | | | | | | |-DeclRefExpr {{.*}} <line:32:23>
> 'int' lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT:         | | | | | | |-DeclRefExpr {{.*}} <line:33:25>
> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT:         | | | | | | `-DeclRefExpr {{.*}} <line:34:27>
> 'int' lvalue ParmVar {{.*}} 'z' 'int'
> +// CHECK-NEXT:         | | | | | |-ImplicitParamDecl {{.*}} <line:31:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT:         | | | | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT:         | | | | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:31:9)
> *const restrict'
> +// CHECK-NEXT:         | | | | | |-RecordDecl {{.*}} <col:9> col:9
> implicit struct definition
> +// CHECK-NEXT:         | | | | | | |-CapturedRecordAttr {{.*}} <<invalid
> sloc>> Implicit
> +// CHECK-NEXT:         | | | | | | |-FieldDecl {{.*}} <line:32:23> col:23
> implicit 'int'
> +// CHECK-NEXT:         | | | | | | | `-OMPCaptureKindAttr {{.*}}
> <<invalid sloc>> Implicit 9
> +// CHECK-NEXT:         | | | | | | |-FieldDecl {{.*}} <line:33:25> col:25
> implicit 'int'
> +// CHECK-NEXT:         | | | | | | | `-OMPCaptureKindAttr {{.*}}
> <<invalid sloc>> Implicit 9
> +// CHECK-NEXT:         | | | | | | `-FieldDecl {{.*}} <line:34:27> col:27
> implicit 'int'
> +// CHECK-NEXT:         | | | | | |   `-OMPCaptureKindAttr {{.*}}
> <<invalid sloc>> Implicit 9
> +// CHECK-NEXT:         | | | | | `-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT:         | | | | |   |-ForStmt {{.*}} <line:32:3, line:35:9>
> +// CHECK-NEXT:         | | | | |   | |-DeclStmt {{.*}} <line:32:8, col:17>
> +// CHECK-NEXT:         | | | | |   | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT:         | | | | |   | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT:         | | | | |   | |-<<<NULL>>>
> +// CHECK-NEXT:         | | | | |   | |-BinaryOperator {{.*}} <col:19,
> col:23> 'int' '<'
> +// CHECK-NEXT:         | | | | |   | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         | | | | |   | | | `-DeclRefExpr {{.*}} <col:19>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | | | |   | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         | | | | |   | |   `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT:         | | | | |   | |-UnaryOperator {{.*}} <col:26,
> col:27> 'int' postfix '++'
> +// CHECK-NEXT:         | | | | |   | | `-DeclRefExpr {{.*}} <col:26>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | | | |   | `-ForStmt {{.*}} <line:33:5,
> line:35:9>
> +// CHECK-NEXT:         | | | | |   |   |-DeclStmt {{.*}} <line:33:10,
> col:19>
> +// CHECK-NEXT:         | | | | |   |   | `-VarDecl {{.*}} <col:10,
> col:18> col:14 used i 'int' cinit
> +// CHECK-NEXT:         | | | | |   |   |   `-IntegerLiteral {{.*}}
> <col:18> 'int' 0
> +// CHECK-NEXT:         | | | | |   |   |-<<<NULL>>>
> +// CHECK-NEXT:         | | | | |   |   |-BinaryOperator {{.*}} <col:21,
> col:25> 'int' '<'
> +// CHECK-NEXT:         | | | | |   |   | |-ImplicitCastExpr {{.*}}
> <col:21> 'int' <LValueToRValue>
> +// CHECK-NEXT:         | | | | |   |   | | `-DeclRefExpr {{.*}} <col:21>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | | | |   |   | `-ImplicitCastExpr {{.*}}
> <col:25> 'int' <LValueToRValue>
> +// CHECK-NEXT:         | | | | |   |   |   `-DeclRefExpr {{.*}} <col:25>
> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT:         | | | | |   |   |-UnaryOperator {{.*}} <col:28,
> col:29> 'int' postfix '++'
> +// CHECK-NEXT:         | | | | |   |   | `-DeclRefExpr {{.*}} <col:28>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | | | |   |   `-ForStmt {{.*}} <line:34:7,
> line:35:9>
> +// CHECK-NEXT:         | | | | |   |     |-DeclStmt {{.*}} <line:34:12,
> col:21>
> +// CHECK-NEXT:         | | | | |   |     | `-VarDecl {{.*}} <col:12,
> col:20> col:16 used i 'int' cinit
> +// CHECK-NEXT:         | | | | |   |     |   `-IntegerLiteral {{.*}}
> <col:20> 'int' 0
> +// CHECK-NEXT:         | | | | |   |     |-<<<NULL>>>
> +// CHECK-NEXT:         | | | | |   |     |-BinaryOperator {{.*}} <col:23,
> col:27> 'int' '<'
> +// CHECK-NEXT:         | | | | |   |     | |-ImplicitCastExpr {{.*}}
> <col:23> 'int' <LValueToRValue>
> +// CHECK-NEXT:         | | | | |   |     | | `-DeclRefExpr {{.*}}
> <col:23> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | | | |   |     | `-ImplicitCastExpr {{.*}}
> <col:27> 'int' <LValueToRValue>
> +// CHECK-NEXT:         | | | | |   |     |   `-DeclRefExpr {{.*}}
> <col:27> 'int' lvalue ParmVar {{.*}} 'z' 'int'
> +// CHECK-NEXT:         | | | | |   |     |-UnaryOperator {{.*}} <col:30,
> col:31> 'int' postfix '++'
> +// CHECK-NEXT:         | | | | |   |     | `-DeclRefExpr {{.*}} <col:30>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | | | |   |     `-NullStmt {{.*}} <line:35:9>
> +// CHECK-NEXT:         | | | | |   |-ImplicitParamDecl {{.*}} <line:31:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT:         | | | | |   |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT:         | | | | |   |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit used .previous.lb. 'const unsigned long'
> +// CHECK-NEXT:         | | | | |   |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit used .previous.ub. 'const unsigned long'
> +// CHECK-NEXT:         | | | | |   |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:31:9)
> *const restrict'
> +// CHECK-NEXT:         | | | | |   |-VarDecl {{.*}} <line:32:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT:         | | | | |   | `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT:         | | | | |   |-VarDecl {{.*}} <line:33:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT:         | | | | |   | `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT:         | | | | |   `-VarDecl {{.*}} <line:34:12, col:20>
> col:16 used i 'int' cinit
> +// CHECK-NEXT:         | | | | |     `-IntegerLiteral {{.*}} <col:20>
> 'int' 0
> +// CHECK-NEXT:         | | | | |-DeclRefExpr {{.*}} <line:32:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT:         | | | | |-DeclRefExpr {{.*}} <line:33:25> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT:         | | | | `-DeclRefExpr {{.*}} <line:34:27> 'int'
> lvalue ParmVar {{.*}} 'z' 'int'
> +// CHECK-NEXT:         | | | |-ImplicitParamDecl {{.*}} <line:31:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:31:9)
> *const restrict'
> +// CHECK-NEXT:         | | | |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT:         | | | | |-CapturedRecordAttr {{.*}} <<invalid
> sloc>> Implicit
> +// CHECK-NEXT:         | | | | |-FieldDecl {{.*}} <line:32:23> col:23
> implicit 'int'
> +// CHECK-NEXT:         | | | | | `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT:         | | | | |-FieldDecl {{.*}} <line:33:25> col:25
> implicit 'int'
> +// CHECK-NEXT:         | | | | | `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT:         | | | | `-FieldDecl {{.*}} <line:34:27> col:27
> implicit 'int'
> +// CHECK-NEXT:         | | | |   `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT:         | | | `-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT:         | | |   |-CapturedStmt {{.*}} <line:32:3,
> line:35:9>
> +// CHECK-NEXT:         | | |   | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT:         | | |   | | |-ForStmt {{.*}} <line:32:3, line:35:9>
> +// CHECK-NEXT:         | | |   | | | |-DeclStmt {{.*}} <line:32:8, col:17>
> +// CHECK-NEXT:         | | |   | | | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT:         | | |   | | | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT:         | | |   | | | |-<<<NULL>>>
> +// CHECK-NEXT:         | | |   | | | |-BinaryOperator {{.*}} <col:19,
> col:23> 'int' '<'
> +// CHECK-NEXT:         | | |   | | | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         | | |   | | | | | `-DeclRefExpr {{.*}} <col:19>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | |   | | | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         | | |   | | | |   `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT:         | | |   | | | |-UnaryOperator {{.*}} <col:26,
> col:27> 'int' postfix '++'
> +// CHECK-NEXT:         | | |   | | | | `-DeclRefExpr {{.*}} <col:26>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | |   | | | `-ForStmt {{.*}} <line:33:5,
> line:35:9>
> +// CHECK-NEXT:         | | |   | | |   |-DeclStmt {{.*}} <line:33:10,
> col:19>
> +// CHECK-NEXT:         | | |   | | |   | `-VarDecl {{.*}} <col:10,
> col:18> col:14 used i 'int' cinit
> +// CHECK-NEXT:         | | |   | | |   |   `-IntegerLiteral {{.*}}
> <col:18> 'int' 0
> +// CHECK-NEXT:         | | |   | | |   |-<<<NULL>>>
> +// CHECK-NEXT:         | | |   | | |   |-BinaryOperator {{.*}} <col:21,
> col:25> 'int' '<'
> +// CHECK-NEXT:         | | |   | | |   | |-ImplicitCastExpr {{.*}}
> <col:21> 'int' <LValueToRValue>
> +// CHECK-NEXT:         | | |   | | |   | | `-DeclRefExpr {{.*}} <col:21>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | |   | | |   | `-ImplicitCastExpr {{.*}}
> <col:25> 'int' <LValueToRValue>
> +// CHECK-NEXT:         | | |   | | |   |   `-DeclRefExpr {{.*}} <col:25>
> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT:         | | |   | | |   |-UnaryOperator {{.*}} <col:28,
> col:29> 'int' postfix '++'
> +// CHECK-NEXT:         | | |   | | |   | `-DeclRefExpr {{.*}} <col:28>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | |   | | |   `-ForStmt {{.*}} <line:34:7,
> line:35:9>
> +// CHECK-NEXT:         | | |   | | |     |-DeclStmt {{.*}} <line:34:12,
> col:21>
> +// CHECK-NEXT:         | | |   | | |     | `-VarDecl {{.*}} <col:12,
> col:20> col:16 used i 'int' cinit
> +// CHECK-NEXT:         | | |   | | |     |   `-IntegerLiteral {{.*}}
> <col:20> 'int' 0
> +// CHECK-NEXT:         | | |   | | |     |-<<<NULL>>>
> +// CHECK-NEXT:         | | |   | | |     |-BinaryOperator {{.*}} <col:23,
> col:27> 'int' '<'
> +// CHECK-NEXT:         | | |   | | |     | |-ImplicitCastExpr {{.*}}
> <col:23> 'int' <LValueToRValue>
> +// CHECK-NEXT:         | | |   | | |     | | `-DeclRefExpr {{.*}}
> <col:23> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | |   | | |     | `-ImplicitCastExpr {{.*}}
> <col:27> 'int' <LValueToRValue>
> +// CHECK-NEXT:         | | |   | | |     |   `-DeclRefExpr {{.*}}
> <col:27> 'int' lvalue ParmVar {{.*}} 'z' 'int'
> +// CHECK-NEXT:         | | |   | | |     |-UnaryOperator {{.*}} <col:30,
> col:31> 'int' postfix '++'
> +// CHECK-NEXT:         | | |   | | |     | `-DeclRefExpr {{.*}} <col:30>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | |   | | |     `-NullStmt {{.*}} <line:35:9>
> +// CHECK-NEXT:         | | |   | | |-ImplicitParamDecl {{.*}} <line:31:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT:         | | |   | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT:         | | |   | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit used .previous.lb. 'const unsigned long'
> +// CHECK-NEXT:         | | |   | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit used .previous.ub. 'const unsigned long'
> +// CHECK-NEXT:         | | |   | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:31:9)
> *const restrict'
> +// CHECK-NEXT:         | | |   | | |-VarDecl {{.*}} <line:32:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT:         | | |   | | | `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT:         | | |   | | |-VarDecl {{.*}} <line:33:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT:         | | |   | | | `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT:         | | |   | | `-VarDecl {{.*}} <line:34:12, col:20>
> col:16 used i 'int' cinit
> +// CHECK-NEXT:         | | |   | |   `-IntegerLiteral {{.*}} <col:20>
> 'int' 0
> +// CHECK-NEXT:         | | |   | |-DeclRefExpr {{.*}} <line:32:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT:         | | |   | |-DeclRefExpr {{.*}} <line:33:25> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT:         | | |   | `-DeclRefExpr {{.*}} <line:34:27> 'int'
> lvalue ParmVar {{.*}} 'z' 'int'
> +// CHECK-NEXT:         | | |   |-ImplicitParamDecl {{.*}} <line:31:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT:         | | |   |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT:         | | |   |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:31:9)
> *const restrict'
> +// CHECK-NEXT:         | | |   |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT:         | | |   | |-CapturedRecordAttr {{.*}} <<invalid
> sloc>> Implicit
> +// CHECK-NEXT:         | | |   | |-FieldDecl {{.*}} <line:32:23> col:23
> implicit 'int'
> +// CHECK-NEXT:         | | |   | | `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT:         | | |   | |-FieldDecl {{.*}} <line:33:25> col:25
> implicit 'int'
> +// CHECK-NEXT:         | | |   | | `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT:         | | |   | `-FieldDecl {{.*}} <line:34:27> col:27
> implicit 'int'
> +// CHECK-NEXT:         | | |   |   `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT:         | | |   `-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT:         | | |     |-ForStmt {{.*}} <line:32:3, line:35:9>
> +// CHECK-NEXT:         | | |     | |-DeclStmt {{.*}} <line:32:8, col:17>
> +// CHECK-NEXT:         | | |     | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT:         | | |     | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT:         | | |     | |-<<<NULL>>>
> +// CHECK-NEXT:         | | |     | |-BinaryOperator {{.*}} <col:19,
> col:23> 'int' '<'
> +// CHECK-NEXT:         | | |     | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         | | |     | | | `-DeclRefExpr {{.*}} <col:19>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | |     | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         | | |     | |   `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT:         | | |     | |-UnaryOperator {{.*}} <col:26,
> col:27> 'int' postfix '++'
> +// CHECK-NEXT:         | | |     | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | |     | `-ForStmt {{.*}} <line:33:5, line:35:9>
> +// CHECK-NEXT:         | | |     |   |-DeclStmt {{.*}} <line:33:10,
> col:19>
> +// CHECK-NEXT:         | | |     |   | `-VarDecl {{.*}} <col:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT:         | | |     |   |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT:         | | |     |   |-<<<NULL>>>
> +// CHECK-NEXT:         | | |     |   |-BinaryOperator {{.*}} <col:21,
> col:25> 'int' '<'
> +// CHECK-NEXT:         | | |     |   | |-ImplicitCastExpr {{.*}} <col:21>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         | | |     |   | | `-DeclRefExpr {{.*}} <col:21>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | |     |   | `-ImplicitCastExpr {{.*}} <col:25>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         | | |     |   |   `-DeclRefExpr {{.*}} <col:25>
> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT:         | | |     |   |-UnaryOperator {{.*}} <col:28,
> col:29> 'int' postfix '++'
> +// CHECK-NEXT:         | | |     |   | `-DeclRefExpr {{.*}} <col:28>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | |     |   `-ForStmt {{.*}} <line:34:7,
> line:35:9>
> +// CHECK-NEXT:         | | |     |     |-DeclStmt {{.*}} <line:34:12,
> col:21>
> +// CHECK-NEXT:         | | |     |     | `-VarDecl {{.*}} <col:12,
> col:20> col:16 used i 'int' cinit
> +// CHECK-NEXT:         | | |     |     |   `-IntegerLiteral {{.*}}
> <col:20> 'int' 0
> +// CHECK-NEXT:         | | |     |     |-<<<NULL>>>
> +// CHECK-NEXT:         | | |     |     |-BinaryOperator {{.*}} <col:23,
> col:27> 'int' '<'
> +// CHECK-NEXT:         | | |     |     | |-ImplicitCastExpr {{.*}}
> <col:23> 'int' <LValueToRValue>
> +// CHECK-NEXT:         | | |     |     | | `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | |     |     | `-ImplicitCastExpr {{.*}}
> <col:27> 'int' <LValueToRValue>
> +// CHECK-NEXT:         | | |     |     |   `-DeclRefExpr {{.*}} <col:27>
> 'int' lvalue ParmVar {{.*}} 'z' 'int'
> +// CHECK-NEXT:         | | |     |     |-UnaryOperator {{.*}} <col:30,
> col:31> 'int' postfix '++'
> +// CHECK-NEXT:         | | |     |     | `-DeclRefExpr {{.*}} <col:30>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | |     |     `-NullStmt {{.*}} <line:35:9>
> +// CHECK-NEXT:         | | |     |-ImplicitParamDecl {{.*}} <line:31:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT:         | | |     |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT:         | | |     |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit used .previous.lb. 'const unsigned long'
> +// CHECK-NEXT:         | | |     |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit used .previous.ub. 'const unsigned long'
> +// CHECK-NEXT:         | | |     |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:31:9)
> *const restrict'
> +// CHECK-NEXT:         | | |     |-VarDecl {{.*}} <line:32:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT:         | | |     | `-IntegerLiteral {{.*}} <col:16> 'int'
> 0
> +// CHECK-NEXT:         | | |     |-VarDecl {{.*}} <line:33:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT:         | | |     | `-IntegerLiteral {{.*}} <col:18> 'int'
> 0
> +// CHECK-NEXT:         | | |     `-VarDecl {{.*}} <line:34:12, col:20>
> col:16 used i 'int' cinit
> +// CHECK-NEXT:         | | |       `-IntegerLiteral {{.*}} <col:20> 'int'
> 0
> +// CHECK-NEXT:         | | |-DeclRefExpr {{.*}} <line:32:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT:         | | |-DeclRefExpr {{.*}} <line:33:25> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT:         | | `-DeclRefExpr {{.*}} <line:34:27> 'int' lvalue
> ParmVar {{.*}} 'z' 'int'
> +// CHECK-NEXT:         | |-AlwaysInlineAttr {{.*}} <<invalid sloc>>
> Implicit __forceinline
> +// CHECK-NEXT:         | |-ImplicitParamDecl {{.*}} <line:31:9> col:9
> implicit .global_tid. 'const int'
> +// CHECK-NEXT:         | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .part_id. 'const int *const restrict'
> +// CHECK-NEXT:         | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .privates. 'void *const restrict'
> +// CHECK-NEXT:         | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)'
> +// CHECK-NEXT:         | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .task_t. 'void *const'
> +// CHECK-NEXT:         | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:31:9)
> *const restrict'
> +// CHECK-NEXT:         | |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT:         | | |-CapturedRecordAttr {{.*}} <<invalid sloc>>
> Implicit
> +// CHECK-NEXT:         | | |-FieldDecl {{.*}} <line:32:23> col:23
> implicit 'int'
> +// CHECK-NEXT:         | | | `-OMPCaptureKindAttr {{.*}} <<invalid sloc>>
> Implicit 9
> +// CHECK-NEXT:         | | |-FieldDecl {{.*}} <line:33:25> col:25
> implicit 'int'
> +// CHECK-NEXT:         | | | `-OMPCaptureKindAttr {{.*}} <<invalid sloc>>
> Implicit 9
> +// CHECK-NEXT:         | | `-FieldDecl {{.*}} <line:34:27> col:27
> implicit 'int'
> +// CHECK-NEXT:         | |   `-OMPCaptureKindAttr {{.*}} <<invalid sloc>>
> Implicit 9
> +// CHECK-NEXT:         | `-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc> nothrow
> +// CHECK-NEXT:         |   |-CapturedStmt {{.*}} <line:32:3, line:35:9>
> +// CHECK-NEXT:         |   | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT:         |   | | |-CapturedStmt {{.*}} <line:32:3,
> line:35:9>
> +// CHECK-NEXT:         |   | | | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT:         |   | | | | |-ForStmt {{.*}} <line:32:3, line:35:9>
> +// CHECK-NEXT:         |   | | | | | |-DeclStmt {{.*}} <line:32:8, col:17>
> +// CHECK-NEXT:         |   | | | | | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT:         |   | | | | | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT:         |   | | | | | |-<<<NULL>>>
> +// CHECK-NEXT:         |   | | | | | |-BinaryOperator {{.*}} <col:19,
> col:23> 'int' '<'
> +// CHECK-NEXT:         |   | | | | | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         |   | | | | | | | `-DeclRefExpr {{.*}} <col:19>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         |   | | | | | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         |   | | | | | |   `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT:         |   | | | | | |-UnaryOperator {{.*}} <col:26,
> col:27> 'int' postfix '++'
> +// CHECK-NEXT:         |   | | | | | | `-DeclRefExpr {{.*}} <col:26>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         |   | | | | | `-ForStmt {{.*}} <line:33:5,
> line:35:9>
> +// CHECK-NEXT:         |   | | | | |   |-DeclStmt {{.*}} <line:33:10,
> col:19>
> +// CHECK-NEXT:         |   | | | | |   | `-VarDecl {{.*}} <col:10,
> col:18> col:14 used i 'int' cinit
> +// CHECK-NEXT:         |   | | | | |   |   `-IntegerLiteral {{.*}}
> <col:18> 'int' 0
> +// CHECK-NEXT:         |   | | | | |   |-<<<NULL>>>
> +// CHECK-NEXT:         |   | | | | |   |-BinaryOperator {{.*}} <col:21,
> col:25> 'int' '<'
> +// CHECK-NEXT:         |   | | | | |   | |-ImplicitCastExpr {{.*}}
> <col:21> 'int' <LValueToRValue>
> +// CHECK-NEXT:         |   | | | | |   | | `-DeclRefExpr {{.*}} <col:21>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         |   | | | | |   | `-ImplicitCastExpr {{.*}}
> <col:25> 'int' <LValueToRValue>
> +// CHECK-NEXT:         |   | | | | |   |   `-DeclRefExpr {{.*}} <col:25>
> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT:         |   | | | | |   |-UnaryOperator {{.*}} <col:28,
> col:29> 'int' postfix '++'
> +// CHECK-NEXT:         |   | | | | |   | `-DeclRefExpr {{.*}} <col:28>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         |   | | | | |   `-ForStmt {{.*}} <line:34:7,
> line:35:9>
> +// CHECK-NEXT:         |   | | | | |     |-DeclStmt {{.*}} <line:34:12,
> col:21>
> +// CHECK-NEXT:         |   | | | | |     | `-VarDecl {{.*}} <col:12,
> col:20> col:16 used i 'int' cinit
> +// CHECK-NEXT:         |   | | | | |     |   `-IntegerLiteral {{.*}}
> <col:20> 'int' 0
> +// CHECK-NEXT:         |   | | | | |     |-<<<NULL>>>
> +// CHECK-NEXT:         |   | | | | |     |-BinaryOperator {{.*}} <col:23,
> col:27> 'int' '<'
> +// CHECK-NEXT:         |   | | | | |     | |-ImplicitCastExpr {{.*}}
> <col:23> 'int' <LValueToRValue>
> +// CHECK-NEXT:         |   | | | | |     | | `-DeclRefExpr {{.*}}
> <col:23> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         |   | | | | |     | `-ImplicitCastExpr {{.*}}
> <col:27> 'int' <LValueToRValue>
> +// CHECK-NEXT:         |   | | | | |     |   `-DeclRefExpr {{.*}}
> <col:27> 'int' lvalue ParmVar {{.*}} 'z' 'int'
> +// CHECK-NEXT:         |   | | | | |     |-UnaryOperator {{.*}} <col:30,
> col:31> 'int' postfix '++'
> +// CHECK-NEXT:         |   | | | | |     | `-DeclRefExpr {{.*}} <col:30>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         |   | | | | |     `-NullStmt {{.*}} <line:35:9>
> +// CHECK-NEXT:         |   | | | | |-ImplicitParamDecl {{.*}} <line:31:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT:         |   | | | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT:         |   | | | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit used .previous.lb. 'const unsigned long'
> +// CHECK-NEXT:         |   | | | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit used .previous.ub. 'const unsigned long'
> +// CHECK-NEXT:         |   | | | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:31:9)
> *const restrict'
> +// CHECK-NEXT:         |   | | | | |-VarDecl {{.*}} <line:32:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT:         |   | | | | | `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT:         |   | | | | |-VarDecl {{.*}} <line:33:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT:         |   | | | | | `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT:         |   | | | | `-VarDecl {{.*}} <line:34:12, col:20>
> col:16 used i 'int' cinit
> +// CHECK-NEXT:         |   | | | |   `-IntegerLiteral {{.*}} <col:20>
> 'int' 0
> +// CHECK-NEXT:         |   | | | |-DeclRefExpr {{.*}} <line:32:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT:         |   | | | |-DeclRefExpr {{.*}} <line:33:25> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT:         |   | | | `-DeclRefExpr {{.*}} <line:34:27> 'int'
> lvalue ParmVar {{.*}} 'z' 'int'
> +// CHECK-NEXT:         |   | | |-ImplicitParamDecl {{.*}} <line:31:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT:         |   | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT:         |   | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:31:9)
> *const restrict'
> +// CHECK-NEXT:         |   | | |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT:         |   | | | |-CapturedRecordAttr {{.*}} <<invalid
> sloc>> Implicit
> +// CHECK-NEXT:         |   | | | |-FieldDecl {{.*}} <line:32:23> col:23
> implicit 'int'
> +// CHECK-NEXT:         |   | | | | `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT:         |   | | | |-FieldDecl {{.*}} <line:33:25> col:25
> implicit 'int'
> +// CHECK-NEXT:         |   | | | | `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT:         |   | | | `-FieldDecl {{.*}} <line:34:27> col:27
> implicit 'int'
> +// CHECK-NEXT:         |   | | |   `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT:         |   | | `-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT:         |   | |   |-ForStmt {{.*}} <line:32:3, line:35:9>
> +// CHECK-NEXT:         |   | |   | |-DeclStmt {{.*}} <line:32:8, col:17>
> +// CHECK-NEXT:         |   | |   | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT:         |   | |   | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT:         |   | |   | |-<<<NULL>>>
> +// CHECK-NEXT:         |   | |   | |-BinaryOperator {{.*}} <col:19,
> col:23> 'int' '<'
> +// CHECK-NEXT:         |   | |   | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         |   | |   | | | `-DeclRefExpr {{.*}} <col:19>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         |   | |   | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         |   | |   | |   `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT:         |   | |   | |-UnaryOperator {{.*}} <col:26,
> col:27> 'int' postfix '++'
> +// CHECK-NEXT:         |   | |   | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         |   | |   | `-ForStmt {{.*}} <line:33:5, line:35:9>
> +// CHECK-NEXT:         |   | |   |   |-DeclStmt {{.*}} <line:33:10,
> col:19>
> +// CHECK-NEXT:         |   | |   |   | `-VarDecl {{.*}} <col:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT:         |   | |   |   |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT:         |   | |   |   |-<<<NULL>>>
> +// CHECK-NEXT:         |   | |   |   |-BinaryOperator {{.*}} <col:21,
> col:25> 'int' '<'
> +// CHECK-NEXT:         |   | |   |   | |-ImplicitCastExpr {{.*}} <col:21>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         |   | |   |   | | `-DeclRefExpr {{.*}} <col:21>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         |   | |   |   | `-ImplicitCastExpr {{.*}} <col:25>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         |   | |   |   |   `-DeclRefExpr {{.*}} <col:25>
> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT:         |   | |   |   |-UnaryOperator {{.*}} <col:28,
> col:29> 'int' postfix '++'
> +// CHECK-NEXT:         |   | |   |   | `-DeclRefExpr {{.*}} <col:28>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         |   | |   |   `-ForStmt {{.*}} <line:34:7,
> line:35:9>
> +// CHECK-NEXT:         |   | |   |     |-DeclStmt {{.*}} <line:34:12,
> col:21>
> +// CHECK-NEXT:         |   | |   |     | `-VarDecl {{.*}} <col:12,
> col:20> col:16 used i 'int' cinit
> +// CHECK-NEXT:         |   | |   |     |   `-IntegerLiteral {{.*}}
> <col:20> 'int' 0
> +// CHECK-NEXT:         |   | |   |     |-<<<NULL>>>
> +// CHECK-NEXT:         |   | |   |     |-BinaryOperator {{.*}} <col:23,
> col:27> 'int' '<'
> +// CHECK-NEXT:         |   | |   |     | |-ImplicitCastExpr {{.*}}
> <col:23> 'int' <LValueToRValue>
> +// CHECK-NEXT:         |   | |   |     | | `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         |   | |   |     | `-ImplicitCastExpr {{.*}}
> <col:27> 'int' <LValueToRValue>
> +// CHECK-NEXT:         |   | |   |     |   `-DeclRefExpr {{.*}} <col:27>
> 'int' lvalue ParmVar {{.*}} 'z' 'int'
> +// CHECK-NEXT:         |   | |   |     |-UnaryOperator {{.*}} <col:30,
> col:31> 'int' postfix '++'
> +// CHECK-NEXT:         |   | |   |     | `-DeclRefExpr {{.*}} <col:30>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         |   | |   |     `-NullStmt {{.*}} <line:35:9>
> +// CHECK-NEXT:         |   | |   |-ImplicitParamDecl {{.*}} <line:31:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT:         |   | |   |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT:         |   | |   |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit used .previous.lb. 'const unsigned long'
> +// CHECK-NEXT:         |   | |   |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit used .previous.ub. 'const unsigned long'
> +// CHECK-NEXT:         |   | |   |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:31:9)
> *const restrict'
> +// CHECK-NEXT:         |   | |   |-VarDecl {{.*}} <line:32:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT:         |   | |   | `-IntegerLiteral {{.*}} <col:16> 'int'
> 0
> +// CHECK-NEXT:         |   | |   |-VarDecl {{.*}} <line:33:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT:         |   | |   | `-IntegerLiteral {{.*}} <col:18> 'int'
> 0
> +// CHECK-NEXT:         |   | |   `-VarDecl {{.*}} <line:34:12, col:20>
> col:16 used i 'int' cinit
> +// CHECK-NEXT:         |   | |     `-IntegerLiteral {{.*}} <col:20> 'int'
> 0
> +// CHECK-NEXT:         |   | |-DeclRefExpr {{.*}} <line:32:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT:         |   | |-DeclRefExpr {{.*}} <line:33:25> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT:         |   | `-DeclRefExpr {{.*}} <line:34:27> 'int'
> lvalue ParmVar {{.*}} 'z' 'int'
> +// CHECK-NEXT:         |   |-ImplicitParamDecl {{.*}} <line:31:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:31:9)
> *const restrict'
> +// CHECK-NEXT:         |   |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT:         |   | |-CapturedRecordAttr {{.*}} <<invalid sloc>>
> Implicit
> +// CHECK-NEXT:         |   | |-FieldDecl {{.*}} <line:32:23> col:23
> implicit 'int'
> +// CHECK-NEXT:         |   | | `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT:         |   | |-FieldDecl {{.*}} <line:33:25> col:25
> implicit 'int'
> +// CHECK-NEXT:         |   | | `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT:         |   | `-FieldDecl {{.*}} <line:34:27> col:27
> implicit 'int'
> +// CHECK-NEXT:         |   |   `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT:         |   `-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT:         |     |-CapturedStmt {{.*}} <line:32:3, line:35:9>
> +// CHECK-NEXT:         |     | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT:         |     | | |-ForStmt {{.*}} <line:32:3, line:35:9>
> +// CHECK-NEXT:         |     | | | |-DeclStmt {{.*}} <line:32:8, col:17>
> +// CHECK-NEXT:         |     | | | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT:         |     | | | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT:         |     | | | |-<<<NULL>>>
> +// CHECK-NEXT:         |     | | | |-BinaryOperator {{.*}} <col:19,
> col:23> 'int' '<'
> +// CHECK-NEXT:         |     | | | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         |     | | | | | `-DeclRefExpr {{.*}} <col:19>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         |     | | | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         |     | | | |   `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT:         |     | | | |-UnaryOperator {{.*}} <col:26,
> col:27> 'int' postfix '++'
> +// CHECK-NEXT:         |     | | | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         |     | | | `-ForStmt {{.*}} <line:33:5, line:35:9>
> +// CHECK-NEXT:         |     | | |   |-DeclStmt {{.*}} <line:33:10,
> col:19>
> +// CHECK-NEXT:         |     | | |   | `-VarDecl {{.*}} <col:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT:         |     | | |   |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT:         |     | | |   |-<<<NULL>>>
> +// CHECK-NEXT:         |     | | |   |-BinaryOperator {{.*}} <col:21,
> col:25> 'int' '<'
> +// CHECK-NEXT:         |     | | |   | |-ImplicitCastExpr {{.*}} <col:21>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         |     | | |   | | `-DeclRefExpr {{.*}} <col:21>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         |     | | |   | `-ImplicitCastExpr {{.*}} <col:25>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         |     | | |   |   `-DeclRefExpr {{.*}} <col:25>
> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT:         |     | | |   |-UnaryOperator {{.*}} <col:28,
> col:29> 'int' postfix '++'
> +// CHECK-NEXT:         |     | | |   | `-DeclRefExpr {{.*}} <col:28>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         |     | | |   `-ForStmt {{.*}} <line:34:7,
> line:35:9>
> +// CHECK-NEXT:         |     | | |     |-DeclStmt {{.*}} <line:34:12,
> col:21>
> +// CHECK-NEXT:         |     | | |     | `-VarDecl {{.*}} <col:12,
> col:20> col:16 used i 'int' cinit
> +// CHECK-NEXT:         |     | | |     |   `-IntegerLiteral {{.*}}
> <col:20> 'int' 0
> +// CHECK-NEXT:         |     | | |     |-<<<NULL>>>
> +// CHECK-NEXT:         |     | | |     |-BinaryOperator {{.*}} <col:23,
> col:27> 'int' '<'
> +// CHECK-NEXT:         |     | | |     | |-ImplicitCastExpr {{.*}}
> <col:23> 'int' <LValueToRValue>
> +// CHECK-NEXT:         |     | | |     | | `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         |     | | |     | `-ImplicitCastExpr {{.*}}
> <col:27> 'int' <LValueToRValue>
> +// CHECK-NEXT:         |     | | |     |   `-DeclRefExpr {{.*}} <col:27>
> 'int' lvalue ParmVar {{.*}} 'z' 'int'
> +// CHECK-NEXT:         |     | | |     |-UnaryOperator {{.*}} <col:30,
> col:31> 'int' postfix '++'
> +// CHECK-NEXT:         |     | | |     | `-DeclRefExpr {{.*}} <col:30>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         |     | | |     `-NullStmt {{.*}} <line:35:9>
> +// CHECK-NEXT:         |     | | |-ImplicitParamDecl {{.*}} <line:31:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT:         |     | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT:         |     | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit used .previous.lb. 'const unsigned long'
> +// CHECK-NEXT:         |     | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit used .previous.ub. 'const unsigned long'
> +// CHECK-NEXT:         |     | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:31:9)
> *const restrict'
> +// CHECK-NEXT:         |     | | |-VarDecl {{.*}} <line:32:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT:         |     | | | `-IntegerLiteral {{.*}} <col:16> 'int'
> 0
> +// CHECK-NEXT:         |     | | |-VarDecl {{.*}} <line:33:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT:         |     | | | `-IntegerLiteral {{.*}} <col:18> 'int'
> 0
> +// CHECK-NEXT:         |     | | `-VarDecl {{.*}} <line:34:12, col:20>
> col:16 used i 'int' cinit
> +// CHECK-NEXT:         |     | |   `-IntegerLiteral {{.*}} <col:20> 'int'
> 0
> +// CHECK-NEXT:         |     | |-DeclRefExpr {{.*}} <line:32:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT:         |     | |-DeclRefExpr {{.*}} <line:33:25> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT:         |     | `-DeclRefExpr {{.*}} <line:34:27> 'int'
> lvalue ParmVar {{.*}} 'z' 'int'
> +// CHECK-NEXT:         |     |-ImplicitParamDecl {{.*}} <line:31:9> col:9
> implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT:         |     |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT:         |     |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:31:9)
> *const restrict'
> +// CHECK-NEXT:         |     |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT:         |     | |-CapturedRecordAttr {{.*}} <<invalid
> sloc>> Implicit
> +// CHECK-NEXT:         |     | |-FieldDecl {{.*}} <line:32:23> col:23
> implicit 'int'
> +// CHECK-NEXT:         |     | | `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT:         |     | |-FieldDecl {{.*}} <line:33:25> col:25
> implicit 'int'
> +// CHECK-NEXT:         |     | | `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT:         |     | `-FieldDecl {{.*}} <line:34:27> col:27
> implicit 'int'
> +// CHECK-NEXT:         |     |   `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT:         |     `-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT:         |       |-ForStmt {{.*}} <line:32:3, line:35:9>
> +// CHECK-NEXT:         |       | |-DeclStmt {{.*}} <line:32:8, col:17>
> +// CHECK-NEXT:         |       | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT:         |       | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT:         |       | |-<<<NULL>>>
> +// CHECK-NEXT:         |       | |-BinaryOperator {{.*}} <col:19, col:23>
> 'int' '<'
> +// CHECK-NEXT:         |       | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         |       | | | `-DeclRefExpr {{.*}} <col:19> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         |       | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         |       | |   `-DeclRefExpr {{.*}} <col:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT:         |       | |-UnaryOperator {{.*}} <col:26, col:27>
> 'int' postfix '++'
> +// CHECK-NEXT:         |       | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         |       | `-ForStmt {{.*}} <line:33:5, line:35:9>
> +// CHECK-NEXT:         |       |   |-DeclStmt {{.*}} <line:33:10, col:19>
> +// CHECK-NEXT:         |       |   | `-VarDecl {{.*}} <col:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT:         |       |   |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT:         |       |   |-<<<NULL>>>
> +// CHECK-NEXT:         |       |   |-BinaryOperator {{.*}} <col:21,
> col:25> 'int' '<'
> +// CHECK-NEXT:         |       |   | |-ImplicitCastExpr {{.*}} <col:21>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         |       |   | | `-DeclRefExpr {{.*}} <col:21>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         |       |   | `-ImplicitCastExpr {{.*}} <col:25>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         |       |   |   `-DeclRefExpr {{.*}} <col:25>
> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT:         |       |   |-UnaryOperator {{.*}} <col:28,
> col:29> 'int' postfix '++'
> +// CHECK-NEXT:         |       |   | `-DeclRefExpr {{.*}} <col:28> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         |       |   `-ForStmt {{.*}} <line:34:7, line:35:9>
> +// CHECK-NEXT:         |       |     |-DeclStmt {{.*}} <line:34:12,
> col:21>
> +// CHECK-NEXT:         |       |     | `-VarDecl {{.*}} <col:12, col:20>
> col:16 used i 'int' cinit
> +// CHECK-NEXT:         |       |     |   `-IntegerLiteral {{.*}} <col:20>
> 'int' 0
> +// CHECK-NEXT:         |       |     |-<<<NULL>>>
> +// CHECK-NEXT:         |       |     |-BinaryOperator {{.*}} <col:23,
> col:27> 'int' '<'
> +// CHECK-NEXT:         |       |     | |-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         |       |     | | `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         |       |     | `-ImplicitCastExpr {{.*}} <col:27>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         |       |     |   `-DeclRefExpr {{.*}} <col:27>
> 'int' lvalue ParmVar {{.*}} 'z' 'int'
> +// CHECK-NEXT:         |       |     |-UnaryOperator {{.*}} <col:30,
> col:31> 'int' postfix '++'
> +// CHECK-NEXT:         |       |     | `-DeclRefExpr {{.*}} <col:30>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         |       |     `-NullStmt {{.*}} <line:35:9>
> +// CHECK-NEXT:         |       |-ImplicitParamDecl {{.*}} <line:31:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT:         |       |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT:         |       |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit used .previous.lb. 'const unsigned long'
> +// CHECK-NEXT:         |       |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit used .previous.ub. 'const unsigned long'
> +// CHECK-NEXT:         |       |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:31:9)
> *const restrict'
> +// CHECK-NEXT:         |       |-VarDecl {{.*}} <line:32:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT:         |       | `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT:         |       |-VarDecl {{.*}} <line:33:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT:         |       | `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT:         |       `-VarDecl {{.*}} <line:34:12, col:20>
> col:16 used i 'int' cinit
> +// CHECK-NEXT:         |         `-IntegerLiteral {{.*}} <col:20> 'int' 0
> +// CHECK-NEXT:         |-DeclRefExpr {{.*}} <line:32:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT:         |-DeclRefExpr {{.*}} <line:33:25> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT:         `-DeclRefExpr {{.*}} <line:34:27> 'int' lvalue
> ParmVar {{.*}} 'z' 'int'
>
> Added:
> cfe/trunk/test/AST/ast-dump-openmp-target-teams-distribute-parallel-for.c
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/test/AST/ast-dump-openmp-target-teams-distribute-parallel-for.c?rev=356569&view=auto
>
> ==============================================================================
> ---
> cfe/trunk/test/AST/ast-dump-openmp-target-teams-distribute-parallel-for.c
> (added)
> +++
> cfe/trunk/test/AST/ast-dump-openmp-target-teams-distribute-parallel-for.c
> Wed Mar 20 09:31:47 2019
> @@ -0,0 +1,1957 @@
> +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s |
> FileCheck --match-full-lines -implicit-check-not=openmp_structured_block %s
> +
> +void test_one(int x) {
> +#pragma omp target teams distribute parallel for
> +  for (int i = 0; i < x; i++)
> +    ;
> +}
> +
> +void test_two(int x, int y) {
> +#pragma omp target teams distribute parallel for
> +  for (int i = 0; i < x; i++)
> +    for (int i = 0; i < y; i++)
> +      ;
> +}
> +
> +void test_three(int x, int y) {
> +#pragma omp target teams distribute parallel for collapse(1)
> +  for (int i = 0; i < x; i++)
> +    for (int i = 0; i < y; i++)
> +      ;
> +}
> +
> +void test_four(int x, int y) {
> +#pragma omp target teams distribute parallel for collapse(2)
> +  for (int i = 0; i < x; i++)
> +    for (int i = 0; i < y; i++)
> +      ;
> +}
> +
> +void test_five(int x, int y, int z) {
> +#pragma omp target teams distribute parallel for collapse(2)
> +  for (int i = 0; i < x; i++)
> +    for (int i = 0; i < y; i++)
> +      for (int i = 0; i < z; i++)
> +        ;
> +}
> +
> +// CHECK: TranslationUnitDecl {{.*}} <<invalid sloc>> <invalid sloc>
> +// CHECK: |-FunctionDecl {{.*}}
> <{{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:3:1,
> line:7:1> line:3:6 test_one 'void (int)'
> +// CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:15, col:19> col:19 used x 'int'
> +// CHECK-NEXT: | `-CompoundStmt {{.*}} <col:22, line:7:1>
> +// CHECK-NEXT: |   `-OMPTargetTeamsDistributeParallelForDirective {{.*}}
> <line:4:9, col:49>
> +// CHECK-NEXT: |     |-OMPFirstprivateClause {{.*}} <<invalid sloc>>
> <implicit>
> +// CHECK-NEXT: |     | `-DeclRefExpr {{.*}} <line:5:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |     `-CapturedStmt {{.*}} <col:3, line:6:5>
> +// CHECK-NEXT: |       |-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc> nothrow
> +// CHECK-NEXT: |       | |-CapturedStmt {{.*}} <line:5:3, line:6:5>
> +// CHECK-NEXT: |       | | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       | | | |-CapturedStmt {{.*}} <line:5:3, line:6:5>
> +// CHECK-NEXT: |       | | | | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       | | | | | |-CapturedStmt {{.*}} <line:5:3,
> line:6:5>
> +// CHECK-NEXT: |       | | | | | | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       | | | | | | | |-ForStmt {{.*}} <line:5:3, line:6:5>
> +// CHECK-NEXT: |       | | | | | | | | |-DeclStmt {{.*}} <line:5:8,
> col:17>
> +// CHECK-NEXT: |       | | | | | | | | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | | | | | | | |   `-IntegerLiteral {{.*}}
> <col:16> 'int' 0
> +// CHECK-NEXT: |       | | | | | | | | |-<<<NULL>>>
> +// CHECK-NEXT: |       | | | | | | | | |-BinaryOperator {{.*}} <col:19,
> col:23> 'int' '<'
> +// CHECK-NEXT: |       | | | | | | | | | |-ImplicitCastExpr {{.*}}
> <col:19> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | | | | | | | | `-DeclRefExpr {{.*}} <col:19>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | | | | | | `-ImplicitCastExpr {{.*}}
> <col:23> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | | | | | | |   `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | | | | | | | |-UnaryOperator {{.*}} <col:26,
> col:27> 'int' postfix '++'
> +// CHECK-NEXT: |       | | | | | | | | | `-DeclRefExpr {{.*}} <col:26>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | | | | | `-NullStmt {{.*}} <line:6:5>
> +// CHECK-NEXT: |       | | | | | | | |-ImplicitParamDecl {{.*}}
> <line:4:9> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | | | | | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | | | | | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit used .previous.lb. 'const unsigned long'
> +// CHECK-NEXT: |       | | | | | | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit used .previous.ub. 'const unsigned long'
> +// CHECK-NEXT: |       | | | | | | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:4:9) *const
> restrict'
> +// CHECK-NEXT: |       | | | | | | | `-VarDecl {{.*}} <line:5:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | | | | | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       | | | | | | `-DeclRefExpr {{.*}} <col:3> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | | | | |-ImplicitParamDecl {{.*}} <line:4:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | | | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | | | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:4:9) *const
> restrict'
> +// CHECK-NEXT: |       | | | | | |-RecordDecl {{.*}} <col:9> col:9
> implicit struct definition
> +// CHECK-NEXT: |       | | | | | | |-CapturedRecordAttr {{.*}} <<invalid
> sloc>> Implicit
> +// CHECK-NEXT: |       | | | | | | `-FieldDecl {{.*}} <line:5:3> col:3
> implicit 'int'
> +// CHECK-NEXT: |       | | | | | |   `-OMPCaptureKindAttr {{.*}}
> <<invalid sloc>> Implicit 9
> +// CHECK-NEXT: |       | | | | | `-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       | | | | |   |-ForStmt {{.*}} <col:3, line:6:5>
> +// CHECK-NEXT: |       | | | | |   | |-DeclStmt {{.*}} <line:5:8, col:17>
> +// CHECK-NEXT: |       | | | | |   | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | | | |   | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       | | | | |   | |-<<<NULL>>>
> +// CHECK-NEXT: |       | | | | |   | |-BinaryOperator {{.*}} <col:19,
> col:23> 'int' '<'
> +// CHECK-NEXT: |       | | | | |   | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | | |   | | | `-DeclRefExpr {{.*}} <col:19>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | |   | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | | |   | |   `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | | | |   | |-UnaryOperator {{.*}} <col:26,
> col:27> 'int' postfix '++'
> +// CHECK-NEXT: |       | | | | |   | | `-DeclRefExpr {{.*}} <col:26>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | |   | `-NullStmt {{.*}} <line:6:5>
> +// CHECK-NEXT: |       | | | | |   |-ImplicitParamDecl {{.*}} <line:4:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | | | |   |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | | | |   |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit used .previous.lb. 'const unsigned long'
> +// CHECK-NEXT: |       | | | | |   |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit used .previous.ub. 'const unsigned long'
> +// CHECK-NEXT: |       | | | | |   |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:4:9) *const
> restrict'
> +// CHECK-NEXT: |       | | | | |   `-VarDecl {{.*}} <line:5:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | | | |     `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       | | | | `-DeclRefExpr {{.*}} <col:3> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | | |-ImplicitParamDecl {{.*}} <line:4:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:4:9) *const
> restrict'
> +// CHECK-NEXT: |       | | | |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT: |       | | | | |-CapturedRecordAttr {{.*}} <<invalid
> sloc>> Implicit
> +// CHECK-NEXT: |       | | | | `-FieldDecl {{.*}} <line:5:3> col:3
> implicit 'int'
> +// CHECK-NEXT: |       | | | |   `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       | | | `-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       | | |   |-CapturedStmt {{.*}} <col:3, line:6:5>
> +// CHECK-NEXT: |       | | |   | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       | | |   | | |-ForStmt {{.*}} <line:5:3, line:6:5>
> +// CHECK-NEXT: |       | | |   | | | |-DeclStmt {{.*}} <line:5:8, col:17>
> +// CHECK-NEXT: |       | | |   | | | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | |   | | | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       | | |   | | | |-<<<NULL>>>
> +// CHECK-NEXT: |       | | |   | | | |-BinaryOperator {{.*}} <col:19,
> col:23> 'int' '<'
> +// CHECK-NEXT: |       | | |   | | | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | |   | | | | | `-DeclRefExpr {{.*}} <col:19>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | |   | | | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | |   | | | |   `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | |   | | | |-UnaryOperator {{.*}} <col:26,
> col:27> 'int' postfix '++'
> +// CHECK-NEXT: |       | | |   | | | | `-DeclRefExpr {{.*}} <col:26>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | |   | | | `-NullStmt {{.*}} <line:6:5>
> +// CHECK-NEXT: |       | | |   | | |-ImplicitParamDecl {{.*}} <line:4:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | |   | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | |   | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit used .previous.lb. 'const unsigned long'
> +// CHECK-NEXT: |       | | |   | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit used .previous.ub. 'const unsigned long'
> +// CHECK-NEXT: |       | | |   | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:4:9) *const
> restrict'
> +// CHECK-NEXT: |       | | |   | | `-VarDecl {{.*}} <line:5:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | |   | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       | | |   | `-DeclRefExpr {{.*}} <col:3> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | |   |-ImplicitParamDecl {{.*}} <line:4:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | |   |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | |   |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:4:9) *const
> restrict'
> +// CHECK-NEXT: |       | | |   |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT: |       | | |   | |-CapturedRecordAttr {{.*}} <<invalid
> sloc>> Implicit
> +// CHECK-NEXT: |       | | |   | `-FieldDecl {{.*}} <line:5:3> col:3
> implicit 'int'
> +// CHECK-NEXT: |       | | |   |   `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       | | |   `-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       | | |     |-ForStmt {{.*}} <col:3, line:6:5>
> +// CHECK-NEXT: |       | | |     | |-DeclStmt {{.*}} <line:5:8, col:17>
> +// CHECK-NEXT: |       | | |     | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | |     | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       | | |     | |-<<<NULL>>>
> +// CHECK-NEXT: |       | | |     | |-BinaryOperator {{.*}} <col:19,
> col:23> 'int' '<'
> +// CHECK-NEXT: |       | | |     | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | |     | | | `-DeclRefExpr {{.*}} <col:19>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | |     | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | |     | |   `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | |     | |-UnaryOperator {{.*}} <col:26,
> col:27> 'int' postfix '++'
> +// CHECK-NEXT: |       | | |     | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | |     | `-NullStmt {{.*}} <line:6:5>
> +// CHECK-NEXT: |       | | |     |-ImplicitParamDecl {{.*}} <line:4:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | |     |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | |     |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit used .previous.lb. 'const unsigned long'
> +// CHECK-NEXT: |       | | |     |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit used .previous.ub. 'const unsigned long'
> +// CHECK-NEXT: |       | | |     |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:4:9) *const
> restrict'
> +// CHECK-NEXT: |       | | |     `-VarDecl {{.*}} <line:5:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | |       `-IntegerLiteral {{.*}} <col:16> 'int'
> 0
> +// CHECK-NEXT: |       | | `-DeclRefExpr {{.*}} <col:3> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | |-AlwaysInlineAttr {{.*}} <<invalid sloc>>
> Implicit __forceinline
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <line:4:9> col:9
> implicit .global_tid. 'const int'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .part_id. 'const int *const restrict'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .privates. 'void *const restrict'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .task_t. 'void *const'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:4:9) *const
> restrict'
> +// CHECK-NEXT: |       | |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT: |       | | |-CapturedRecordAttr {{.*}} <<invalid sloc>>
> Implicit
> +// CHECK-NEXT: |       | | `-FieldDecl {{.*}} <line:5:3> col:3 implicit
> 'int'
> +// CHECK-NEXT: |       | |   `-OMPCaptureKindAttr {{.*}} <<invalid sloc>>
> Implicit 9
> +// CHECK-NEXT: |       | `-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc> nothrow
> +// CHECK-NEXT: |       |   |-CapturedStmt {{.*}} <col:3, line:6:5>
> +// CHECK-NEXT: |       |   | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       |   | | |-CapturedStmt {{.*}} <line:5:3, line:6:5>
> +// CHECK-NEXT: |       |   | | | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       |   | | | | |-ForStmt {{.*}} <line:5:3, line:6:5>
> +// CHECK-NEXT: |       |   | | | | | |-DeclStmt {{.*}} <line:5:8, col:17>
> +// CHECK-NEXT: |       |   | | | | | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       |   | | | | | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       |   | | | | | |-<<<NULL>>>
> +// CHECK-NEXT: |       |   | | | | | |-BinaryOperator {{.*}} <col:19,
> col:23> 'int' '<'
> +// CHECK-NEXT: |       |   | | | | | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |   | | | | | | | `-DeclRefExpr {{.*}} <col:19>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | | | | | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |   | | | | | |   `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       |   | | | | | |-UnaryOperator {{.*}} <col:26,
> col:27> 'int' postfix '++'
> +// CHECK-NEXT: |       |   | | | | | | `-DeclRefExpr {{.*}} <col:26>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | | | | | `-NullStmt {{.*}} <line:6:5>
> +// CHECK-NEXT: |       |   | | | | |-ImplicitParamDecl {{.*}} <line:4:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |   | | | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |   | | | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit used .previous.lb. 'const unsigned long'
> +// CHECK-NEXT: |       |   | | | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit used .previous.ub. 'const unsigned long'
> +// CHECK-NEXT: |       |   | | | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:4:9) *const
> restrict'
> +// CHECK-NEXT: |       |   | | | | `-VarDecl {{.*}} <line:5:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       |   | | | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       |   | | | `-DeclRefExpr {{.*}} <col:3> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       |   | | |-ImplicitParamDecl {{.*}} <line:4:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |   | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |   | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:4:9) *const
> restrict'
> +// CHECK-NEXT: |       |   | | |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT: |       |   | | | |-CapturedRecordAttr {{.*}} <<invalid
> sloc>> Implicit
> +// CHECK-NEXT: |       |   | | | `-FieldDecl {{.*}} <line:5:3> col:3
> implicit 'int'
> +// CHECK-NEXT: |       |   | | |   `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       |   | | `-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       |   | |   |-ForStmt {{.*}} <col:3, line:6:5>
> +// CHECK-NEXT: |       |   | |   | |-DeclStmt {{.*}} <line:5:8, col:17>
> +// CHECK-NEXT: |       |   | |   | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       |   | |   | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       |   | |   | |-<<<NULL>>>
> +// CHECK-NEXT: |       |   | |   | |-BinaryOperator {{.*}} <col:19,
> col:23> 'int' '<'
> +// CHECK-NEXT: |       |   | |   | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |   | |   | | | `-DeclRefExpr {{.*}} <col:19>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | |   | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |   | |   | |   `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       |   | |   | |-UnaryOperator {{.*}} <col:26,
> col:27> 'int' postfix '++'
> +// CHECK-NEXT: |       |   | |   | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | |   | `-NullStmt {{.*}} <line:6:5>
> +// CHECK-NEXT: |       |   | |   |-ImplicitParamDecl {{.*}} <line:4:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |   | |   |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |   | |   |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit used .previous.lb. 'const unsigned long'
> +// CHECK-NEXT: |       |   | |   |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit used .previous.ub. 'const unsigned long'
> +// CHECK-NEXT: |       |   | |   |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:4:9) *const
> restrict'
> +// CHECK-NEXT: |       |   | |   `-VarDecl {{.*}} <line:5:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       |   | |     `-IntegerLiteral {{.*}} <col:16> 'int'
> 0
> +// CHECK-NEXT: |       |   | `-DeclRefExpr {{.*}} <col:3> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       |   |-ImplicitParamDecl {{.*}} <line:4:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:4:9) *const
> restrict'
> +// CHECK-NEXT: |       |   |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT: |       |   | |-CapturedRecordAttr {{.*}} <<invalid sloc>>
> Implicit
> +// CHECK-NEXT: |       |   | `-FieldDecl {{.*}} <line:5:3> col:3 implicit
> 'int'
> +// CHECK-NEXT: |       |   |   `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       |   `-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       |     |-CapturedStmt {{.*}} <col:3, line:6:5>
> +// CHECK-NEXT: |       |     | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       |     | | |-ForStmt {{.*}} <line:5:3, line:6:5>
> +// CHECK-NEXT: |       |     | | | |-DeclStmt {{.*}} <line:5:8, col:17>
> +// CHECK-NEXT: |       |     | | | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       |     | | | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       |     | | | |-<<<NULL>>>
> +// CHECK-NEXT: |       |     | | | |-BinaryOperator {{.*}} <col:19,
> col:23> 'int' '<'
> +// CHECK-NEXT: |       |     | | | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |     | | | | | `-DeclRefExpr {{.*}} <col:19>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |     | | | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |     | | | |   `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       |     | | | |-UnaryOperator {{.*}} <col:26,
> col:27> 'int' postfix '++'
> +// CHECK-NEXT: |       |     | | | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |     | | | `-NullStmt {{.*}} <line:6:5>
> +// CHECK-NEXT: |       |     | | |-ImplicitParamDecl {{.*}} <line:4:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |     | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |     | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit used .previous.lb. 'const unsigned long'
> +// CHECK-NEXT: |       |     | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit used .previous.ub. 'const unsigned long'
> +// CHECK-NEXT: |       |     | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:4:9) *const
> restrict'
> +// CHECK-NEXT: |       |     | | `-VarDecl {{.*}} <line:5:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       |     | |   `-IntegerLiteral {{.*}} <col:16> 'int'
> 0
> +// CHECK-NEXT: |       |     | `-DeclRefExpr {{.*}} <col:3> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       |     |-ImplicitParamDecl {{.*}} <line:4:9> col:9
> implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |     |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |     |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:4:9) *const
> restrict'
> +// CHECK-NEXT: |       |     |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT: |       |     | |-CapturedRecordAttr {{.*}} <<invalid
> sloc>> Implicit
> +// CHECK-NEXT: |       |     | `-FieldDecl {{.*}} <line:5:3> col:3
> implicit 'int'
> +// CHECK-NEXT: |       |     |   `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       |     `-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       |       |-ForStmt {{.*}} <col:3, line:6:5>
> +// CHECK-NEXT: |       |       | |-DeclStmt {{.*}} <line:5:8, col:17>
> +// CHECK-NEXT: |       |       | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       |       | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       |       | |-<<<NULL>>>
> +// CHECK-NEXT: |       |       | |-BinaryOperator {{.*}} <col:19, col:23>
> 'int' '<'
> +// CHECK-NEXT: |       |       | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |       | | | `-DeclRefExpr {{.*}} <col:19> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |       | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |       | |   `-DeclRefExpr {{.*}} <col:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       |       | |-UnaryOperator {{.*}} <col:26, col:27>
> 'int' postfix '++'
> +// CHECK-NEXT: |       |       | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |       | `-NullStmt {{.*}} <line:6:5>
> +// CHECK-NEXT: |       |       |-ImplicitParamDecl {{.*}} <line:4:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |       |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |       |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit used .previous.lb. 'const unsigned long'
> +// CHECK-NEXT: |       |       |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit used .previous.ub. 'const unsigned long'
> +// CHECK-NEXT: |       |       |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:4:9) *const
> restrict'
> +// CHECK-NEXT: |       |       `-VarDecl {{.*}} <line:5:8, col:16> col:12
> used i 'int' cinit
> +// CHECK-NEXT: |       |         `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       `-DeclRefExpr {{.*}} <col:3> 'int' lvalue ParmVar
> {{.*}} 'x' 'int'
> +// CHECK-NEXT: |-FunctionDecl {{.*}} <line:9:1, line:14:1> line:9:6
> test_two 'void (int, int)'
> +// CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:15, col:19> col:19 used x 'int'
> +// CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:22, col:26> col:26 used y 'int'
> +// CHECK-NEXT: | `-CompoundStmt {{.*}} <col:29, line:14:1>
> +// CHECK-NEXT: |   `-OMPTargetTeamsDistributeParallelForDirective {{.*}}
> <line:10:9, col:49>
> +// CHECK-NEXT: |     |-OMPFirstprivateClause {{.*}} <<invalid sloc>>
> <implicit>
> +// CHECK-NEXT: |     | |-DeclRefExpr {{.*}} <line:11:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |     | `-DeclRefExpr {{.*}} <line:12:25> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |     `-CapturedStmt {{.*}} <line:11:3, line:13:7>
> +// CHECK-NEXT: |       |-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc> nothrow
> +// CHECK-NEXT: |       | |-CapturedStmt {{.*}} <line:11:3, line:13:7>
> +// CHECK-NEXT: |       | | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       | | | |-CapturedStmt {{.*}} <line:11:3, line:13:7>
> +// CHECK-NEXT: |       | | | | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       | | | | | |-CapturedStmt {{.*}} <line:11:3,
> line:13:7>
> +// CHECK-NEXT: |       | | | | | | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       | | | | | | | |-ForStmt {{.*}} <line:11:3,
> line:13:7>
> +// CHECK-NEXT: |       | | | | | | | | |-DeclStmt {{.*}} <line:11:8,
> col:17>
> +// CHECK-NEXT: |       | | | | | | | | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | | | | | | | |   `-IntegerLiteral {{.*}}
> <col:16> 'int' 0
> +// CHECK-NEXT: |       | | | | | | | | |-<<<NULL>>>
> +// CHECK-NEXT: |       | | | | | | | | |-BinaryOperator {{.*}} <col:19,
> col:23> 'int' '<'
> +// CHECK-NEXT: |       | | | | | | | | | |-ImplicitCastExpr {{.*}}
> <col:19> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | | | | | | | | `-DeclRefExpr {{.*}} <col:19>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | | | | | | `-ImplicitCastExpr {{.*}}
> <col:23> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | | | | | | |   `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | | | | | | | |-UnaryOperator {{.*}} <col:26,
> col:27> 'int' postfix '++'
> +// CHECK-NEXT: |       | | | | | | | | | `-DeclRefExpr {{.*}} <col:26>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | | | | | `-ForStmt {{.*}} <line:12:5,
> line:13:7>
> +// CHECK-NEXT: |       | | | | | | | |   |-DeclStmt {{.*}} <line:12:10,
> col:19>
> +// CHECK-NEXT: |       | | | | | | | |   | `-VarDecl {{.*}} <col:10,
> col:18> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       | | | | | | | |   |   `-IntegerLiteral {{.*}}
> <col:18> 'int' 0
> +// CHECK-NEXT: |       | | | | | | | |   |-<<<NULL>>>
> +// CHECK-NEXT: |       | | | | | | | |   |-BinaryOperator {{.*}} <col:21,
> col:25> 'int' '<'
> +// CHECK-NEXT: |       | | | | | | | |   | |-ImplicitCastExpr {{.*}}
> <col:21> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | | | | | |   | | `-DeclRefExpr {{.*}}
> <col:21> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | | | | |   | `-ImplicitCastExpr {{.*}}
> <col:25> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | | | | | |   |   `-DeclRefExpr {{.*}}
> <col:25> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | | | | | | | |   |-UnaryOperator {{.*}} <col:28,
> col:29> 'int' postfix '++'
> +// CHECK-NEXT: |       | | | | | | | |   | `-DeclRefExpr {{.*}} <col:28>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | | | | |   `-NullStmt {{.*}} <line:13:7>
> +// CHECK-NEXT: |       | | | | | | | |-ImplicitParamDecl {{.*}}
> <line:10:9> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | | | | | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | | | | | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit used .previous.lb. 'const unsigned long'
> +// CHECK-NEXT: |       | | | | | | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit used .previous.ub. 'const unsigned long'
> +// CHECK-NEXT: |       | | | | | | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:10:9) *const
> restrict'
> +// CHECK-NEXT: |       | | | | | | | |-VarDecl {{.*}} <line:11:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | | | | | | | `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       | | | | | | | `-VarDecl {{.*}} <line:12:10,
> col:18> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       | | | | | | |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT: |       | | | | | | |-DeclRefExpr {{.*}} <line:11:3> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | | | | | `-DeclRefExpr {{.*}} <line:12:25>
> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | | | | | |-ImplicitParamDecl {{.*}} <line:10:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | | | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | | | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:10:9) *const
> restrict'
> +// CHECK-NEXT: |       | | | | | |-RecordDecl {{.*}} <col:9> col:9
> implicit struct definition
> +// CHECK-NEXT: |       | | | | | | |-CapturedRecordAttr {{.*}} <<invalid
> sloc>> Implicit
> +// CHECK-NEXT: |       | | | | | | |-FieldDecl {{.*}} <line:11:3> col:3
> implicit 'int'
> +// CHECK-NEXT: |       | | | | | | | `-OMPCaptureKindAttr {{.*}}
> <<invalid sloc>> Implicit 9
> +// CHECK-NEXT: |       | | | | | | `-FieldDecl {{.*}} <line:12:25> col:25
> implicit 'int'
> +// CHECK-NEXT: |       | | | | | |   `-OMPCaptureKindAttr {{.*}}
> <<invalid sloc>> Implicit 9
> +// CHECK-NEXT: |       | | | | | `-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       | | | | |   |-ForStmt {{.*}} <line:11:3, line:13:7>
> +// CHECK-NEXT: |       | | | | |   | |-DeclStmt {{.*}} <line:11:8, col:17>
> +// CHECK-NEXT: |       | | | | |   | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | | | |   | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       | | | | |   | |-<<<NULL>>>
> +// CHECK-NEXT: |       | | | | |   | |-BinaryOperator {{.*}} <col:19,
> col:23> 'int' '<'
> +// CHECK-NEXT: |       | | | | |   | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | | |   | | | `-DeclRefExpr {{.*}} <col:19>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | |   | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | | |   | |   `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | | | |   | |-UnaryOperator {{.*}} <col:26,
> col:27> 'int' postfix '++'
> +// CHECK-NEXT: |       | | | | |   | | `-DeclRefExpr {{.*}} <col:26>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | |   | `-ForStmt {{.*}} <line:12:5,
> line:13:7>
> +// CHECK-NEXT: |       | | | | |   |   |-DeclStmt {{.*}} <line:12:10,
> col:19>
> +// CHECK-NEXT: |       | | | | |   |   | `-VarDecl {{.*}} <col:10,
> col:18> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       | | | | |   |   |   `-IntegerLiteral {{.*}}
> <col:18> 'int' 0
> +// CHECK-NEXT: |       | | | | |   |   |-<<<NULL>>>
> +// CHECK-NEXT: |       | | | | |   |   |-BinaryOperator {{.*}} <col:21,
> col:25> 'int' '<'
> +// CHECK-NEXT: |       | | | | |   |   | |-ImplicitCastExpr {{.*}}
> <col:21> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | | |   |   | | `-DeclRefExpr {{.*}} <col:21>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | |   |   | `-ImplicitCastExpr {{.*}}
> <col:25> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | | |   |   |   `-DeclRefExpr {{.*}} <col:25>
> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | | | | |   |   |-UnaryOperator {{.*}} <col:28,
> col:29> 'int' postfix '++'
> +// CHECK-NEXT: |       | | | | |   |   | `-DeclRefExpr {{.*}} <col:28>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | |   |   `-NullStmt {{.*}} <line:13:7>
> +// CHECK-NEXT: |       | | | | |   |-ImplicitParamDecl {{.*}} <line:10:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | | | |   |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | | | |   |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit used .previous.lb. 'const unsigned long'
> +// CHECK-NEXT: |       | | | | |   |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit used .previous.ub. 'const unsigned long'
> +// CHECK-NEXT: |       | | | | |   |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:10:9) *const
> restrict'
> +// CHECK-NEXT: |       | | | | |   |-VarDecl {{.*}} <line:11:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | | | |   | `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       | | | | |   `-VarDecl {{.*}} <line:12:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       | | | | |     `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT: |       | | | | |-DeclRefExpr {{.*}} <line:11:3> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | | | `-DeclRefExpr {{.*}} <line:12:25> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | | | |-ImplicitParamDecl {{.*}} <line:10:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:10:9) *const
> restrict'
> +// CHECK-NEXT: |       | | | |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT: |       | | | | |-CapturedRecordAttr {{.*}} <<invalid
> sloc>> Implicit
> +// CHECK-NEXT: |       | | | | |-FieldDecl {{.*}} <line:11:3> col:3
> implicit 'int'
> +// CHECK-NEXT: |       | | | | | `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       | | | | `-FieldDecl {{.*}} <line:12:25> col:25
> implicit 'int'
> +// CHECK-NEXT: |       | | | |   `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       | | | `-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       | | |   |-CapturedStmt {{.*}} <line:11:3,
> line:13:7>
> +// CHECK-NEXT: |       | | |   | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       | | |   | | |-ForStmt {{.*}} <line:11:3, line:13:7>
> +// CHECK-NEXT: |       | | |   | | | |-DeclStmt {{.*}} <line:11:8, col:17>
> +// CHECK-NEXT: |       | | |   | | | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | |   | | | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       | | |   | | | |-<<<NULL>>>
> +// CHECK-NEXT: |       | | |   | | | |-BinaryOperator {{.*}} <col:19,
> col:23> 'int' '<'
> +// CHECK-NEXT: |       | | |   | | | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | |   | | | | | `-DeclRefExpr {{.*}} <col:19>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | |   | | | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | |   | | | |   `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | |   | | | |-UnaryOperator {{.*}} <col:26,
> col:27> 'int' postfix '++'
> +// CHECK-NEXT: |       | | |   | | | | `-DeclRefExpr {{.*}} <col:26>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | |   | | | `-ForStmt {{.*}} <line:12:5,
> line:13:7>
> +// CHECK-NEXT: |       | | |   | | |   |-DeclStmt {{.*}} <line:12:10,
> col:19>
> +// CHECK-NEXT: |       | | |   | | |   | `-VarDecl {{.*}} <col:10,
> col:18> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       | | |   | | |   |   `-IntegerLiteral {{.*}}
> <col:18> 'int' 0
> +// CHECK-NEXT: |       | | |   | | |   |-<<<NULL>>>
> +// CHECK-NEXT: |       | | |   | | |   |-BinaryOperator {{.*}} <col:21,
> col:25> 'int' '<'
> +// CHECK-NEXT: |       | | |   | | |   | |-ImplicitCastExpr {{.*}}
> <col:21> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | |   | | |   | | `-DeclRefExpr {{.*}} <col:21>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | |   | | |   | `-ImplicitCastExpr {{.*}}
> <col:25> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | |   | | |   |   `-DeclRefExpr {{.*}} <col:25>
> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | | |   | | |   |-UnaryOperator {{.*}} <col:28,
> col:29> 'int' postfix '++'
> +// CHECK-NEXT: |       | | |   | | |   | `-DeclRefExpr {{.*}} <col:28>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | |   | | |   `-NullStmt {{.*}} <line:13:7>
> +// CHECK-NEXT: |       | | |   | | |-ImplicitParamDecl {{.*}} <line:10:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | |   | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | |   | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit used .previous.lb. 'const unsigned long'
> +// CHECK-NEXT: |       | | |   | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit used .previous.ub. 'const unsigned long'
> +// CHECK-NEXT: |       | | |   | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:10:9) *const
> restrict'
> +// CHECK-NEXT: |       | | |   | | |-VarDecl {{.*}} <line:11:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | |   | | | `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       | | |   | | `-VarDecl {{.*}} <line:12:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       | | |   | |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT: |       | | |   | |-DeclRefExpr {{.*}} <line:11:3> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | |   | `-DeclRefExpr {{.*}} <line:12:25> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | | |   |-ImplicitParamDecl {{.*}} <line:10:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | |   |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | |   |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:10:9) *const
> restrict'
> +// CHECK-NEXT: |       | | |   |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT: |       | | |   | |-CapturedRecordAttr {{.*}} <<invalid
> sloc>> Implicit
> +// CHECK-NEXT: |       | | |   | |-FieldDecl {{.*}} <line:11:3> col:3
> implicit 'int'
> +// CHECK-NEXT: |       | | |   | | `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       | | |   | `-FieldDecl {{.*}} <line:12:25> col:25
> implicit 'int'
> +// CHECK-NEXT: |       | | |   |   `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       | | |   `-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       | | |     |-ForStmt {{.*}} <line:11:3, line:13:7>
> +// CHECK-NEXT: |       | | |     | |-DeclStmt {{.*}} <line:11:8, col:17>
> +// CHECK-NEXT: |       | | |     | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | |     | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       | | |     | |-<<<NULL>>>
> +// CHECK-NEXT: |       | | |     | |-BinaryOperator {{.*}} <col:19,
> col:23> 'int' '<'
> +// CHECK-NEXT: |       | | |     | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | |     | | | `-DeclRefExpr {{.*}} <col:19>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | |     | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | |     | |   `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | |     | |-UnaryOperator {{.*}} <col:26,
> col:27> 'int' postfix '++'
> +// CHECK-NEXT: |       | | |     | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | |     | `-ForStmt {{.*}} <line:12:5, line:13:7>
> +// CHECK-NEXT: |       | | |     |   |-DeclStmt {{.*}} <line:12:10,
> col:19>
> +// CHECK-NEXT: |       | | |     |   | `-VarDecl {{.*}} <col:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       | | |     |   |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT: |       | | |     |   |-<<<NULL>>>
> +// CHECK-NEXT: |       | | |     |   |-BinaryOperator {{.*}} <col:21,
> col:25> 'int' '<'
> +// CHECK-NEXT: |       | | |     |   | |-ImplicitCastExpr {{.*}} <col:21>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | |     |   | | `-DeclRefExpr {{.*}} <col:21>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | |     |   | `-ImplicitCastExpr {{.*}} <col:25>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | |     |   |   `-DeclRefExpr {{.*}} <col:25>
> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | | |     |   |-UnaryOperator {{.*}} <col:28,
> col:29> 'int' postfix '++'
> +// CHECK-NEXT: |       | | |     |   | `-DeclRefExpr {{.*}} <col:28>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | |     |   `-NullStmt {{.*}} <line:13:7>
> +// CHECK-NEXT: |       | | |     |-ImplicitParamDecl {{.*}} <line:10:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | |     |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | |     |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit used .previous.lb. 'const unsigned long'
> +// CHECK-NEXT: |       | | |     |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit used .previous.ub. 'const unsigned long'
> +// CHECK-NEXT: |       | | |     |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:10:9) *const
> restrict'
> +// CHECK-NEXT: |       | | |     |-VarDecl {{.*}} <line:11:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | |     | `-IntegerLiteral {{.*}} <col:16> 'int'
> 0
> +// CHECK-NEXT: |       | | |     `-VarDecl {{.*}} <line:12:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       | | |       `-IntegerLiteral {{.*}} <col:18> 'int'
> 0
> +// CHECK-NEXT: |       | | |-DeclRefExpr {{.*}} <line:11:3> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | `-DeclRefExpr {{.*}} <line:12:25> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | |-AlwaysInlineAttr {{.*}} <<invalid sloc>>
> Implicit __forceinline
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <line:10:9> col:9
> implicit .global_tid. 'const int'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .part_id. 'const int *const restrict'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .privates. 'void *const restrict'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .task_t. 'void *const'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:10:9) *const
> restrict'
> +// CHECK-NEXT: |       | |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT: |       | | |-CapturedRecordAttr {{.*}} <<invalid sloc>>
> Implicit
> +// CHECK-NEXT: |       | | |-FieldDecl {{.*}} <line:11:3> col:3 implicit
> 'int'
> +// CHECK-NEXT: |       | | | `-OMPCaptureKindAttr {{.*}} <<invalid sloc>>
> Implicit 9
> +// CHECK-NEXT: |       | | `-FieldDecl {{.*}} <line:12:25> col:25
> implicit 'int'
> +// CHECK-NEXT: |       | |   `-OMPCaptureKindAttr {{.*}} <<invalid sloc>>
> Implicit 9
> +// CHECK-NEXT: |       | `-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc> nothrow
> +// CHECK-NEXT: |       |   |-CapturedStmt {{.*}} <line:11:3, line:13:7>
> +// CHECK-NEXT: |       |   | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       |   | | |-CapturedStmt {{.*}} <line:11:3,
> line:13:7>
> +// CHECK-NEXT: |       |   | | | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       |   | | | | |-ForStmt {{.*}} <line:11:3, line:13:7>
> +// CHECK-NEXT: |       |   | | | | | |-DeclStmt {{.*}} <line:11:8, col:17>
> +// CHECK-NEXT: |       |   | | | | | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       |   | | | | | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       |   | | | | | |-<<<NULL>>>
> +// CHECK-NEXT: |       |   | | | | | |-BinaryOperator {{.*}} <col:19,
> col:23> 'int' '<'
> +// CHECK-NEXT: |       |   | | | | | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |   | | | | | | | `-DeclRefExpr {{.*}} <col:19>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | | | | | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |   | | | | | |   `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       |   | | | | | |-UnaryOperator {{.*}} <col:26,
> col:27> 'int' postfix '++'
> +// CHECK-NEXT: |       |   | | | | | | `-DeclRefExpr {{.*}} <col:26>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | | | | | `-ForStmt {{.*}} <line:12:5,
> line:13:7>
> +// CHECK-NEXT: |       |   | | | | |   |-DeclStmt {{.*}} <line:12:10,
> col:19>
> +// CHECK-NEXT: |       |   | | | | |   | `-VarDecl {{.*}} <col:10,
> col:18> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       |   | | | | |   |   `-IntegerLiteral {{.*}}
> <col:18> 'int' 0
> +// CHECK-NEXT: |       |   | | | | |   |-<<<NULL>>>
> +// CHECK-NEXT: |       |   | | | | |   |-BinaryOperator {{.*}} <col:21,
> col:25> 'int' '<'
> +// CHECK-NEXT: |       |   | | | | |   | |-ImplicitCastExpr {{.*}}
> <col:21> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |   | | | | |   | | `-DeclRefExpr {{.*}} <col:21>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | | | | |   | `-ImplicitCastExpr {{.*}}
> <col:25> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |   | | | | |   |   `-DeclRefExpr {{.*}} <col:25>
> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       |   | | | | |   |-UnaryOperator {{.*}} <col:28,
> col:29> 'int' postfix '++'
> +// CHECK-NEXT: |       |   | | | | |   | `-DeclRefExpr {{.*}} <col:28>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | | | | |   `-NullStmt {{.*}} <line:13:7>
> +// CHECK-NEXT: |       |   | | | | |-ImplicitParamDecl {{.*}} <line:10:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |   | | | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |   | | | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit used .previous.lb. 'const unsigned long'
> +// CHECK-NEXT: |       |   | | | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit used .previous.ub. 'const unsigned long'
> +// CHECK-NEXT: |       |   | | | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:10:9) *const
> restrict'
> +// CHECK-NEXT: |       |   | | | | |-VarDecl {{.*}} <line:11:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       |   | | | | | `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       |   | | | | `-VarDecl {{.*}} <line:12:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       |   | | | |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT: |       |   | | | |-DeclRefExpr {{.*}} <line:11:3> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       |   | | | `-DeclRefExpr {{.*}} <line:12:25> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       |   | | |-ImplicitParamDecl {{.*}} <line:10:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |   | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |   | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:10:9) *const
> restrict'
> +// CHECK-NEXT: |       |   | | |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT: |       |   | | | |-CapturedRecordAttr {{.*}} <<invalid
> sloc>> Implicit
> +// CHECK-NEXT: |       |   | | | |-FieldDecl {{.*}} <line:11:3> col:3
> implicit 'int'
> +// CHECK-NEXT: |       |   | | | | `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       |   | | | `-FieldDecl {{.*}} <line:12:25> col:25
> implicit 'int'
> +// CHECK-NEXT: |       |   | | |   `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       |   | | `-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       |   | |   |-ForStmt {{.*}} <line:11:3, line:13:7>
> +// CHECK-NEXT: |       |   | |   | |-DeclStmt {{.*}} <line:11:8, col:17>
> +// CHECK-NEXT: |       |   | |   | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       |   | |   | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       |   | |   | |-<<<NULL>>>
> +// CHECK-NEXT: |       |   | |   | |-BinaryOperator {{.*}} <col:19,
> col:23> 'int' '<'
> +// CHECK-NEXT: |       |   | |   | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |   | |   | | | `-DeclRefExpr {{.*}} <col:19>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | |   | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |   | |   | |   `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       |   | |   | |-UnaryOperator {{.*}} <col:26,
> col:27> 'int' postfix '++'
> +// CHECK-NEXT: |       |   | |   | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | |   | `-ForStmt {{.*}} <line:12:5, line:13:7>
> +// CHECK-NEXT: |       |   | |   |   |-DeclStmt {{.*}} <line:12:10,
> col:19>
> +// CHECK-NEXT: |       |   | |   |   | `-VarDecl {{.*}} <col:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       |   | |   |   |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT: |       |   | |   |   |-<<<NULL>>>
> +// CHECK-NEXT: |       |   | |   |   |-BinaryOperator {{.*}} <col:21,
> col:25> 'int' '<'
> +// CHECK-NEXT: |       |   | |   |   | |-ImplicitCastExpr {{.*}} <col:21>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |   | |   |   | | `-DeclRefExpr {{.*}} <col:21>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | |   |   | `-ImplicitCastExpr {{.*}} <col:25>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |   | |   |   |   `-DeclRefExpr {{.*}} <col:25>
> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       |   | |   |   |-UnaryOperator {{.*}} <col:28,
> col:29> 'int' postfix '++'
> +// CHECK-NEXT: |       |   | |   |   | `-DeclRefExpr {{.*}} <col:28>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | |   |   `-NullStmt {{.*}} <line:13:7>
> +// CHECK-NEXT: |       |   | |   |-ImplicitParamDecl {{.*}} <line:10:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |   | |   |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |   | |   |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit used .previous.lb. 'const unsigned long'
> +// CHECK-NEXT: |       |   | |   |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit used .previous.ub. 'const unsigned long'
> +// CHECK-NEXT: |       |   | |   |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:10:9) *const
> restrict'
> +// CHECK-NEXT: |       |   | |   |-VarDecl {{.*}} <line:11:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       |   | |   | `-IntegerLiteral {{.*}} <col:16> 'int'
> 0
> +// CHECK-NEXT: |       |   | |   `-VarDecl {{.*}} <line:12:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       |   | |     `-IntegerLiteral {{.*}} <col:18> 'int'
> 0
> +// CHECK-NEXT: |       |   | |-DeclRefExpr {{.*}} <line:11:3> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       |   | `-DeclRefExpr {{.*}} <line:12:25> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       |   |-ImplicitParamDecl {{.*}} <line:10:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:10:9) *const
> restrict'
> +// CHECK-NEXT: |       |   |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT: |       |   | |-CapturedRecordAttr {{.*}} <<invalid sloc>>
> Implicit
> +// CHECK-NEXT: |       |   | |-FieldDecl {{.*}} <line:11:3> col:3
> implicit 'int'
> +// CHECK-NEXT: |       |   | | `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       |   | `-FieldDecl {{.*}} <line:12:25> col:25
> implicit 'int'
> +// CHECK-NEXT: |       |   |   `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       |   `-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       |     |-CapturedStmt {{.*}} <line:11:3, line:13:7>
> +// CHECK-NEXT: |       |     | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       |     | | |-ForStmt {{.*}} <line:11:3, line:13:7>
> +// CHECK-NEXT: |       |     | | | |-DeclStmt {{.*}} <line:11:8, col:17>
> +// CHECK-NEXT: |       |     | | | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       |     | | | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       |     | | | |-<<<NULL>>>
> +// CHECK-NEXT: |       |     | | | |-BinaryOperator {{.*}} <col:19,
> col:23> 'int' '<'
> +// CHECK-NEXT: |       |     | | | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |     | | | | | `-DeclRefExpr {{.*}} <col:19>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |     | | | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |     | | | |   `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       |     | | | |-UnaryOperator {{.*}} <col:26,
> col:27> 'int' postfix '++'
> +// CHECK-NEXT: |       |     | | | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |     | | | `-ForStmt {{.*}} <line:12:5, line:13:7>
> +// CHECK-NEXT: |       |     | | |   |-DeclStmt {{.*}} <line:12:10,
> col:19>
> +// CHECK-NEXT: |       |     | | |   | `-VarDecl {{.*}} <col:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       |     | | |   |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT: |       |     | | |   |-<<<NULL>>>
> +// CHECK-NEXT: |       |     | | |   |-BinaryOperator {{.*}} <col:21,
> col:25> 'int' '<'
> +// CHECK-NEXT: |       |     | | |   | |-ImplicitCastExpr {{.*}} <col:21>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |     | | |   | | `-DeclRefExpr {{.*}} <col:21>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |     | | |   | `-ImplicitCastExpr {{.*}} <col:25>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |     | | |   |   `-DeclRefExpr {{.*}} <col:25>
> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       |     | | |   |-UnaryOperator {{.*}} <col:28,
> col:29> 'int' postfix '++'
> +// CHECK-NEXT: |       |     | | |   | `-DeclRefExpr {{.*}} <col:28>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |     | | |   `-NullStmt {{.*}} <line:13:7>
> +// CHECK-NEXT: |       |     | | |-ImplicitParamDecl {{.*}} <line:10:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |     | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |     | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit used .previous.lb. 'const unsigned long'
> +// CHECK-NEXT: |       |     | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit used .previous.ub. 'const unsigned long'
> +// CHECK-NEXT: |       |     | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:10:9) *const
> restrict'
> +// CHECK-NEXT: |       |     | | |-VarDecl {{.*}} <line:11:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       |     | | | `-IntegerLiteral {{.*}} <col:16> 'int'
> 0
> +// CHECK-NEXT: |       |     | | `-VarDecl {{.*}} <line:12:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       |     | |   `-IntegerLiteral {{.*}} <col:18> 'int'
> 0
> +// CHECK-NEXT: |       |     | |-DeclRefExpr {{.*}} <line:11:3> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       |     | `-DeclRefExpr {{.*}} <line:12:25> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       |     |-ImplicitParamDecl {{.*}} <line:10:9> col:9
> implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |     |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |     |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:10:9) *const
> restrict'
> +// CHECK-NEXT: |       |     |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT: |       |     | |-CapturedRecordAttr {{.*}} <<invalid
> sloc>> Implicit
> +// CHECK-NEXT: |       |     | |-FieldDecl {{.*}} <line:11:3> col:3
> implicit 'int'
> +// CHECK-NEXT: |       |     | | `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       |     | `-FieldDecl {{.*}} <line:12:25> col:25
> implicit 'int'
> +// CHECK-NEXT: |       |     |   `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       |     `-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       |       |-ForStmt {{.*}} <line:11:3, line:13:7>
> +// CHECK-NEXT: |       |       | |-DeclStmt {{.*}} <line:11:8, col:17>
> +// CHECK-NEXT: |       |       | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       |       | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       |       | |-<<<NULL>>>
> +// CHECK-NEXT: |       |       | |-BinaryOperator {{.*}} <col:19, col:23>
> 'int' '<'
> +// CHECK-NEXT: |       |       | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |       | | | `-DeclRefExpr {{.*}} <col:19> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |       | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |       | |   `-DeclRefExpr {{.*}} <col:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       |       | |-UnaryOperator {{.*}} <col:26, col:27>
> 'int' postfix '++'
> +// CHECK-NEXT: |       |       | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |       | `-ForStmt {{.*}} <line:12:5, line:13:7>
> +// CHECK-NEXT: |       |       |   |-DeclStmt {{.*}} <line:12:10, col:19>
> +// CHECK-NEXT: |       |       |   | `-VarDecl {{.*}} <col:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       |       |   |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT: |       |       |   |-<<<NULL>>>
> +// CHECK-NEXT: |       |       |   |-BinaryOperator {{.*}} <col:21,
> col:25> 'int' '<'
> +// CHECK-NEXT: |       |       |   | |-ImplicitCastExpr {{.*}} <col:21>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |       |   | | `-DeclRefExpr {{.*}} <col:21>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |       |   | `-ImplicitCastExpr {{.*}} <col:25>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |       |   |   `-DeclRefExpr {{.*}} <col:25>
> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       |       |   |-UnaryOperator {{.*}} <col:28,
> col:29> 'int' postfix '++'
> +// CHECK-NEXT: |       |       |   | `-DeclRefExpr {{.*}} <col:28> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |       |   `-NullStmt {{.*}} <line:13:7>
> +// CHECK-NEXT: |       |       |-ImplicitParamDecl {{.*}} <line:10:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |       |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |       |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit used .previous.lb. 'const unsigned long'
> +// CHECK-NEXT: |       |       |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit used .previous.ub. 'const unsigned long'
> +// CHECK-NEXT: |       |       |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:10:9) *const
> restrict'
> +// CHECK-NEXT: |       |       |-VarDecl {{.*}} <line:11:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       |       | `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       |       `-VarDecl {{.*}} <line:12:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       |         `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT: |       |-DeclRefExpr {{.*}} <line:11:3> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       `-DeclRefExpr {{.*}} <line:12:25> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |-FunctionDecl {{.*}} <line:16:1, line:21:1> line:16:6
> test_three 'void (int, int)'
> +// CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:17, col:21> col:21 used x 'int'
> +// CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:24, col:28> col:28 used y 'int'
> +// CHECK-NEXT: | `-CompoundStmt {{.*}} <col:31, line:21:1>
> +// CHECK-NEXT: |   `-OMPTargetTeamsDistributeParallelForDirective {{.*}}
> <line:17:9, col:61>
> +// CHECK-NEXT: |     |-OMPCollapseClause {{.*}} <col:50, col:60>
> +// CHECK-NEXT: |     | `-ConstantExpr {{.*}} <col:59> 'int'
> +// CHECK-NEXT: |     |   `-IntegerLiteral {{.*}} <col:59> 'int' 1
> +// CHECK-NEXT: |     |-OMPFirstprivateClause {{.*}} <<invalid sloc>>
> <implicit>
> +// CHECK-NEXT: |     | |-DeclRefExpr {{.*}} <line:18:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |     | `-DeclRefExpr {{.*}} <line:19:25> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |     `-CapturedStmt {{.*}} <line:18:3, line:20:7>
> +// CHECK-NEXT: |       |-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc> nothrow
> +// CHECK-NEXT: |       | |-CapturedStmt {{.*}} <line:18:3, line:20:7>
> +// CHECK-NEXT: |       | | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       | | | |-CapturedStmt {{.*}} <line:18:3, line:20:7>
> +// CHECK-NEXT: |       | | | | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       | | | | | |-CapturedStmt {{.*}} <line:18:3,
> line:20:7>
> +// CHECK-NEXT: |       | | | | | | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       | | | | | | | |-ForStmt {{.*}} <line:18:3,
> line:20:7>
> +// CHECK-NEXT: |       | | | | | | | | |-DeclStmt {{.*}} <line:18:8,
> col:17>
> +// CHECK-NEXT: |       | | | | | | | | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | | | | | | | |   `-IntegerLiteral {{.*}}
> <col:16> 'int' 0
> +// CHECK-NEXT: |       | | | | | | | | |-<<<NULL>>>
> +// CHECK-NEXT: |       | | | | | | | | |-BinaryOperator {{.*}} <col:19,
> col:23> 'int' '<'
> +// CHECK-NEXT: |       | | | | | | | | | |-ImplicitCastExpr {{.*}}
> <col:19> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | | | | | | | | `-DeclRefExpr {{.*}} <col:19>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | | | | | | `-ImplicitCastExpr {{.*}}
> <col:23> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | | | | | | |   `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | | | | | | | |-UnaryOperator {{.*}} <col:26,
> col:27> 'int' postfix '++'
> +// CHECK-NEXT: |       | | | | | | | | | `-DeclRefExpr {{.*}} <col:26>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | | | | | `-ForStmt {{.*}} <line:19:5,
> line:20:7>
> +// CHECK-NEXT: |       | | | | | | | |   |-DeclStmt {{.*}} <line:19:10,
> col:19>
> +// CHECK-NEXT: |       | | | | | | | |   | `-VarDecl {{.*}} <col:10,
> col:18> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       | | | | | | | |   |   `-IntegerLiteral {{.*}}
> <col:18> 'int' 0
> +// CHECK-NEXT: |       | | | | | | | |   |-<<<NULL>>>
> +// CHECK-NEXT: |       | | | | | | | |   |-BinaryOperator {{.*}} <col:21,
> col:25> 'int' '<'
> +// CHECK-NEXT: |       | | | | | | | |   | |-ImplicitCastExpr {{.*}}
> <col:21> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | | | | | |   | | `-DeclRefExpr {{.*}}
> <col:21> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | | | | |   | `-ImplicitCastExpr {{.*}}
> <col:25> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | | | | | |   |   `-DeclRefExpr {{.*}}
> <col:25> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | | | | | | | |   |-UnaryOperator {{.*}} <col:28,
> col:29> 'int' postfix '++'
> +// CHECK-NEXT: |       | | | | | | | |   | `-DeclRefExpr {{.*}} <col:28>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | | | | |   `-NullStmt {{.*}} <line:20:7>
> +// CHECK-NEXT: |       | | | | | | | |-ImplicitParamDecl {{.*}}
> <line:17:9> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | | | | | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | | | | | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit used .previous.lb. 'const unsigned long'
> +// CHECK-NEXT: |       | | | | | | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit used .previous.ub. 'const unsigned long'
> +// CHECK-NEXT: |       | | | | | | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:17:9) *const
> restrict'
> +// CHECK-NEXT: |       | | | | | | | |-VarDecl {{.*}} <line:18:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | | | | | | | `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       | | | | | | | `-VarDecl {{.*}} <line:19:10,
> col:18> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       | | | | | | |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT: |       | | | | | | |-DeclRefExpr {{.*}} <line:18:3> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | | | | | `-DeclRefExpr {{.*}} <line:19:25>
> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | | | | | |-ImplicitParamDecl {{.*}} <line:17:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | | | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | | | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:17:9) *const
> restrict'
> +// CHECK-NEXT: |       | | | | | |-RecordDecl {{.*}} <col:9> col:9
> implicit struct definition
> +// CHECK-NEXT: |       | | | | | | |-CapturedRecordAttr {{.*}} <<invalid
> sloc>> Implicit
> +// CHECK-NEXT: |       | | | | | | |-FieldDecl {{.*}} <line:18:3> col:3
> implicit 'int'
> +// CHECK-NEXT: |       | | | | | | | `-OMPCaptureKindAttr {{.*}}
> <<invalid sloc>> Implicit 9
> +// CHECK-NEXT: |       | | | | | | `-FieldDecl {{.*}} <line:19:25> col:25
> implicit 'int'
> +// CHECK-NEXT: |       | | | | | |   `-OMPCaptureKindAttr {{.*}}
> <<invalid sloc>> Implicit 9
> +// CHECK-NEXT: |       | | | | | `-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       | | | | |   |-ForStmt {{.*}} <line:18:3, line:20:7>
> +// CHECK-NEXT: |       | | | | |   | |-DeclStmt {{.*}} <line:18:8, col:17>
> +// CHECK-NEXT: |       | | | | |   | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | | | |   | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       | | | | |   | |-<<<NULL>>>
> +// CHECK-NEXT: |       | | | | |   | |-BinaryOperator {{.*}} <col:19,
> col:23> 'int' '<'
> +// CHECK-NEXT: |       | | | | |   | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | | |   | | | `-DeclRefExpr {{.*}} <col:19>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | |   | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | | |   | |   `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | | | |   | |-UnaryOperator {{.*}} <col:26,
> col:27> 'int' postfix '++'
> +// CHECK-NEXT: |       | | | | |   | | `-DeclRefExpr {{.*}} <col:26>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | |   | `-ForStmt {{.*}} <line:19:5,
> line:20:7>
> +// CHECK-NEXT: |       | | | | |   |   |-DeclStmt {{.*}} <line:19:10,
> col:19>
> +// CHECK-NEXT: |       | | | | |   |   | `-VarDecl {{.*}} <col:10,
> col:18> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       | | | | |   |   |   `-IntegerLiteral {{.*}}
> <col:18> 'int' 0
> +// CHECK-NEXT: |       | | | | |   |   |-<<<NULL>>>
> +// CHECK-NEXT: |       | | | | |   |   |-BinaryOperator {{.*}} <col:21,
> col:25> 'int' '<'
> +// CHECK-NEXT: |       | | | | |   |   | |-ImplicitCastExpr {{.*}}
> <col:21> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | | |   |   | | `-DeclRefExpr {{.*}} <col:21>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | |   |   | `-ImplicitCastExpr {{.*}}
> <col:25> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | | |   |   |   `-DeclRefExpr {{.*}} <col:25>
> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | | | | |   |   |-UnaryOperator {{.*}} <col:28,
> col:29> 'int' postfix '++'
> +// CHECK-NEXT: |       | | | | |   |   | `-DeclRefExpr {{.*}} <col:28>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | |   |   `-NullStmt {{.*}} <line:20:7>
> +// CHECK-NEXT: |       | | | | |   |-ImplicitParamDecl {{.*}} <line:17:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | | | |   |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | | | |   |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit used .previous.lb. 'const unsigned long'
> +// CHECK-NEXT: |       | | | | |   |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit used .previous.ub. 'const unsigned long'
> +// CHECK-NEXT: |       | | | | |   |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:17:9) *const
> restrict'
> +// CHECK-NEXT: |       | | | | |   |-VarDecl {{.*}} <line:18:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | | | |   | `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       | | | | |   `-VarDecl {{.*}} <line:19:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       | | | | |     `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT: |       | | | | |-DeclRefExpr {{.*}} <line:18:3> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | | | `-DeclRefExpr {{.*}} <line:19:25> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | | | |-ImplicitParamDecl {{.*}} <line:17:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:17:9) *const
> restrict'
> +// CHECK-NEXT: |       | | | |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT: |       | | | | |-CapturedRecordAttr {{.*}} <<invalid
> sloc>> Implicit
> +// CHECK-NEXT: |       | | | | |-FieldDecl {{.*}} <line:18:3> col:3
> implicit 'int'
> +// CHECK-NEXT: |       | | | | | `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       | | | | `-FieldDecl {{.*}} <line:19:25> col:25
> implicit 'int'
> +// CHECK-NEXT: |       | | | |   `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       | | | `-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       | | |   |-CapturedStmt {{.*}} <line:18:3,
> line:20:7>
> +// CHECK-NEXT: |       | | |   | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       | | |   | | |-ForStmt {{.*}} <line:18:3, line:20:7>
> +// CHECK-NEXT: |       | | |   | | | |-DeclStmt {{.*}} <line:18:8, col:17>
> +// CHECK-NEXT: |       | | |   | | | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | |   | | | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       | | |   | | | |-<<<NULL>>>
> +// CHECK-NEXT: |       | | |   | | | |-BinaryOperator {{.*}} <col:19,
> col:23> 'int' '<'
> +// CHECK-NEXT: |       | | |   | | | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | |   | | | | | `-DeclRefExpr {{.*}} <col:19>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | |   | | | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | |   | | | |   `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | |   | | | |-UnaryOperator {{.*}} <col:26,
> col:27> 'int' postfix '++'
> +// CHECK-NEXT: |       | | |   | | | | `-DeclRefExpr {{.*}} <col:26>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | |   | | | `-ForStmt {{.*}} <line:19:5,
> line:20:7>
> +// CHECK-NEXT: |       | | |   | | |   |-DeclStmt {{.*}} <line:19:10,
> col:19>
> +// CHECK-NEXT: |       | | |   | | |   | `-VarDecl {{.*}} <col:10,
> col:18> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       | | |   | | |   |   `-IntegerLiteral {{.*}}
> <col:18> 'int' 0
> +// CHECK-NEXT: |       | | |   | | |   |-<<<NULL>>>
> +// CHECK-NEXT: |       | | |   | | |   |-BinaryOperator {{.*}} <col:21,
> col:25> 'int' '<'
> +// CHECK-NEXT: |       | | |   | | |   | |-ImplicitCastExpr {{.*}}
> <col:21> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | |   | | |   | | `-DeclRefExpr {{.*}} <col:21>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | |   | | |   | `-ImplicitCastExpr {{.*}}
> <col:25> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | |   | | |   |   `-DeclRefExpr {{.*}} <col:25>
> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | | |   | | |   |-UnaryOperator {{.*}} <col:28,
> col:29> 'int' postfix '++'
> +// CHECK-NEXT: |       | | |   | | |   | `-DeclRefExpr {{.*}} <col:28>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | |   | | |   `-NullStmt {{.*}} <line:20:7>
> +// CHECK-NEXT: |       | | |   | | |-ImplicitParamDecl {{.*}} <line:17:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | |   | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | |   | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit used .previous.lb. 'const unsigned long'
> +// CHECK-NEXT: |       | | |   | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit used .previous.ub. 'const unsigned long'
> +// CHECK-NEXT: |       | | |   | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:17:9) *const
> restrict'
> +// CHECK-NEXT: |       | | |   | | |-VarDecl {{.*}} <line:18:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | |   | | | `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       | | |   | | `-VarDecl {{.*}} <line:19:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       | | |   | |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT: |       | | |   | |-DeclRefExpr {{.*}} <line:18:3> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | |   | `-DeclRefExpr {{.*}} <line:19:25> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | | |   |-ImplicitParamDecl {{.*}} <line:17:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | |   |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | |   |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:17:9) *const
> restrict'
> +// CHECK-NEXT: |       | | |   |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT: |       | | |   | |-CapturedRecordAttr {{.*}} <<invalid
> sloc>> Implicit
> +// CHECK-NEXT: |       | | |   | |-FieldDecl {{.*}} <line:18:3> col:3
> implicit 'int'
> +// CHECK-NEXT: |       | | |   | | `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       | | |   | `-FieldDecl {{.*}} <line:19:25> col:25
> implicit 'int'
> +// CHECK-NEXT: |       | | |   |   `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       | | |   `-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       | | |     |-ForStmt {{.*}} <line:18:3, line:20:7>
> +// CHECK-NEXT: |       | | |     | |-DeclStmt {{.*}} <line:18:8, col:17>
> +// CHECK-NEXT: |       | | |     | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | |     | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       | | |     | |-<<<NULL>>>
> +// CHECK-NEXT: |       | | |     | |-BinaryOperator {{.*}} <col:19,
> col:23> 'int' '<'
> +// CHECK-NEXT: |       | | |     | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | |     | | | `-DeclRefExpr {{.*}} <col:19>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | |     | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | |     | |   `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | |     | |-UnaryOperator {{.*}} <col:26,
> col:27> 'int' postfix '++'
> +// CHECK-NEXT: |       | | |     | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | |     | `-ForStmt {{.*}} <line:19:5, line:20:7>
> +// CHECK-NEXT: |       | | |     |   |-DeclStmt {{.*}} <line:19:10,
> col:19>
> +// CHECK-NEXT: |       | | |     |   | `-VarDecl {{.*}} <col:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       | | |     |   |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT: |       | | |     |   |-<<<NULL>>>
> +// CHECK-NEXT: |       | | |     |   |-BinaryOperator {{.*}} <col:21,
> col:25> 'int' '<'
> +// CHECK-NEXT: |       | | |     |   | |-ImplicitCastExpr {{.*}} <col:21>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | |     |   | | `-DeclRefExpr {{.*}} <col:21>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | |     |   | `-ImplicitCastExpr {{.*}} <col:25>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | |     |   |   `-DeclRefExpr {{.*}} <col:25>
> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | | |     |   |-UnaryOperator {{.*}} <col:28,
> col:29> 'int' postfix '++'
> +// CHECK-NEXT: |       | | |     |   | `-DeclRefExpr {{.*}} <col:28>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | |     |   `-NullStmt {{.*}} <line:20:7>
> +// CHECK-NEXT: |       | | |     |-ImplicitParamDecl {{.*}} <line:17:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | |     |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | |     |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit used .previous.lb. 'const unsigned long'
> +// CHECK-NEXT: |       | | |     |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit used .previous.ub. 'const unsigned long'
> +// CHECK-NEXT: |       | | |     |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:17:9) *const
> restrict'
> +// CHECK-NEXT: |       | | |     |-VarDecl {{.*}} <line:18:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | |     | `-IntegerLiteral {{.*}} <col:16> 'int'
> 0
> +// CHECK-NEXT: |       | | |     `-VarDecl {{.*}} <line:19:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       | | |       `-IntegerLiteral {{.*}} <col:18> 'int'
> 0
> +// CHECK-NEXT: |       | | |-DeclRefExpr {{.*}} <line:18:3> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | `-DeclRefExpr {{.*}} <line:19:25> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | |-AlwaysInlineAttr {{.*}} <<invalid sloc>>
> Implicit __forceinline
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <line:17:9> col:9
> implicit .global_tid. 'const int'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .part_id. 'const int *const restrict'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .privates. 'void *const restrict'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .task_t. 'void *const'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:17:9) *const
> restrict'
> +// CHECK-NEXT: |       | |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT: |       | | |-CapturedRecordAttr {{.*}} <<invalid sloc>>
> Implicit
> +// CHECK-NEXT: |       | | |-FieldDecl {{.*}} <line:18:3> col:3 implicit
> 'int'
> +// CHECK-NEXT: |       | | | `-OMPCaptureKindAttr {{.*}} <<invalid sloc>>
> Implicit 9
> +// CHECK-NEXT: |       | | `-FieldDecl {{.*}} <line:19:25> col:25
> implicit 'int'
> +// CHECK-NEXT: |       | |   `-OMPCaptureKindAttr {{.*}} <<invalid sloc>>
> Implicit 9
> +// CHECK-NEXT: |       | `-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc> nothrow
> +// CHECK-NEXT: |       |   |-CapturedStmt {{.*}} <line:18:3, line:20:7>
> +// CHECK-NEXT: |       |   | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       |   | | |-CapturedStmt {{.*}} <line:18:3,
> line:20:7>
> +// CHECK-NEXT: |       |   | | | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       |   | | | | |-ForStmt {{.*}} <line:18:3, line:20:7>
> +// CHECK-NEXT: |       |   | | | | | |-DeclStmt {{.*}} <line:18:8, col:17>
> +// CHECK-NEXT: |       |   | | | | | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       |   | | | | | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       |   | | | | | |-<<<NULL>>>
> +// CHECK-NEXT: |       |   | | | | | |-BinaryOperator {{.*}} <col:19,
> col:23> 'int' '<'
> +// CHECK-NEXT: |       |   | | | | | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |   | | | | | | | `-DeclRefExpr {{.*}} <col:19>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | | | | | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |   | | | | | |   `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       |   | | | | | |-UnaryOperator {{.*}} <col:26,
> col:27> 'int' postfix '++'
> +// CHECK-NEXT: |       |   | | | | | | `-DeclRefExpr {{.*}} <col:26>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | | | | | `-ForStmt {{.*}} <line:19:5,
> line:20:7>
> +// CHECK-NEXT: |       |   | | | | |   |-DeclStmt {{.*}} <line:19:10,
> col:19>
> +// CHECK-NEXT: |       |   | | | | |   | `-VarDecl {{.*}} <col:10,
> col:18> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       |   | | | | |   |   `-IntegerLiteral {{.*}}
> <col:18> 'int' 0
> +// CHECK-NEXT: |       |   | | | | |   |-<<<NULL>>>
> +// CHECK-NEXT: |       |   | | | | |   |-BinaryOperator {{.*}} <col:21,
> col:25> 'int' '<'
> +// CHECK-NEXT: |       |   | | | | |   | |-ImplicitCastExpr {{.*}}
> <col:21> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |   | | | | |   | | `-DeclRefExpr {{.*}} <col:21>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | | | | |   | `-ImplicitCastExpr {{.*}}
> <col:25> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |   | | | | |   |   `-DeclRefExpr {{.*}} <col:25>
> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       |   | | | | |   |-UnaryOperator {{.*}} <col:28,
> col:29> 'int' postfix '++'
> +// CHECK-NEXT: |       |   | | | | |   | `-DeclRefExpr {{.*}} <col:28>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | | | | |   `-NullStmt {{.*}} <line:20:7>
> +// CHECK-NEXT: |       |   | | | | |-ImplicitParamDecl {{.*}} <line:17:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |   | | | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |   | | | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit used .previous.lb. 'const unsigned long'
> +// CHECK-NEXT: |       |   | | | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit used .previous.ub. 'const unsigned long'
> +// CHECK-NEXT: |       |   | | | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:17:9) *const
> restrict'
> +// CHECK-NEXT: |       |   | | | | |-VarDecl {{.*}} <line:18:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       |   | | | | | `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       |   | | | | `-VarDecl {{.*}} <line:19:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       |   | | | |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT: |       |   | | | |-DeclRefExpr {{.*}} <line:18:3> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       |   | | | `-DeclRefExpr {{.*}} <line:19:25> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       |   | | |-ImplicitParamDecl {{.*}} <line:17:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |   | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |   | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:17:9) *const
> restrict'
> +// CHECK-NEXT: |       |   | | |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT: |       |   | | | |-CapturedRecordAttr {{.*}} <<invalid
> sloc>> Implicit
> +// CHECK-NEXT: |       |   | | | |-FieldDecl {{.*}} <line:18:3> col:3
> implicit 'int'
> +// CHECK-NEXT: |       |   | | | | `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       |   | | | `-FieldDecl {{.*}} <line:19:25> col:25
> implicit 'int'
> +// CHECK-NEXT: |       |   | | |   `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       |   | | `-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       |   | |   |-ForStmt {{.*}} <line:18:3, line:20:7>
> +// CHECK-NEXT: |       |   | |   | |-DeclStmt {{.*}} <line:18:8, col:17>
> +// CHECK-NEXT: |       |   | |   | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       |   | |   | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       |   | |   | |-<<<NULL>>>
> +// CHECK-NEXT: |       |   | |   | |-BinaryOperator {{.*}} <col:19,
> col:23> 'int' '<'
> +// CHECK-NEXT: |       |   | |   | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |   | |   | | | `-DeclRefExpr {{.*}} <col:19>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | |   | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |   | |   | |   `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       |   | |   | |-UnaryOperator {{.*}} <col:26,
> col:27> 'int' postfix '++'
> +// CHECK-NEXT: |       |   | |   | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | |   | `-ForStmt {{.*}} <line:19:5, line:20:7>
> +// CHECK-NEXT: |       |   | |   |   |-DeclStmt {{.*}} <line:19:10,
> col:19>
> +// CHECK-NEXT: |       |   | |   |   | `-VarDecl {{.*}} <col:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       |   | |   |   |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT: |       |   | |   |   |-<<<NULL>>>
> +// CHECK-NEXT: |       |   | |   |   |-BinaryOperator {{.*}} <col:21,
> col:25> 'int' '<'
> +// CHECK-NEXT: |       |   | |   |   | |-ImplicitCastExpr {{.*}} <col:21>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |   | |   |   | | `-DeclRefExpr {{.*}} <col:21>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | |   |   | `-ImplicitCastExpr {{.*}} <col:25>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |   | |   |   |   `-DeclRefExpr {{.*}} <col:25>
> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       |   | |   |   |-UnaryOperator {{.*}} <col:28,
> col:29> 'int' postfix '++'
> +// CHECK-NEXT: |       |   | |   |   | `-DeclRefExpr {{.*}} <col:28>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | |   |   `-NullStmt {{.*}} <line:20:7>
> +// CHECK-NEXT: |       |   | |   |-ImplicitParamDecl {{.*}} <line:17:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |   | |   |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |   | |   |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit used .previous.lb. 'const unsigned long'
> +// CHECK-NEXT: |       |   | |   |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit used .previous.ub. 'const unsigned long'
> +// CHECK-NEXT: |       |   | |   |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:17:9) *const
> restrict'
> +// CHECK-NEXT: |       |   | |   |-VarDecl {{.*}} <line:18:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       |   | |   | `-IntegerLiteral {{.*}} <col:16> 'int'
> 0
> +// CHECK-NEXT: |       |   | |   `-VarDecl {{.*}} <line:19:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       |   | |     `-IntegerLiteral {{.*}} <col:18> 'int'
> 0
> +// CHECK-NEXT: |       |   | |-DeclRefExpr {{.*}} <line:18:3> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       |   | `-DeclRefExpr {{.*}} <line:19:25> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       |   |-ImplicitParamDecl {{.*}} <line:17:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:17:9) *const
> restrict'
> +// CHECK-NEXT: |       |   |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT: |       |   | |-CapturedRecordAttr {{.*}} <<invalid sloc>>
> Implicit
> +// CHECK-NEXT: |       |   | |-FieldDecl {{.*}} <line:18:3> col:3
> implicit 'int'
> +// CHECK-NEXT: |       |   | | `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       |   | `-FieldDecl {{.*}} <line:19:25> col:25
> implicit 'int'
> +// CHECK-NEXT: |       |   |   `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       |   `-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       |     |-CapturedStmt {{.*}} <line:18:3, line:20:7>
> +// CHECK-NEXT: |       |     | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       |     | | |-ForStmt {{.*}} <line:18:3, line:20:7>
> +// CHECK-NEXT: |       |     | | | |-DeclStmt {{.*}} <line:18:8, col:17>
> +// CHECK-NEXT: |       |     | | | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       |     | | | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       |     | | | |-<<<NULL>>>
> +// CHECK-NEXT: |       |     | | | |-BinaryOperator {{.*}} <col:19,
> col:23> 'int' '<'
> +// CHECK-NEXT: |       |     | | | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |     | | | | | `-DeclRefExpr {{.*}} <col:19>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |     | | | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |     | | | |   `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       |     | | | |-UnaryOperator {{.*}} <col:26,
> col:27> 'int' postfix '++'
> +// CHECK-NEXT: |       |     | | | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |     | | | `-ForStmt {{.*}} <line:19:5, line:20:7>
> +// CHECK-NEXT: |       |     | | |   |-DeclStmt {{.*}} <line:19:10,
> col:19>
> +// CHECK-NEXT: |       |     | | |   | `-VarDecl {{.*}} <col:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       |     | | |   |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT: |       |     | | |   |-<<<NULL>>>
> +// CHECK-NEXT: |       |     | | |   |-BinaryOperator {{.*}} <col:21,
> col:25> 'int' '<'
> +// CHECK-NEXT: |       |     | | |   | |-ImplicitCastExpr {{.*}} <col:21>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |     | | |   | | `-DeclRefExpr {{.*}} <col:21>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |     | | |   | `-ImplicitCastExpr {{.*}} <col:25>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |     | | |   |   `-DeclRefExpr {{.*}} <col:25>
> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       |     | | |   |-UnaryOperator {{.*}} <col:28,
> col:29> 'int' postfix '++'
> +// CHECK-NEXT: |       |     | | |   | `-DeclRefExpr {{.*}} <col:28>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |     | | |   `-NullStmt {{.*}} <line:20:7>
> +// CHECK-NEXT: |       |     | | |-ImplicitParamDecl {{.*}} <line:17:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |     | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |     | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit used .previous.lb. 'const unsigned long'
> +// CHECK-NEXT: |       |     | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit used .previous.ub. 'const unsigned long'
> +// CHECK-NEXT: |       |     | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:17:9) *const
> restrict'
> +// CHECK-NEXT: |       |     | | |-VarDecl {{.*}} <line:18:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       |     | | | `-IntegerLiteral {{.*}} <col:16> 'int'
> 0
> +// CHECK-NEXT: |       |     | | `-VarDecl {{.*}} <line:19:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       |     | |   `-IntegerLiteral {{.*}} <col:18> 'int'
> 0
> +// CHECK-NEXT: |       |     | |-DeclRefExpr {{.*}} <line:18:3> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       |     | `-DeclRefExpr {{.*}} <line:19:25> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       |     |-ImplicitParamDecl {{.*}} <line:17:9> col:9
> implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |     |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |     |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:17:9) *const
> restrict'
> +// CHECK-NEXT: |       |     |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT: |       |     | |-CapturedRecordAttr {{.*}} <<invalid
> sloc>> Implicit
> +// CHECK-NEXT: |       |     | |-FieldDecl {{.*}} <line:18:3> col:3
> implicit 'int'
> +// CHECK-NEXT: |       |     | | `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       |     | `-FieldDecl {{.*}} <line:19:25> col:25
> implicit 'int'
> +// CHECK-NEXT: |       |     |   `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       |     `-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       |       |-ForStmt {{.*}} <line:18:3, line:20:7>
> +// CHECK-NEXT: |       |       | |-DeclStmt {{.*}} <line:18:8, col:17>
> +// CHECK-NEXT: |       |       | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       |       | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       |       | |-<<<NULL>>>
> +// CHECK-NEXT: |       |       | |-BinaryOperator {{.*}} <col:19, col:23>
> 'int' '<'
> +// CHECK-NEXT: |       |       | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |       | | | `-DeclRefExpr {{.*}} <col:19> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |       | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |       | |   `-DeclRefExpr {{.*}} <col:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       |       | |-UnaryOperator {{.*}} <col:26, col:27>
> 'int' postfix '++'
> +// CHECK-NEXT: |       |       | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |       | `-ForStmt {{.*}} <line:19:5, line:20:7>
> +// CHECK-NEXT: |       |       |   |-DeclStmt {{.*}} <line:19:10, col:19>
> +// CHECK-NEXT: |       |       |   | `-VarDecl {{.*}} <col:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       |       |   |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT: |       |       |   |-<<<NULL>>>
> +// CHECK-NEXT: |       |       |   |-BinaryOperator {{.*}} <col:21,
> col:25> 'int' '<'
> +// CHECK-NEXT: |       |       |   | |-ImplicitCastExpr {{.*}} <col:21>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |       |   | | `-DeclRefExpr {{.*}} <col:21>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |       |   | `-ImplicitCastExpr {{.*}} <col:25>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |       |   |   `-DeclRefExpr {{.*}} <col:25>
> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       |       |   |-UnaryOperator {{.*}} <col:28,
> col:29> 'int' postfix '++'
> +// CHECK-NEXT: |       |       |   | `-DeclRefExpr {{.*}} <col:28> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |       |   `-NullStmt {{.*}} <line:20:7>
> +// CHECK-NEXT: |       |       |-ImplicitParamDecl {{.*}} <line:17:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |       |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |       |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit used .previous.lb. 'const unsigned long'
> +// CHECK-NEXT: |       |       |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit used .previous.ub. 'const unsigned long'
> +// CHECK-NEXT: |       |       |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:17:9) *const
> restrict'
> +// CHECK-NEXT: |       |       |-VarDecl {{.*}} <line:18:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       |       | `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       |       `-VarDecl {{.*}} <line:19:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       |         `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT: |       |-DeclRefExpr {{.*}} <line:18:3> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       `-DeclRefExpr {{.*}} <line:19:25> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |-FunctionDecl {{.*}} <line:23:1, line:28:1> line:23:6
> test_four 'void (int, int)'
> +// CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:16, col:20> col:20 used x 'int'
> +// CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:23, col:27> col:27 used y 'int'
> +// CHECK-NEXT: | `-CompoundStmt {{.*}} <col:30, line:28:1>
> +// CHECK-NEXT: |   `-OMPTargetTeamsDistributeParallelForDirective {{.*}}
> <line:24:9, col:61>
> +// CHECK-NEXT: |     |-OMPCollapseClause {{.*}} <col:50, col:60>
> +// CHECK-NEXT: |     | `-ConstantExpr {{.*}} <col:59> 'int'
> +// CHECK-NEXT: |     |   `-IntegerLiteral {{.*}} <col:59> 'int' 2
> +// CHECK-NEXT: |     |-OMPFirstprivateClause {{.*}} <<invalid sloc>>
> <implicit>
> +// CHECK-NEXT: |     | |-DeclRefExpr {{.*}} <line:25:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |     | `-DeclRefExpr {{.*}} <line:26:25> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |     `-CapturedStmt {{.*}} <line:25:3, line:27:7>
> +// CHECK-NEXT: |       |-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc> nothrow
> +// CHECK-NEXT: |       | |-CapturedStmt {{.*}} <line:25:3, line:27:7>
> +// CHECK-NEXT: |       | | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       | | | |-CapturedStmt {{.*}} <line:25:3, line:27:7>
> +// CHECK-NEXT: |       | | | | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       | | | | | |-CapturedStmt {{.*}} <line:25:3,
> line:27:7>
> +// CHECK-NEXT: |       | | | | | | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       | | | | | | | |-ForStmt {{.*}} <line:25:3,
> line:27:7>
> +// CHECK-NEXT: |       | | | | | | | | |-DeclStmt {{.*}} <line:25:8,
> col:17>
> +// CHECK-NEXT: |       | | | | | | | | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | | | | | | | |   `-IntegerLiteral {{.*}}
> <col:16> 'int' 0
> +// CHECK-NEXT: |       | | | | | | | | |-<<<NULL>>>
> +// CHECK-NEXT: |       | | | | | | | | |-BinaryOperator {{.*}} <col:19,
> col:23> 'int' '<'
> +// CHECK-NEXT: |       | | | | | | | | | |-ImplicitCastExpr {{.*}}
> <col:19> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | | | | | | | | `-DeclRefExpr {{.*}} <col:19>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | | | | | | `-ImplicitCastExpr {{.*}}
> <col:23> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | | | | | | |   `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | | | | | | | |-UnaryOperator {{.*}} <col:26,
> col:27> 'int' postfix '++'
> +// CHECK-NEXT: |       | | | | | | | | | `-DeclRefExpr {{.*}} <col:26>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | | | | | `-ForStmt {{.*}} <line:26:5,
> line:27:7>
> +// CHECK-NEXT: |       | | | | | | | |   |-DeclStmt {{.*}} <line:26:10,
> col:19>
> +// CHECK-NEXT: |       | | | | | | | |   | `-VarDecl {{.*}} <col:10,
> col:18> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       | | | | | | | |   |   `-IntegerLiteral {{.*}}
> <col:18> 'int' 0
> +// CHECK-NEXT: |       | | | | | | | |   |-<<<NULL>>>
> +// CHECK-NEXT: |       | | | | | | | |   |-BinaryOperator {{.*}} <col:21,
> col:25> 'int' '<'
> +// CHECK-NEXT: |       | | | | | | | |   | |-ImplicitCastExpr {{.*}}
> <col:21> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | | | | | |   | | `-DeclRefExpr {{.*}}
> <col:21> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | | | | |   | `-ImplicitCastExpr {{.*}}
> <col:25> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | | | | | |   |   `-DeclRefExpr {{.*}}
> <col:25> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | | | | | | | |   |-UnaryOperator {{.*}} <col:28,
> col:29> 'int' postfix '++'
> +// CHECK-NEXT: |       | | | | | | | |   | `-DeclRefExpr {{.*}} <col:28>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | | | | |   `-NullStmt {{.*}} <line:27:7>
> +// CHECK-NEXT: |       | | | | | | | |-ImplicitParamDecl {{.*}}
> <line:24:9> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | | | | | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | | | | | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit used .previous.lb. 'const unsigned long'
> +// CHECK-NEXT: |       | | | | | | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit used .previous.ub. 'const unsigned long'
> +// CHECK-NEXT: |       | | | | | | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:24:9) *const
> restrict'
> +// CHECK-NEXT: |       | | | | | | | |-VarDecl {{.*}} <line:25:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | | | | | | | `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       | | | | | | | `-VarDecl {{.*}} <line:26:10,
> col:18> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       | | | | | | |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT: |       | | | | | | |-DeclRefExpr {{.*}} <line:25:3> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | | | | | `-DeclRefExpr {{.*}} <line:26:5> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | | | | | |-ImplicitParamDecl {{.*}} <line:24:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | | | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | | | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:24:9) *const
> restrict'
> +// CHECK-NEXT: |       | | | | | |-RecordDecl {{.*}} <col:9> col:9
> implicit struct definition
> +// CHECK-NEXT: |       | | | | | | |-CapturedRecordAttr {{.*}} <<invalid
> sloc>> Implicit
> +// CHECK-NEXT: |       | | | | | | |-FieldDecl {{.*}} <line:25:3> col:3
> implicit 'int'
> +// CHECK-NEXT: |       | | | | | | | `-OMPCaptureKindAttr {{.*}}
> <<invalid sloc>> Implicit 9
> +// CHECK-NEXT: |       | | | | | | `-FieldDecl {{.*}} <line:26:5> col:5
> implicit 'int'
> +// CHECK-NEXT: |       | | | | | |   `-OMPCaptureKindAttr {{.*}}
> <<invalid sloc>> Implicit 9
> +// CHECK-NEXT: |       | | | | | `-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       | | | | |   |-ForStmt {{.*}} <line:25:3, line:27:7>
> +// CHECK-NEXT: |       | | | | |   | |-DeclStmt {{.*}} <line:25:8, col:17>
> +// CHECK-NEXT: |       | | | | |   | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | | | |   | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       | | | | |   | |-<<<NULL>>>
> +// CHECK-NEXT: |       | | | | |   | |-BinaryOperator {{.*}} <col:19,
> col:23> 'int' '<'
> +// CHECK-NEXT: |       | | | | |   | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | | |   | | | `-DeclRefExpr {{.*}} <col:19>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | |   | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | | |   | |   `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | | | |   | |-UnaryOperator {{.*}} <col:26,
> col:27> 'int' postfix '++'
> +// CHECK-NEXT: |       | | | | |   | | `-DeclRefExpr {{.*}} <col:26>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | |   | `-ForStmt {{.*}} <line:26:5,
> line:27:7>
> +// CHECK-NEXT: |       | | | | |   |   |-DeclStmt {{.*}} <line:26:10,
> col:19>
> +// CHECK-NEXT: |       | | | | |   |   | `-VarDecl {{.*}} <col:10,
> col:18> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       | | | | |   |   |   `-IntegerLiteral {{.*}}
> <col:18> 'int' 0
> +// CHECK-NEXT: |       | | | | |   |   |-<<<NULL>>>
> +// CHECK-NEXT: |       | | | | |   |   |-BinaryOperator {{.*}} <col:21,
> col:25> 'int' '<'
> +// CHECK-NEXT: |       | | | | |   |   | |-ImplicitCastExpr {{.*}}
> <col:21> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | | |   |   | | `-DeclRefExpr {{.*}} <col:21>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | |   |   | `-ImplicitCastExpr {{.*}}
> <col:25> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | | |   |   |   `-DeclRefExpr {{.*}} <col:25>
> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | | | | |   |   |-UnaryOperator {{.*}} <col:28,
> col:29> 'int' postfix '++'
> +// CHECK-NEXT: |       | | | | |   |   | `-DeclRefExpr {{.*}} <col:28>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | |   |   `-NullStmt {{.*}} <line:27:7>
> +// CHECK-NEXT: |       | | | | |   |-ImplicitParamDecl {{.*}} <line:24:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | | | |   |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | | | |   |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit used .previous.lb. 'const unsigned long'
> +// CHECK-NEXT: |       | | | | |   |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit used .previous.ub. 'const unsigned long'
> +// CHECK-NEXT: |       | | | | |   |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:24:9) *const
> restrict'
> +// CHECK-NEXT: |       | | | | |   |-VarDecl {{.*}} <line:25:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | | | |   | `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       | | | | |   `-VarDecl {{.*}} <line:26:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       | | | | |     `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT: |       | | | | |-DeclRefExpr {{.*}} <line:25:3> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | | | `-DeclRefExpr {{.*}} <line:26:5> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | | | |-ImplicitParamDecl {{.*}} <line:24:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:24:9) *const
> restrict'
> +// CHECK-NEXT: |       | | | |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT: |       | | | | |-CapturedRecordAttr {{.*}} <<invalid
> sloc>> Implicit
> +// CHECK-NEXT: |       | | | | |-FieldDecl {{.*}} <line:25:3> col:3
> implicit 'int'
> +// CHECK-NEXT: |       | | | | | `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       | | | | `-FieldDecl {{.*}} <line:26:5> col:5
> implicit 'int'
> +// CHECK-NEXT: |       | | | |   `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       | | | `-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       | | |   |-CapturedStmt {{.*}} <line:25:3,
> line:27:7>
> +// CHECK-NEXT: |       | | |   | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       | | |   | | |-ForStmt {{.*}} <line:25:3, line:27:7>
> +// CHECK-NEXT: |       | | |   | | | |-DeclStmt {{.*}} <line:25:8, col:17>
> +// CHECK-NEXT: |       | | |   | | | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | |   | | | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       | | |   | | | |-<<<NULL>>>
> +// CHECK-NEXT: |       | | |   | | | |-BinaryOperator {{.*}} <col:19,
> col:23> 'int' '<'
> +// CHECK-NEXT: |       | | |   | | | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | |   | | | | | `-DeclRefExpr {{.*}} <col:19>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | |   | | | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | |   | | | |   `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | |   | | | |-UnaryOperator {{.*}} <col:26,
> col:27> 'int' postfix '++'
> +// CHECK-NEXT: |       | | |   | | | | `-DeclRefExpr {{.*}} <col:26>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | |   | | | `-ForStmt {{.*}} <line:26:5,
> line:27:7>
> +// CHECK-NEXT: |       | | |   | | |   |-DeclStmt {{.*}} <line:26:10,
> col:19>
> +// CHECK-NEXT: |       | | |   | | |   | `-VarDecl {{.*}} <col:10,
> col:18> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       | | |   | | |   |   `-IntegerLiteral {{.*}}
> <col:18> 'int' 0
> +// CHECK-NEXT: |       | | |   | | |   |-<<<NULL>>>
> +// CHECK-NEXT: |       | | |   | | |   |-BinaryOperator {{.*}} <col:21,
> col:25> 'int' '<'
> +// CHECK-NEXT: |       | | |   | | |   | |-ImplicitCastExpr {{.*}}
> <col:21> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | |   | | |   | | `-DeclRefExpr {{.*}} <col:21>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | |   | | |   | `-ImplicitCastExpr {{.*}}
> <col:25> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | |   | | |   |   `-DeclRefExpr {{.*}} <col:25>
> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | | |   | | |   |-UnaryOperator {{.*}} <col:28,
> col:29> 'int' postfix '++'
> +// CHECK-NEXT: |       | | |   | | |   | `-DeclRefExpr {{.*}} <col:28>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | |   | | |   `-NullStmt {{.*}} <line:27:7>
> +// CHECK-NEXT: |       | | |   | | |-ImplicitParamDecl {{.*}} <line:24:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | |   | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | |   | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit used .previous.lb. 'const unsigned long'
> +// CHECK-NEXT: |       | | |   | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit used .previous.ub. 'const unsigned long'
> +// CHECK-NEXT: |       | | |   | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:24:9) *const
> restrict'
> +// CHECK-NEXT: |       | | |   | | |-VarDecl {{.*}} <line:25:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | |   | | | `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       | | |   | | `-VarDecl {{.*}} <line:26:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       | | |   | |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT: |       | | |   | |-DeclRefExpr {{.*}} <line:25:3> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | |   | `-DeclRefExpr {{.*}} <line:26:5> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | | |   |-ImplicitParamDecl {{.*}} <line:24:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | |   |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | |   |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:24:9) *const
> restrict'
> +// CHECK-NEXT: |       | | |   |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT: |       | | |   | |-CapturedRecordAttr {{.*}} <<invalid
> sloc>> Implicit
> +// CHECK-NEXT: |       | | |   | |-FieldDecl {{.*}} <line:25:3> col:3
> implicit 'int'
> +// CHECK-NEXT: |       | | |   | | `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       | | |   | `-FieldDecl {{.*}} <line:26:5> col:5
> implicit 'int'
> +// CHECK-NEXT: |       | | |   |   `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       | | |   `-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       | | |     |-ForStmt {{.*}} <line:25:3, line:27:7>
> +// CHECK-NEXT: |       | | |     | |-DeclStmt {{.*}} <line:25:8, col:17>
> +// CHECK-NEXT: |       | | |     | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | |     | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       | | |     | |-<<<NULL>>>
> +// CHECK-NEXT: |       | | |     | |-BinaryOperator {{.*}} <col:19,
> col:23> 'int' '<'
> +// CHECK-NEXT: |       | | |     | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | |     | | | `-DeclRefExpr {{.*}} <col:19>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | |     | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | |     | |   `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | |     | |-UnaryOperator {{.*}} <col:26,
> col:27> 'int' postfix '++'
> +// CHECK-NEXT: |       | | |     | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | |     | `-ForStmt {{.*}} <line:26:5, line:27:7>
> +// CHECK-NEXT: |       | | |     |   |-DeclStmt {{.*}} <line:26:10,
> col:19>
> +// CHECK-NEXT: |       | | |     |   | `-VarDecl {{.*}} <col:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       | | |     |   |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT: |       | | |     |   |-<<<NULL>>>
> +// CHECK-NEXT: |       | | |     |   |-BinaryOperator {{.*}} <col:21,
> col:25> 'int' '<'
> +// CHECK-NEXT: |       | | |     |   | |-ImplicitCastExpr {{.*}} <col:21>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | |     |   | | `-DeclRefExpr {{.*}} <col:21>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | |     |   | `-ImplicitCastExpr {{.*}} <col:25>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | |     |   |   `-DeclRefExpr {{.*}} <col:25>
> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | | |     |   |-UnaryOperator {{.*}} <col:28,
> col:29> 'int' postfix '++'
> +// CHECK-NEXT: |       | | |     |   | `-DeclRefExpr {{.*}} <col:28>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | |     |   `-NullStmt {{.*}} <line:27:7>
> +// CHECK-NEXT: |       | | |     |-ImplicitParamDecl {{.*}} <line:24:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | |     |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | |     |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit used .previous.lb. 'const unsigned long'
> +// CHECK-NEXT: |       | | |     |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit used .previous.ub. 'const unsigned long'
> +// CHECK-NEXT: |       | | |     |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:24:9) *const
> restrict'
> +// CHECK-NEXT: |       | | |     |-VarDecl {{.*}} <line:25:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | |     | `-IntegerLiteral {{.*}} <col:16> 'int'
> 0
> +// CHECK-NEXT: |       | | |     `-VarDecl {{.*}} <line:26:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       | | |       `-IntegerLiteral {{.*}} <col:18> 'int'
> 0
> +// CHECK-NEXT: |       | | |-DeclRefExpr {{.*}} <line:25:3> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | `-DeclRefExpr {{.*}} <line:26:5> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | |-AlwaysInlineAttr {{.*}} <<invalid sloc>>
> Implicit __forceinline
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <line:24:9> col:9
> implicit .global_tid. 'const int'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .part_id. 'const int *const restrict'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .privates. 'void *const restrict'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .task_t. 'void *const'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:24:9) *const
> restrict'
> +// CHECK-NEXT: |       | |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT: |       | | |-CapturedRecordAttr {{.*}} <<invalid sloc>>
> Implicit
> +// CHECK-NEXT: |       | | |-FieldDecl {{.*}} <line:25:3> col:3 implicit
> 'int'
> +// CHECK-NEXT: |       | | | `-OMPCaptureKindAttr {{.*}} <<invalid sloc>>
> Implicit 9
> +// CHECK-NEXT: |       | | `-FieldDecl {{.*}} <line:26:5> col:5 implicit
> 'int'
> +// CHECK-NEXT: |       | |   `-OMPCaptureKindAttr {{.*}} <<invalid sloc>>
> Implicit 9
> +// CHECK-NEXT: |       | `-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc> nothrow
> +// CHECK-NEXT: |       |   |-CapturedStmt {{.*}} <line:25:3, line:27:7>
> +// CHECK-NEXT: |       |   | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       |   | | |-CapturedStmt {{.*}} <line:25:3,
> line:27:7>
> +// CHECK-NEXT: |       |   | | | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       |   | | | | |-ForStmt {{.*}} <line:25:3, line:27:7>
> +// CHECK-NEXT: |       |   | | | | | |-DeclStmt {{.*}} <line:25:8, col:17>
> +// CHECK-NEXT: |       |   | | | | | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       |   | | | | | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       |   | | | | | |-<<<NULL>>>
> +// CHECK-NEXT: |       |   | | | | | |-BinaryOperator {{.*}} <col:19,
> col:23> 'int' '<'
> +// CHECK-NEXT: |       |   | | | | | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |   | | | | | | | `-DeclRefExpr {{.*}} <col:19>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | | | | | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |   | | | | | |   `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       |   | | | | | |-UnaryOperator {{.*}} <col:26,
> col:27> 'int' postfix '++'
> +// CHECK-NEXT: |       |   | | | | | | `-DeclRefExpr {{.*}} <col:26>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | | | | | `-ForStmt {{.*}} <line:26:5,
> line:27:7>
> +// CHECK-NEXT: |       |   | | | | |   |-DeclStmt {{.*}} <line:26:10,
> col:19>
> +// CHECK-NEXT: |       |   | | | | |   | `-VarDecl {{.*}} <col:10,
> col:18> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       |   | | | | |   |   `-IntegerLiteral {{.*}}
> <col:18> 'int' 0
> +// CHECK-NEXT: |       |   | | | | |   |-<<<NULL>>>
> +// CHECK-NEXT: |       |   | | | | |   |-BinaryOperator {{.*}} <col:21,
> col:25> 'int' '<'
> +// CHECK-NEXT: |       |   | | | | |   | |-ImplicitCastExpr {{.*}}
> <col:21> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |   | | | | |   | | `-DeclRefExpr {{.*}} <col:21>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | | | | |   | `-ImplicitCastExpr {{.*}}
> <col:25> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |   | | | | |   |   `-DeclRefExpr {{.*}} <col:25>
> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       |   | | | | |   |-UnaryOperator {{.*}} <col:28,
> col:29> 'int' postfix '++'
> +// CHECK-NEXT: |       |   | | | | |   | `-DeclRefExpr {{.*}} <col:28>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | | | | |   `-NullStmt {{.*}} <line:27:7>
> +// CHECK-NEXT: |       |   | | | | |-ImplicitParamDecl {{.*}} <line:24:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |   | | | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |   | | | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit used .previous.lb. 'const unsigned long'
> +// CHECK-NEXT: |       |   | | | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit used .previous.ub. 'const unsigned long'
> +// CHECK-NEXT: |       |   | | | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:24:9) *const
> restrict'
> +// CHECK-NEXT: |       |   | | | | |-VarDecl {{.*}} <line:25:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       |   | | | | | `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       |   | | | | `-VarDecl {{.*}} <line:26:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       |   | | | |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT: |       |   | | | |-DeclRefExpr {{.*}} <line:25:3> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       |   | | | `-DeclRefExpr {{.*}} <line:26:5> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       |   | | |-ImplicitParamDecl {{.*}} <line:24:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |   | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |   | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:24:9) *const
> restrict'
> +// CHECK-NEXT: |       |   | | |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT: |       |   | | | |-CapturedRecordAttr {{.*}} <<invalid
> sloc>> Implicit
> +// CHECK-NEXT: |       |   | | | |-FieldDecl {{.*}} <line:25:3> col:3
> implicit 'int'
> +// CHECK-NEXT: |       |   | | | | `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       |   | | | `-FieldDecl {{.*}} <line:26:5> col:5
> implicit 'int'
> +// CHECK-NEXT: |       |   | | |   `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       |   | | `-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       |   | |   |-ForStmt {{.*}} <line:25:3, line:27:7>
> +// CHECK-NEXT: |       |   | |   | |-DeclStmt {{.*}} <line:25:8, col:17>
> +// CHECK-NEXT: |       |   | |   | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       |   | |   | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       |   | |   | |-<<<NULL>>>
> +// CHECK-NEXT: |       |   | |   | |-BinaryOperator {{.*}} <col:19,
> col:23> 'int' '<'
> +// CHECK-NEXT: |       |   | |   | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |   | |   | | | `-DeclRefExpr {{.*}} <col:19>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | |   | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |   | |   | |   `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       |   | |   | |-UnaryOperator {{.*}} <col:26,
> col:27> 'int' postfix '++'
> +// CHECK-NEXT: |       |   | |   | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | |   | `-ForStmt {{.*}} <line:26:5, line:27:7>
> +// CHECK-NEXT: |       |   | |   |   |-DeclStmt {{.*}} <line:26:10,
> col:19>
> +// CHECK-NEXT: |       |   | |   |   | `-VarDecl {{.*}} <col:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       |   | |   |   |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT: |       |   | |   |   |-<<<NULL>>>
> +// CHECK-NEXT: |       |   | |   |   |-BinaryOperator {{.*}} <col:21,
> col:25> 'int' '<'
> +// CHECK-NEXT: |       |   | |   |   | |-ImplicitCastExpr {{.*}} <col:21>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |   | |   |   | | `-DeclRefExpr {{.*}} <col:21>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | |   |   | `-ImplicitCastExpr {{.*}} <col:25>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |   | |   |   |   `-DeclRefExpr {{.*}} <col:25>
> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       |   | |   |   |-UnaryOperator {{.*}} <col:28,
> col:29> 'int' postfix '++'
> +// CHECK-NEXT: |       |   | |   |   | `-DeclRefExpr {{.*}} <col:28>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | |   |   `-NullStmt {{.*}} <line:27:7>
> +// CHECK-NEXT: |       |   | |   |-ImplicitParamDecl {{.*}} <line:24:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |   | |   |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |   | |   |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit used .previous.lb. 'const unsigned long'
> +// CHECK-NEXT: |       |   | |   |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit used .previous.ub. 'const unsigned long'
> +// CHECK-NEXT: |       |   | |   |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:24:9) *const
> restrict'
> +// CHECK-NEXT: |       |   | |   |-VarDecl {{.*}} <line:25:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       |   | |   | `-IntegerLiteral {{.*}} <col:16> 'int'
> 0
> +// CHECK-NEXT: |       |   | |   `-VarDecl {{.*}} <line:26:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       |   | |     `-IntegerLiteral {{.*}} <col:18> 'int'
> 0
> +// CHECK-NEXT: |       |   | |-DeclRefExpr {{.*}} <line:25:3> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       |   | `-DeclRefExpr {{.*}} <line:26:5> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       |   |-ImplicitParamDecl {{.*}} <line:24:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:24:9) *const
> restrict'
> +// CHECK-NEXT: |       |   |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT: |       |   | |-CapturedRecordAttr {{.*}} <<invalid sloc>>
> Implicit
> +// CHECK-NEXT: |       |   | |-FieldDecl {{.*}} <line:25:3> col:3
> implicit 'int'
> +// CHECK-NEXT: |       |   | | `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       |   | `-FieldDecl {{.*}} <line:26:5> col:5
> implicit 'int'
> +// CHECK-NEXT: |       |   |   `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       |   `-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       |     |-CapturedStmt {{.*}} <line:25:3, line:27:7>
> +// CHECK-NEXT: |       |     | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       |     | | |-ForStmt {{.*}} <line:25:3, line:27:7>
> +// CHECK-NEXT: |       |     | | | |-DeclStmt {{.*}} <line:25:8, col:17>
> +// CHECK-NEXT: |       |     | | | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       |     | | | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       |     | | | |-<<<NULL>>>
> +// CHECK-NEXT: |       |     | | | |-BinaryOperator {{.*}} <col:19,
> col:23> 'int' '<'
> +// CHECK-NEXT: |       |     | | | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |     | | | | | `-DeclRefExpr {{.*}} <col:19>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |     | | | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |     | | | |   `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       |     | | | |-UnaryOperator {{.*}} <col:26,
> col:27> 'int' postfix '++'
> +// CHECK-NEXT: |       |     | | | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |     | | | `-ForStmt {{.*}} <line:26:5, line:27:7>
> +// CHECK-NEXT: |       |     | | |   |-DeclStmt {{.*}} <line:26:10,
> col:19>
> +// CHECK-NEXT: |       |     | | |   | `-VarDecl {{.*}} <col:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       |     | | |   |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT: |       |     | | |   |-<<<NULL>>>
> +// CHECK-NEXT: |       |     | | |   |-BinaryOperator {{.*}} <col:21,
> col:25> 'int' '<'
> +// CHECK-NEXT: |       |     | | |   | |-ImplicitCastExpr {{.*}} <col:21>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |     | | |   | | `-DeclRefExpr {{.*}} <col:21>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |     | | |   | `-ImplicitCastExpr {{.*}} <col:25>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |     | | |   |   `-DeclRefExpr {{.*}} <col:25>
> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       |     | | |   |-UnaryOperator {{.*}} <col:28,
> col:29> 'int' postfix '++'
> +// CHECK-NEXT: |       |     | | |   | `-DeclRefExpr {{.*}} <col:28>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |     | | |   `-NullStmt {{.*}} <line:27:7>
> +// CHECK-NEXT: |       |     | | |-ImplicitParamDecl {{.*}} <line:24:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |     | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |     | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit used .previous.lb. 'const unsigned long'
> +// CHECK-NEXT: |       |     | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit used .previous.ub. 'const unsigned long'
> +// CHECK-NEXT: |       |     | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:24:9) *const
> restrict'
> +// CHECK-NEXT: |       |     | | |-VarDecl {{.*}} <line:25:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       |     | | | `-IntegerLiteral {{.*}} <col:16> 'int'
> 0
> +// CHECK-NEXT: |       |     | | `-VarDecl {{.*}} <line:26:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       |     | |   `-IntegerLiteral {{.*}} <col:18> 'int'
> 0
> +// CHECK-NEXT: |       |     | |-DeclRefExpr {{.*}} <line:25:3> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       |     | `-DeclRefExpr {{.*}} <line:26:5> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       |     |-ImplicitParamDecl {{.*}} <line:24:9> col:9
> implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |     |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |     |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:24:9) *const
> restrict'
> +// CHECK-NEXT: |       |     |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT: |       |     | |-CapturedRecordAttr {{.*}} <<invalid
> sloc>> Implicit
> +// CHECK-NEXT: |       |     | |-FieldDecl {{.*}} <line:25:3> col:3
> implicit 'int'
> +// CHECK-NEXT: |       |     | | `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       |     | `-FieldDecl {{.*}} <line:26:5> col:5
> implicit 'int'
> +// CHECK-NEXT: |       |     |   `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       |     `-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       |       |-ForStmt {{.*}} <line:25:3, line:27:7>
> +// CHECK-NEXT: |       |       | |-DeclStmt {{.*}} <line:25:8, col:17>
> +// CHECK-NEXT: |       |       | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       |       | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       |       | |-<<<NULL>>>
> +// CHECK-NEXT: |       |       | |-BinaryOperator {{.*}} <col:19, col:23>
> 'int' '<'
> +// CHECK-NEXT: |       |       | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |       | | | `-DeclRefExpr {{.*}} <col:19> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |       | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |       | |   `-DeclRefExpr {{.*}} <col:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       |       | |-UnaryOperator {{.*}} <col:26, col:27>
> 'int' postfix '++'
> +// CHECK-NEXT: |       |       | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |       | `-ForStmt {{.*}} <line:26:5, line:27:7>
> +// CHECK-NEXT: |       |       |   |-DeclStmt {{.*}} <line:26:10, col:19>
> +// CHECK-NEXT: |       |       |   | `-VarDecl {{.*}} <col:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       |       |   |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT: |       |       |   |-<<<NULL>>>
> +// CHECK-NEXT: |       |       |   |-BinaryOperator {{.*}} <col:21,
> col:25> 'int' '<'
> +// CHECK-NEXT: |       |       |   | |-ImplicitCastExpr {{.*}} <col:21>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |       |   | | `-DeclRefExpr {{.*}} <col:21>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |       |   | `-ImplicitCastExpr {{.*}} <col:25>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |       |   |   `-DeclRefExpr {{.*}} <col:25>
> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       |       |   |-UnaryOperator {{.*}} <col:28,
> col:29> 'int' postfix '++'
> +// CHECK-NEXT: |       |       |   | `-DeclRefExpr {{.*}} <col:28> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |       |   `-NullStmt {{.*}} <line:27:7>
> +// CHECK-NEXT: |       |       |-ImplicitParamDecl {{.*}} <line:24:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |       |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |       |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit used .previous.lb. 'const unsigned long'
> +// CHECK-NEXT: |       |       |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit used .previous.ub. 'const unsigned long'
> +// CHECK-NEXT: |       |       |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:24:9) *const
> restrict'
> +// CHECK-NEXT: |       |       |-VarDecl {{.*}} <line:25:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       |       | `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       |       `-VarDecl {{.*}} <line:26:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       |         `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT: |       |-DeclRefExpr {{.*}} <line:25:3> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       `-DeclRefExpr {{.*}} <line:26:5> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: `-FunctionDecl {{.*}} <line:30:1, line:36:1> line:30:6
> test_five 'void (int, int, int)'
> +// CHECK-NEXT:   |-ParmVarDecl {{.*}} <col:16, col:20> col:20 used x 'int'
> +// CHECK-NEXT:   |-ParmVarDecl {{.*}} <col:23, col:27> col:27 used y 'int'
> +// CHECK-NEXT:   |-ParmVarDecl {{.*}} <col:30, col:34> col:34 used z 'int'
> +// CHECK-NEXT:   `-CompoundStmt {{.*}} <col:37, line:36:1>
> +// CHECK-NEXT:     `-OMPTargetTeamsDistributeParallelForDirective {{.*}}
> <line:31:9, col:61>
> +// CHECK-NEXT:       |-OMPCollapseClause {{.*}} <col:50, col:60>
> +// CHECK-NEXT:       | `-ConstantExpr {{.*}} <col:59> 'int'
> +// CHECK-NEXT:       |   `-IntegerLiteral {{.*}} <col:59> 'int' 2
> +// CHECK-NEXT:       |-OMPFirstprivateClause {{.*}} <<invalid sloc>>
> <implicit>
> +// CHECK-NEXT:       | |-DeclRefExpr {{.*}} <line:32:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT:       | |-DeclRefExpr {{.*}} <line:33:25> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT:       | `-DeclRefExpr {{.*}} <line:34:27> 'int' lvalue
> ParmVar {{.*}} 'z' 'int'
> +// CHECK-NEXT:       `-CapturedStmt {{.*}} <line:32:3, line:35:9>
> +// CHECK-NEXT:         |-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc> nothrow
> +// CHECK-NEXT:         | |-CapturedStmt {{.*}} <line:32:3, line:35:9>
> +// CHECK-NEXT:         | | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT:         | | | |-CapturedStmt {{.*}} <line:32:3, line:35:9>
> +// CHECK-NEXT:         | | | | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT:         | | | | | |-CapturedStmt {{.*}} <line:32:3,
> line:35:9>
> +// CHECK-NEXT:         | | | | | | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT:         | | | | | | | |-ForStmt {{.*}} <line:32:3,
> line:35:9>
> +// CHECK-NEXT:         | | | | | | | | |-DeclStmt {{.*}} <line:32:8,
> col:17>
> +// CHECK-NEXT:         | | | | | | | | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT:         | | | | | | | | |   `-IntegerLiteral {{.*}}
> <col:16> 'int' 0
> +// CHECK-NEXT:         | | | | | | | | |-<<<NULL>>>
> +// CHECK-NEXT:         | | | | | | | | |-BinaryOperator {{.*}} <col:19,
> col:23> 'int' '<'
> +// CHECK-NEXT:         | | | | | | | | | |-ImplicitCastExpr {{.*}}
> <col:19> 'int' <LValueToRValue>
> +// CHECK-NEXT:         | | | | | | | | | | `-DeclRefExpr {{.*}} <col:19>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | | | | | | | | `-ImplicitCastExpr {{.*}}
> <col:23> 'int' <LValueToRValue>
> +// CHECK-NEXT:         | | | | | | | | |   `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT:         | | | | | | | | |-UnaryOperator {{.*}} <col:26,
> col:27> 'int' postfix '++'
> +// CHECK-NEXT:         | | | | | | | | | `-DeclRefExpr {{.*}} <col:26>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | | | | | | | `-ForStmt {{.*}} <line:33:5,
> line:35:9>
> +// CHECK-NEXT:         | | | | | | | |   |-DeclStmt {{.*}} <line:33:10,
> col:19>
> +// CHECK-NEXT:         | | | | | | | |   | `-VarDecl {{.*}} <col:10,
> col:18> col:14 used i 'int' cinit
> +// CHECK-NEXT:         | | | | | | | |   |   `-IntegerLiteral {{.*}}
> <col:18> 'int' 0
> +// CHECK-NEXT:         | | | | | | | |   |-<<<NULL>>>
> +// CHECK-NEXT:         | | | | | | | |   |-BinaryOperator {{.*}} <col:21,
> col:25> 'int' '<'
> +// CHECK-NEXT:         | | | | | | | |   | |-ImplicitCastExpr {{.*}}
> <col:21> 'int' <LValueToRValue>
> +// CHECK-NEXT:         | | | | | | | |   | | `-DeclRefExpr {{.*}}
> <col:21> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | | | | | | |   | `-ImplicitCastExpr {{.*}}
> <col:25> 'int' <LValueToRValue>
> +// CHECK-NEXT:         | | | | | | | |   |   `-DeclRefExpr {{.*}}
> <col:25> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT:         | | | | | | | |   |-UnaryOperator {{.*}} <col:28,
> col:29> 'int' postfix '++'
> +// CHECK-NEXT:         | | | | | | | |   | `-DeclRefExpr {{.*}} <col:28>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | | | | | | |   `-ForStmt {{.*}} <line:34:7,
> line:35:9>
> +// CHECK-NEXT:         | | | | | | | |     |-DeclStmt {{.*}} <line:34:12,
> col:21>
> +// CHECK-NEXT:         | | | | | | | |     | `-VarDecl {{.*}} <col:12,
> col:20> col:16 used i 'int' cinit
> +// CHECK-NEXT:         | | | | | | | |     |   `-IntegerLiteral {{.*}}
> <col:20> 'int' 0
> +// CHECK-NEXT:         | | | | | | | |     |-<<<NULL>>>
> +// CHECK-NEXT:         | | | | | | | |     |-BinaryOperator {{.*}}
> <col:23, col:27> 'int' '<'
> +// CHECK-NEXT:         | | | | | | | |     | |-ImplicitCastExpr {{.*}}
> <col:23> 'int' <LValueToRValue>
> +// CHECK-NEXT:         | | | | | | | |     | | `-DeclRefExpr {{.*}}
> <col:23> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | | | | | | |     | `-ImplicitCastExpr {{.*}}
> <col:27> 'int' <LValueToRValue>
> +// CHECK-NEXT:         | | | | | | | |     |   `-DeclRefExpr {{.*}}
> <col:27> 'int' lvalue ParmVar {{.*}} 'z' 'int'
> +// CHECK-NEXT:         | | | | | | | |     |-UnaryOperator {{.*}}
> <col:30, col:31> 'int' postfix '++'
> +// CHECK-NEXT:         | | | | | | | |     | `-DeclRefExpr {{.*}}
> <col:30> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | | | | | | |     `-NullStmt {{.*}} <line:35:9>
> +// CHECK-NEXT:         | | | | | | | |-ImplicitParamDecl {{.*}}
> <line:31:9> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT:         | | | | | | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT:         | | | | | | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit used .previous.lb. 'const unsigned long'
> +// CHECK-NEXT:         | | | | | | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit used .previous.ub. 'const unsigned long'
> +// CHECK-NEXT:         | | | | | | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:31:9) *const
> restrict'
> +// CHECK-NEXT:         | | | | | | | |-VarDecl {{.*}} <line:32:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT:         | | | | | | | | `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT:         | | | | | | | |-VarDecl {{.*}} <line:33:10,
> col:18> col:14 used i 'int' cinit
> +// CHECK-NEXT:         | | | | | | | | `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT:         | | | | | | | `-VarDecl {{.*}} <line:34:12,
> col:20> col:16 used i 'int' cinit
> +// CHECK-NEXT:         | | | | | | |   `-IntegerLiteral {{.*}} <col:20>
> 'int' 0
> +// CHECK-NEXT:         | | | | | | |-DeclRefExpr {{.*}} <line:32:3> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT:         | | | | | | |-DeclRefExpr {{.*}} <line:33:5> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT:         | | | | | | `-DeclRefExpr {{.*}} <line:34:27>
> 'int' lvalue ParmVar {{.*}} 'z' 'int'
> +// CHECK-NEXT:         | | | | | |-ImplicitParamDecl {{.*}} <line:31:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT:         | | | | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT:         | | | | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:31:9) *const
> restrict'
> +// CHECK-NEXT:         | | | | | |-RecordDecl {{.*}} <col:9> col:9
> implicit struct definition
> +// CHECK-NEXT:         | | | | | | |-CapturedRecordAttr {{.*}} <<invalid
> sloc>> Implicit
> +// CHECK-NEXT:         | | | | | | |-FieldDecl {{.*}} <line:32:3> col:3
> implicit 'int'
> +// CHECK-NEXT:         | | | | | | | `-OMPCaptureKindAttr {{.*}}
> <<invalid sloc>> Implicit 9
> +// CHECK-NEXT:         | | | | | | |-FieldDecl {{.*}} <line:33:5> col:5
> implicit 'int'
> +// CHECK-NEXT:         | | | | | | | `-OMPCaptureKindAttr {{.*}}
> <<invalid sloc>> Implicit 9
> +// CHECK-NEXT:         | | | | | | `-FieldDecl {{.*}} <line:34:27> col:27
> implicit 'int'
> +// CHECK-NEXT:         | | | | | |   `-OMPCaptureKindAttr {{.*}}
> <<invalid sloc>> Implicit 9
> +// CHECK-NEXT:         | | | | | `-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT:         | | | | |   |-ForStmt {{.*}} <line:32:3, line:35:9>
> +// CHECK-NEXT:         | | | | |   | |-DeclStmt {{.*}} <line:32:8, col:17>
> +// CHECK-NEXT:         | | | | |   | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT:         | | | | |   | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT:         | | | | |   | |-<<<NULL>>>
> +// CHECK-NEXT:         | | | | |   | |-BinaryOperator {{.*}} <col:19,
> col:23> 'int' '<'
> +// CHECK-NEXT:         | | | | |   | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         | | | | |   | | | `-DeclRefExpr {{.*}} <col:19>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | | | |   | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         | | | | |   | |   `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT:         | | | | |   | |-UnaryOperator {{.*}} <col:26,
> col:27> 'int' postfix '++'
> +// CHECK-NEXT:         | | | | |   | | `-DeclRefExpr {{.*}} <col:26>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | | | |   | `-ForStmt {{.*}} <line:33:5,
> line:35:9>
> +// CHECK-NEXT:         | | | | |   |   |-DeclStmt {{.*}} <line:33:10,
> col:19>
> +// CHECK-NEXT:         | | | | |   |   | `-VarDecl {{.*}} <col:10,
> col:18> col:14 used i 'int' cinit
> +// CHECK-NEXT:         | | | | |   |   |   `-IntegerLiteral {{.*}}
> <col:18> 'int' 0
> +// CHECK-NEXT:         | | | | |   |   |-<<<NULL>>>
> +// CHECK-NEXT:         | | | | |   |   |-BinaryOperator {{.*}} <col:21,
> col:25> 'int' '<'
> +// CHECK-NEXT:         | | | | |   |   | |-ImplicitCastExpr {{.*}}
> <col:21> 'int' <LValueToRValue>
> +// CHECK-NEXT:         | | | | |   |   | | `-DeclRefExpr {{.*}} <col:21>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | | | |   |   | `-ImplicitCastExpr {{.*}}
> <col:25> 'int' <LValueToRValue>
> +// CHECK-NEXT:         | | | | |   |   |   `-DeclRefExpr {{.*}} <col:25>
> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT:         | | | | |   |   |-UnaryOperator {{.*}} <col:28,
> col:29> 'int' postfix '++'
> +// CHECK-NEXT:         | | | | |   |   | `-DeclRefExpr {{.*}} <col:28>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | | | |   |   `-ForStmt {{.*}} <line:34:7,
> line:35:9>
> +// CHECK-NEXT:         | | | | |   |     |-DeclStmt {{.*}} <line:34:12,
> col:21>
> +// CHECK-NEXT:         | | | | |   |     | `-VarDecl {{.*}} <col:12,
> col:20> col:16 used i 'int' cinit
> +// CHECK-NEXT:         | | | | |   |     |   `-IntegerLiteral {{.*}}
> <col:20> 'int' 0
> +// CHECK-NEXT:         | | | | |   |     |-<<<NULL>>>
> +// CHECK-NEXT:         | | | | |   |     |-BinaryOperator {{.*}} <col:23,
> col:27> 'int' '<'
> +// CHECK-NEXT:         | | | | |   |     | |-ImplicitCastExpr {{.*}}
> <col:23> 'int' <LValueToRValue>
> +// CHECK-NEXT:         | | | | |   |     | | `-DeclRefExpr {{.*}}
> <col:23> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | | | |   |     | `-ImplicitCastExpr {{.*}}
> <col:27> 'int' <LValueToRValue>
> +// CHECK-NEXT:         | | | | |   |     |   `-DeclRefExpr {{.*}}
> <col:27> 'int' lvalue ParmVar {{.*}} 'z' 'int'
> +// CHECK-NEXT:         | | | | |   |     |-UnaryOperator {{.*}} <col:30,
> col:31> 'int' postfix '++'
> +// CHECK-NEXT:         | | | | |   |     | `-DeclRefExpr {{.*}} <col:30>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | | | |   |     `-NullStmt {{.*}} <line:35:9>
> +// CHECK-NEXT:         | | | | |   |-ImplicitParamDecl {{.*}} <line:31:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT:         | | | | |   |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT:         | | | | |   |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit used .previous.lb. 'const unsigned long'
> +// CHECK-NEXT:         | | | | |   |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit used .previous.ub. 'const unsigned long'
> +// CHECK-NEXT:         | | | | |   |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:31:9) *const
> restrict'
> +// CHECK-NEXT:         | | | | |   |-VarDecl {{.*}} <line:32:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT:         | | | | |   | `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT:         | | | | |   |-VarDecl {{.*}} <line:33:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT:         | | | | |   | `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT:         | | | | |   `-VarDecl {{.*}} <line:34:12, col:20>
> col:16 used i 'int' cinit
> +// CHECK-NEXT:         | | | | |     `-IntegerLiteral {{.*}} <col:20>
> 'int' 0
> +// CHECK-NEXT:         | | | | |-DeclRefExpr {{.*}} <line:32:3> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT:         | | | | |-DeclRefExpr {{.*}} <line:33:5> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT:         | | | | `-DeclRefExpr {{.*}} <line:34:27> 'int'
> lvalue ParmVar {{.*}} 'z' 'int'
> +// CHECK-NEXT:         | | | |-ImplicitParamDecl {{.*}} <line:31:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:31:9) *const
> restrict'
> +// CHECK-NEXT:         | | | |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT:         | | | | |-CapturedRecordAttr {{.*}} <<invalid
> sloc>> Implicit
> +// CHECK-NEXT:         | | | | |-FieldDecl {{.*}} <line:32:3> col:3
> implicit 'int'
> +// CHECK-NEXT:         | | | | | `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT:         | | | | |-FieldDecl {{.*}} <line:33:5> col:5
> implicit 'int'
> +// CHECK-NEXT:         | | | | | `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT:         | | | | `-FieldDecl {{.*}} <line:34:27> col:27
> implicit 'int'
> +// CHECK-NEXT:         | | | |   `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT:         | | | `-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT:         | | |   |-CapturedStmt {{.*}} <line:32:3,
> line:35:9>
> +// CHECK-NEXT:         | | |   | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT:         | | |   | | |-ForStmt {{.*}} <line:32:3, line:35:9>
> +// CHECK-NEXT:         | | |   | | | |-DeclStmt {{.*}} <line:32:8, col:17>
> +// CHECK-NEXT:         | | |   | | | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT:         | | |   | | | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT:         | | |   | | | |-<<<NULL>>>
> +// CHECK-NEXT:         | | |   | | | |-BinaryOperator {{.*}} <col:19,
> col:23> 'int' '<'
> +// CHECK-NEXT:         | | |   | | | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         | | |   | | | | | `-DeclRefExpr {{.*}} <col:19>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | |   | | | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         | | |   | | | |   `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT:         | | |   | | | |-UnaryOperator {{.*}} <col:26,
> col:27> 'int' postfix '++'
> +// CHECK-NEXT:         | | |   | | | | `-DeclRefExpr {{.*}} <col:26>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | |   | | | `-ForStmt {{.*}} <line:33:5,
> line:35:9>
> +// CHECK-NEXT:         | | |   | | |   |-DeclStmt {{.*}} <line:33:10,
> col:19>
> +// CHECK-NEXT:         | | |   | | |   | `-VarDecl {{.*}} <col:10,
> col:18> col:14 used i 'int' cinit
> +// CHECK-NEXT:         | | |   | | |   |   `-IntegerLiteral {{.*}}
> <col:18> 'int' 0
> +// CHECK-NEXT:         | | |   | | |   |-<<<NULL>>>
> +// CHECK-NEXT:         | | |   | | |   |-BinaryOperator {{.*}} <col:21,
> col:25> 'int' '<'
> +// CHECK-NEXT:         | | |   | | |   | |-ImplicitCastExpr {{.*}}
> <col:21> 'int' <LValueToRValue>
> +// CHECK-NEXT:         | | |   | | |   | | `-DeclRefExpr {{.*}} <col:21>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | |   | | |   | `-ImplicitCastExpr {{.*}}
> <col:25> 'int' <LValueToRValue>
> +// CHECK-NEXT:         | | |   | | |   |   `-DeclRefExpr {{.*}} <col:25>
> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT:         | | |   | | |   |-UnaryOperator {{.*}} <col:28,
> col:29> 'int' postfix '++'
> +// CHECK-NEXT:         | | |   | | |   | `-DeclRefExpr {{.*}} <col:28>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | |   | | |   `-ForStmt {{.*}} <line:34:7,
> line:35:9>
> +// CHECK-NEXT:         | | |   | | |     |-DeclStmt {{.*}} <line:34:12,
> col:21>
> +// CHECK-NEXT:         | | |   | | |     | `-VarDecl {{.*}} <col:12,
> col:20> col:16 used i 'int' cinit
> +// CHECK-NEXT:         | | |   | | |     |   `-IntegerLiteral {{.*}}
> <col:20> 'int' 0
> +// CHECK-NEXT:         | | |   | | |     |-<<<NULL>>>
> +// CHECK-NEXT:         | | |   | | |     |-BinaryOperator {{.*}} <col:23,
> col:27> 'int' '<'
> +// CHECK-NEXT:         | | |   | | |     | |-ImplicitCastExpr {{.*}}
> <col:23> 'int' <LValueToRValue>
> +// CHECK-NEXT:         | | |   | | |     | | `-DeclRefExpr {{.*}}
> <col:23> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | |   | | |     | `-ImplicitCastExpr {{.*}}
> <col:27> 'int' <LValueToRValue>
> +// CHECK-NEXT:         | | |   | | |     |   `-DeclRefExpr {{.*}}
> <col:27> 'int' lvalue ParmVar {{.*}} 'z' 'int'
> +// CHECK-NEXT:         | | |   | | |     |-UnaryOperator {{.*}} <col:30,
> col:31> 'int' postfix '++'
> +// CHECK-NEXT:         | | |   | | |     | `-DeclRefExpr {{.*}} <col:30>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | |   | | |     `-NullStmt {{.*}} <line:35:9>
> +// CHECK-NEXT:         | | |   | | |-ImplicitParamDecl {{.*}} <line:31:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT:         | | |   | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT:         | | |   | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit used .previous.lb. 'const unsigned long'
> +// CHECK-NEXT:         | | |   | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit used .previous.ub. 'const unsigned long'
> +// CHECK-NEXT:         | | |   | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:31:9) *const
> restrict'
> +// CHECK-NEXT:         | | |   | | |-VarDecl {{.*}} <line:32:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT:         | | |   | | | `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT:         | | |   | | |-VarDecl {{.*}} <line:33:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT:         | | |   | | | `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT:         | | |   | | `-VarDecl {{.*}} <line:34:12, col:20>
> col:16 used i 'int' cinit
> +// CHECK-NEXT:         | | |   | |   `-IntegerLiteral {{.*}} <col:20>
> 'int' 0
> +// CHECK-NEXT:         | | |   | |-DeclRefExpr {{.*}} <line:32:3> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT:         | | |   | |-DeclRefExpr {{.*}} <line:33:5> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT:         | | |   | `-DeclRefExpr {{.*}} <line:34:27> 'int'
> lvalue ParmVar {{.*}} 'z' 'int'
> +// CHECK-NEXT:         | | |   |-ImplicitParamDecl {{.*}} <line:31:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT:         | | |   |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT:         | | |   |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:31:9) *const
> restrict'
> +// CHECK-NEXT:         | | |   |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT:         | | |   | |-CapturedRecordAttr {{.*}} <<invalid
> sloc>> Implicit
> +// CHECK-NEXT:         | | |   | |-FieldDecl {{.*}} <line:32:3> col:3
> implicit 'int'
> +// CHECK-NEXT:         | | |   | | `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT:         | | |   | |-FieldDecl {{.*}} <line:33:5> col:5
> implicit 'int'
> +// CHECK-NEXT:         | | |   | | `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT:         | | |   | `-FieldDecl {{.*}} <line:34:27> col:27
> implicit 'int'
> +// CHECK-NEXT:         | | |   |   `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT:         | | |   `-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT:         | | |     |-ForStmt {{.*}} <line:32:3, line:35:9>
> +// CHECK-NEXT:         | | |     | |-DeclStmt {{.*}} <line:32:8, col:17>
> +// CHECK-NEXT:         | | |     | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT:         | | |     | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT:         | | |     | |-<<<NULL>>>
> +// CHECK-NEXT:         | | |     | |-BinaryOperator {{.*}} <col:19,
> col:23> 'int' '<'
> +// CHECK-NEXT:         | | |     | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         | | |     | | | `-DeclRefExpr {{.*}} <col:19>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | |     | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         | | |     | |   `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT:         | | |     | |-UnaryOperator {{.*}} <col:26,
> col:27> 'int' postfix '++'
> +// CHECK-NEXT:         | | |     | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | |     | `-ForStmt {{.*}} <line:33:5, line:35:9>
> +// CHECK-NEXT:         | | |     |   |-DeclStmt {{.*}} <line:33:10,
> col:19>
> +// CHECK-NEXT:         | | |     |   | `-VarDecl {{.*}} <col:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT:         | | |     |   |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT:         | | |     |   |-<<<NULL>>>
> +// CHECK-NEXT:         | | |     |   |-BinaryOperator {{.*}} <col:21,
> col:25> 'int' '<'
> +// CHECK-NEXT:         | | |     |   | |-ImplicitCastExpr {{.*}} <col:21>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         | | |     |   | | `-DeclRefExpr {{.*}} <col:21>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | |     |   | `-ImplicitCastExpr {{.*}} <col:25>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         | | |     |   |   `-DeclRefExpr {{.*}} <col:25>
> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT:         | | |     |   |-UnaryOperator {{.*}} <col:28,
> col:29> 'int' postfix '++'
> +// CHECK-NEXT:         | | |     |   | `-DeclRefExpr {{.*}} <col:28>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | |     |   `-ForStmt {{.*}} <line:34:7,
> line:35:9>
> +// CHECK-NEXT:         | | |     |     |-DeclStmt {{.*}} <line:34:12,
> col:21>
> +// CHECK-NEXT:         | | |     |     | `-VarDecl {{.*}} <col:12,
> col:20> col:16 used i 'int' cinit
> +// CHECK-NEXT:         | | |     |     |   `-IntegerLiteral {{.*}}
> <col:20> 'int' 0
> +// CHECK-NEXT:         | | |     |     |-<<<NULL>>>
> +// CHECK-NEXT:         | | |     |     |-BinaryOperator {{.*}} <col:23,
> col:27> 'int' '<'
> +// CHECK-NEXT:         | | |     |     | |-ImplicitCastExpr {{.*}}
> <col:23> 'int' <LValueToRValue>
> +// CHECK-NEXT:         | | |     |     | | `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | |     |     | `-ImplicitCastExpr {{.*}}
> <col:27> 'int' <LValueToRValue>
> +// CHECK-NEXT:         | | |     |     |   `-DeclRefExpr {{.*}} <col:27>
> 'int' lvalue ParmVar {{.*}} 'z' 'int'
> +// CHECK-NEXT:         | | |     |     |-UnaryOperator {{.*}} <col:30,
> col:31> 'int' postfix '++'
> +// CHECK-NEXT:         | | |     |     | `-DeclRefExpr {{.*}} <col:30>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | |     |     `-NullStmt {{.*}} <line:35:9>
> +// CHECK-NEXT:         | | |     |-ImplicitParamDecl {{.*}} <line:31:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT:         | | |     |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT:         | | |     |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit used .previous.lb. 'const unsigned long'
> +// CHECK-NEXT:         | | |     |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit used .previous.ub. 'const unsigned long'
> +// CHECK-NEXT:         | | |     |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:31:9) *const
> restrict'
> +// CHECK-NEXT:         | | |     |-VarDecl {{.*}} <line:32:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT:         | | |     | `-IntegerLiteral {{.*}} <col:16> 'int'
> 0
> +// CHECK-NEXT:         | | |     |-VarDecl {{.*}} <line:33:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT:         | | |     | `-IntegerLiteral {{.*}} <col:18> 'int'
> 0
> +// CHECK-NEXT:         | | |     `-VarDecl {{.*}} <line:34:12, col:20>
> col:16 used i 'int' cinit
> +// CHECK-NEXT:         | | |       `-IntegerLiteral {{.*}} <col:20> 'int'
> 0
> +// CHECK-NEXT:         | | |-DeclRefExpr {{.*}} <line:32:3> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT:         | | |-DeclRefExpr {{.*}} <line:33:5> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT:         | | `-DeclRefExpr {{.*}} <line:34:27> 'int' lvalue
> ParmVar {{.*}} 'z' 'int'
> +// CHECK-NEXT:         | |-AlwaysInlineAttr {{.*}} <<invalid sloc>>
> Implicit __forceinline
> +// CHECK-NEXT:         | |-ImplicitParamDecl {{.*}} <line:31:9> col:9
> implicit .global_tid. 'const int'
> +// CHECK-NEXT:         | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .part_id. 'const int *const restrict'
> +// CHECK-NEXT:         | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .privates. 'void *const restrict'
> +// CHECK-NEXT:         | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)'
> +// CHECK-NEXT:         | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .task_t. 'void *const'
> +// CHECK-NEXT:         | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:31:9) *const
> restrict'
> +// CHECK-NEXT:         | |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT:         | | |-CapturedRecordAttr {{.*}} <<invalid sloc>>
> Implicit
> +// CHECK-NEXT:         | | |-FieldDecl {{.*}} <line:32:3> col:3 implicit
> 'int'
> +// CHECK-NEXT:         | | | `-OMPCaptureKindAttr {{.*}} <<invalid sloc>>
> Implicit 9
> +// CHECK-NEXT:         | | |-FieldDecl {{.*}} <line:33:5> col:5 implicit
> 'int'
> +// CHECK-NEXT:         | | | `-OMPCaptureKindAttr {{.*}} <<invalid sloc>>
> Implicit 9
> +// CHECK-NEXT:         | | `-FieldDecl {{.*}} <line:34:27> col:27
> implicit 'int'
> +// CHECK-NEXT:         | |   `-OMPCaptureKindAttr {{.*}} <<invalid sloc>>
> Implicit 9
> +// CHECK-NEXT:         | `-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc> nothrow
> +// CHECK-NEXT:         |   |-CapturedStmt {{.*}} <line:32:3, line:35:9>
> +// CHECK-NEXT:         |   | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT:         |   | | |-CapturedStmt {{.*}} <line:32:3,
> line:35:9>
> +// CHECK-NEXT:         |   | | | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT:         |   | | | | |-ForStmt {{.*}} <line:32:3, line:35:9>
> +// CHECK-NEXT:         |   | | | | | |-DeclStmt {{.*}} <line:32:8, col:17>
> +// CHECK-NEXT:         |   | | | | | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT:         |   | | | | | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT:         |   | | | | | |-<<<NULL>>>
> +// CHECK-NEXT:         |   | | | | | |-BinaryOperator {{.*}} <col:19,
> col:23> 'int' '<'
> +// CHECK-NEXT:         |   | | | | | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         |   | | | | | | | `-DeclRefExpr {{.*}} <col:19>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         |   | | | | | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         |   | | | | | |   `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT:         |   | | | | | |-UnaryOperator {{.*}} <col:26,
> col:27> 'int' postfix '++'
> +// CHECK-NEXT:         |   | | | | | | `-DeclRefExpr {{.*}} <col:26>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         |   | | | | | `-ForStmt {{.*}} <line:33:5,
> line:35:9>
> +// CHECK-NEXT:         |   | | | | |   |-DeclStmt {{.*}} <line:33:10,
> col:19>
> +// CHECK-NEXT:         |   | | | | |   | `-VarDecl {{.*}} <col:10,
> col:18> col:14 used i 'int' cinit
> +// CHECK-NEXT:         |   | | | | |   |   `-IntegerLiteral {{.*}}
> <col:18> 'int' 0
> +// CHECK-NEXT:         |   | | | | |   |-<<<NULL>>>
> +// CHECK-NEXT:         |   | | | | |   |-BinaryOperator {{.*}} <col:21,
> col:25> 'int' '<'
> +// CHECK-NEXT:         |   | | | | |   | |-ImplicitCastExpr {{.*}}
> <col:21> 'int' <LValueToRValue>
> +// CHECK-NEXT:         |   | | | | |   | | `-DeclRefExpr {{.*}} <col:21>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         |   | | | | |   | `-ImplicitCastExpr {{.*}}
> <col:25> 'int' <LValueToRValue>
> +// CHECK-NEXT:         |   | | | | |   |   `-DeclRefExpr {{.*}} <col:25>
> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT:         |   | | | | |   |-UnaryOperator {{.*}} <col:28,
> col:29> 'int' postfix '++'
> +// CHECK-NEXT:         |   | | | | |   | `-DeclRefExpr {{.*}} <col:28>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         |   | | | | |   `-ForStmt {{.*}} <line:34:7,
> line:35:9>
> +// CHECK-NEXT:         |   | | | | |     |-DeclStmt {{.*}} <line:34:12,
> col:21>
> +// CHECK-NEXT:         |   | | | | |     | `-VarDecl {{.*}} <col:12,
> col:20> col:16 used i 'int' cinit
> +// CHECK-NEXT:         |   | | | | |     |   `-IntegerLiteral {{.*}}
> <col:20> 'int' 0
> +// CHECK-NEXT:         |   | | | | |     |-<<<NULL>>>
> +// CHECK-NEXT:         |   | | | | |     |-BinaryOperator {{.*}} <col:23,
> col:27> 'int' '<'
> +// CHECK-NEXT:         |   | | | | |     | |-ImplicitCastExpr {{.*}}
> <col:23> 'int' <LValueToRValue>
> +// CHECK-NEXT:         |   | | | | |     | | `-DeclRefExpr {{.*}}
> <col:23> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         |   | | | | |     | `-ImplicitCastExpr {{.*}}
> <col:27> 'int' <LValueToRValue>
> +// CHECK-NEXT:         |   | | | | |     |   `-DeclRefExpr {{.*}}
> <col:27> 'int' lvalue ParmVar {{.*}} 'z' 'int'
> +// CHECK-NEXT:         |   | | | | |     |-UnaryOperator {{.*}} <col:30,
> col:31> 'int' postfix '++'
> +// CHECK-NEXT:         |   | | | | |     | `-DeclRefExpr {{.*}} <col:30>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         |   | | | | |     `-NullStmt {{.*}} <line:35:9>
> +// CHECK-NEXT:         |   | | | | |-ImplicitParamDecl {{.*}} <line:31:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT:         |   | | | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT:         |   | | | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit used .previous.lb. 'const unsigned long'
> +// CHECK-NEXT:         |   | | | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit used .previous.ub. 'const unsigned long'
> +// CHECK-NEXT:         |   | | | | |-ImplicitParamDecl {{.*}} <col:9>
> col:9 implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:31:9) *const
> restrict'
> +// CHECK-NEXT:         |   | | | | |-VarDecl {{.*}} <line:32:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT:         |   | | | | | `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT:         |   | | | | |-VarDecl {{.*}} <line:33:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT:         |   | | | | | `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT:         |   | | | | `-VarDecl {{.*}} <line:34:12, col:20>
> col:16 used i 'int' cinit
> +// CHECK-NEXT:         |   | | | |   `-IntegerLiteral {{.*}} <col:20>
> 'int' 0
> +// CHECK-NEXT:         |   | | | |-DeclRefExpr {{.*}} <line:32:3> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT:         |   | | | |-DeclRefExpr {{.*}} <line:33:5> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT:         |   | | | `-DeclRefExpr {{.*}} <line:34:27> 'int'
> lvalue ParmVar {{.*}} 'z' 'int'
> +// CHECK-NEXT:         |   | | |-ImplicitParamDecl {{.*}} <line:31:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT:         |   | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT:         |   | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:31:9) *const
> restrict'
> +// CHECK-NEXT:         |   | | |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT:         |   | | | |-CapturedRecordAttr {{.*}} <<invalid
> sloc>> Implicit
> +// CHECK-NEXT:         |   | | | |-FieldDecl {{.*}} <line:32:3> col:3
> implicit 'int'
> +// CHECK-NEXT:         |   | | | | `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT:         |   | | | |-FieldDecl {{.*}} <line:33:5> col:5
> implicit 'int'
> +// CHECK-NEXT:         |   | | | | `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT:         |   | | | `-FieldDecl {{.*}} <line:34:27> col:27
> implicit 'int'
> +// CHECK-NEXT:         |   | | |   `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT:         |   | | `-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT:         |   | |   |-ForStmt {{.*}} <line:32:3, line:35:9>
> +// CHECK-NEXT:         |   | |   | |-DeclStmt {{.*}} <line:32:8, col:17>
> +// CHECK-NEXT:         |   | |   | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT:         |   | |   | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT:         |   | |   | |-<<<NULL>>>
> +// CHECK-NEXT:         |   | |   | |-BinaryOperator {{.*}} <col:19,
> col:23> 'int' '<'
> +// CHECK-NEXT:         |   | |   | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         |   | |   | | | `-DeclRefExpr {{.*}} <col:19>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         |   | |   | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         |   | |   | |   `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT:         |   | |   | |-UnaryOperator {{.*}} <col:26,
> col:27> 'int' postfix '++'
> +// CHECK-NEXT:         |   | |   | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         |   | |   | `-ForStmt {{.*}} <line:33:5, line:35:9>
> +// CHECK-NEXT:         |   | |   |   |-DeclStmt {{.*}} <line:33:10,
> col:19>
> +// CHECK-NEXT:         |   | |   |   | `-VarDecl {{.*}} <col:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT:         |   | |   |   |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT:         |   | |   |   |-<<<NULL>>>
> +// CHECK-NEXT:         |   | |   |   |-BinaryOperator {{.*}} <col:21,
> col:25> 'int' '<'
> +// CHECK-NEXT:         |   | |   |   | |-ImplicitCastExpr {{.*}} <col:21>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         |   | |   |   | | `-DeclRefExpr {{.*}} <col:21>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         |   | |   |   | `-ImplicitCastExpr {{.*}} <col:25>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         |   | |   |   |   `-DeclRefExpr {{.*}} <col:25>
> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT:         |   | |   |   |-UnaryOperator {{.*}} <col:28,
> col:29> 'int' postfix '++'
> +// CHECK-NEXT:         |   | |   |   | `-DeclRefExpr {{.*}} <col:28>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         |   | |   |   `-ForStmt {{.*}} <line:34:7,
> line:35:9>
> +// CHECK-NEXT:         |   | |   |     |-DeclStmt {{.*}} <line:34:12,
> col:21>
> +// CHECK-NEXT:         |   | |   |     | `-VarDecl {{.*}} <col:12,
> col:20> col:16 used i 'int' cinit
> +// CHECK-NEXT:         |   | |   |     |   `-IntegerLiteral {{.*}}
> <col:20> 'int' 0
> +// CHECK-NEXT:         |   | |   |     |-<<<NULL>>>
> +// CHECK-NEXT:         |   | |   |     |-BinaryOperator {{.*}} <col:23,
> col:27> 'int' '<'
> +// CHECK-NEXT:         |   | |   |     | |-ImplicitCastExpr {{.*}}
> <col:23> 'int' <LValueToRValue>
> +// CHECK-NEXT:         |   | |   |     | | `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         |   | |   |     | `-ImplicitCastExpr {{.*}}
> <col:27> 'int' <LValueToRValue>
> +// CHECK-NEXT:         |   | |   |     |   `-DeclRefExpr {{.*}} <col:27>
> 'int' lvalue ParmVar {{.*}} 'z' 'int'
> +// CHECK-NEXT:         |   | |   |     |-UnaryOperator {{.*}} <col:30,
> col:31> 'int' postfix '++'
> +// CHECK-NEXT:         |   | |   |     | `-DeclRefExpr {{.*}} <col:30>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         |   | |   |     `-NullStmt {{.*}} <line:35:9>
> +// CHECK-NEXT:         |   | |   |-ImplicitParamDecl {{.*}} <line:31:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT:         |   | |   |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT:         |   | |   |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit used .previous.lb. 'const unsigned long'
> +// CHECK-NEXT:         |   | |   |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit used .previous.ub. 'const unsigned long'
> +// CHECK-NEXT:         |   | |   |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:31:9) *const
> restrict'
> +// CHECK-NEXT:         |   | |   |-VarDecl {{.*}} <line:32:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT:         |   | |   | `-IntegerLiteral {{.*}} <col:16> 'int'
> 0
> +// CHECK-NEXT:         |   | |   |-VarDecl {{.*}} <line:33:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT:         |   | |   | `-IntegerLiteral {{.*}} <col:18> 'int'
> 0
> +// CHECK-NEXT:         |   | |   `-VarDecl {{.*}} <line:34:12, col:20>
> col:16 used i 'int' cinit
> +// CHECK-NEXT:         |   | |     `-IntegerLiteral {{.*}} <col:20> 'int'
> 0
> +// CHECK-NEXT:         |   | |-DeclRefExpr {{.*}} <line:32:3> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT:         |   | |-DeclRefExpr {{.*}} <line:33:5> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT:         |   | `-DeclRefExpr {{.*}} <line:34:27> 'int'
> lvalue ParmVar {{.*}} 'z' 'int'
> +// CHECK-NEXT:         |   |-ImplicitParamDecl {{.*}} <line:31:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:31:9) *const
> restrict'
> +// CHECK-NEXT:         |   |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT:         |   | |-CapturedRecordAttr {{.*}} <<invalid sloc>>
> Implicit
> +// CHECK-NEXT:         |   | |-FieldDecl {{.*}} <line:32:3> col:3
> implicit 'int'
> +// CHECK-NEXT:         |   | | `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT:         |   | |-FieldDecl {{.*}} <line:33:5> col:5
> implicit 'int'
> +// CHECK-NEXT:         |   | | `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT:         |   | `-FieldDecl {{.*}} <line:34:27> col:27
> implicit 'int'
> +// CHECK-NEXT:         |   |   `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT:         |   `-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT:         |     |-CapturedStmt {{.*}} <line:32:3, line:35:9>
> +// CHECK-NEXT:         |     | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT:         |     | | |-ForStmt {{.*}} <line:32:3, line:35:9>
> +// CHECK-NEXT:         |     | | | |-DeclStmt {{.*}} <line:32:8, col:17>
> +// CHECK-NEXT:         |     | | | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT:         |     | | | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT:         |     | | | |-<<<NULL>>>
> +// CHECK-NEXT:         |     | | | |-BinaryOperator {{.*}} <col:19,
> col:23> 'int' '<'
> +// CHECK-NEXT:         |     | | | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         |     | | | | | `-DeclRefExpr {{.*}} <col:19>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         |     | | | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         |     | | | |   `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT:         |     | | | |-UnaryOperator {{.*}} <col:26,
> col:27> 'int' postfix '++'
> +// CHECK-NEXT:         |     | | | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         |     | | | `-ForStmt {{.*}} <line:33:5, line:35:9>
> +// CHECK-NEXT:         |     | | |   |-DeclStmt {{.*}} <line:33:10,
> col:19>
> +// CHECK-NEXT:         |     | | |   | `-VarDecl {{.*}} <col:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT:         |     | | |   |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT:         |     | | |   |-<<<NULL>>>
> +// CHECK-NEXT:         |     | | |   |-BinaryOperator {{.*}} <col:21,
> col:25> 'int' '<'
> +// CHECK-NEXT:         |     | | |   | |-ImplicitCastExpr {{.*}} <col:21>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         |     | | |   | | `-DeclRefExpr {{.*}} <col:21>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         |     | | |   | `-ImplicitCastExpr {{.*}} <col:25>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         |     | | |   |   `-DeclRefExpr {{.*}} <col:25>
> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT:         |     | | |   |-UnaryOperator {{.*}} <col:28,
> col:29> 'int' postfix '++'
> +// CHECK-NEXT:         |     | | |   | `-DeclRefExpr {{.*}} <col:28>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         |     | | |   `-ForStmt {{.*}} <line:34:7,
> line:35:9>
> +// CHECK-NEXT:         |     | | |     |-DeclStmt {{.*}} <line:34:12,
> col:21>
> +// CHECK-NEXT:         |     | | |     | `-VarDecl {{.*}} <col:12,
> col:20> col:16 used i 'int' cinit
> +// CHECK-NEXT:         |     | | |     |   `-IntegerLiteral {{.*}}
> <col:20> 'int' 0
> +// CHECK-NEXT:         |     | | |     |-<<<NULL>>>
> +// CHECK-NEXT:         |     | | |     |-BinaryOperator {{.*}} <col:23,
> col:27> 'int' '<'
> +// CHECK-NEXT:         |     | | |     | |-ImplicitCastExpr {{.*}}
> <col:23> 'int' <LValueToRValue>
> +// CHECK-NEXT:         |     | | |     | | `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         |     | | |     | `-ImplicitCastExpr {{.*}}
> <col:27> 'int' <LValueToRValue>
> +// CHECK-NEXT:         |     | | |     |   `-DeclRefExpr {{.*}} <col:27>
> 'int' lvalue ParmVar {{.*}} 'z' 'int'
> +// CHECK-NEXT:         |     | | |     |-UnaryOperator {{.*}} <col:30,
> col:31> 'int' postfix '++'
> +// CHECK-NEXT:         |     | | |     | `-DeclRefExpr {{.*}} <col:30>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         |     | | |     `-NullStmt {{.*}} <line:35:9>
> +// CHECK-NEXT:         |     | | |-ImplicitParamDecl {{.*}} <line:31:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT:         |     | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT:         |     | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit used .previous.lb. 'const unsigned long'
> +// CHECK-NEXT:         |     | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit used .previous.ub. 'const unsigned long'
> +// CHECK-NEXT:         |     | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:31:9) *const
> restrict'
> +// CHECK-NEXT:         |     | | |-VarDecl {{.*}} <line:32:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT:         |     | | | `-IntegerLiteral {{.*}} <col:16> 'int'
> 0
> +// CHECK-NEXT:         |     | | |-VarDecl {{.*}} <line:33:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT:         |     | | | `-IntegerLiteral {{.*}} <col:18> 'int'
> 0
> +// CHECK-NEXT:         |     | | `-VarDecl {{.*}} <line:34:12, col:20>
> col:16 used i 'int' cinit
> +// CHECK-NEXT:         |     | |   `-IntegerLiteral {{.*}} <col:20> 'int'
> 0
> +// CHECK-NEXT:         |     | |-DeclRefExpr {{.*}} <line:32:3> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT:         |     | |-DeclRefExpr {{.*}} <line:33:5> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT:         |     | `-DeclRefExpr {{.*}} <line:34:27> 'int'
> lvalue ParmVar {{.*}} 'z' 'int'
> +// CHECK-NEXT:         |     |-ImplicitParamDecl {{.*}} <line:31:9> col:9
> implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT:         |     |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT:         |     |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:31:9) *const
> restrict'
> +// CHECK-NEXT:         |     |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT:         |     | |-CapturedRecordAttr {{.*}} <<invalid
> sloc>> Implicit
> +// CHECK-NEXT:         |     | |-FieldDecl {{.*}} <line:32:3> col:3
> implicit 'int'
> +// CHECK-NEXT:         |     | | `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT:         |     | |-FieldDecl {{.*}} <line:33:5> col:5
> implicit 'int'
> +// CHECK-NEXT:         |     | | `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT:         |     | `-FieldDecl {{.*}} <line:34:27> col:27
> implicit 'int'
> +// CHECK-NEXT:         |     |   `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT:         |     `-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT:         |       |-ForStmt {{.*}} <line:32:3, line:35:9>
> +// CHECK-NEXT:         |       | |-DeclStmt {{.*}} <line:32:8, col:17>
> +// CHECK-NEXT:         |       | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT:         |       | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT:         |       | |-<<<NULL>>>
> +// CHECK-NEXT:         |       | |-BinaryOperator {{.*}} <col:19, col:23>
> 'int' '<'
> +// CHECK-NEXT:         |       | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         |       | | | `-DeclRefExpr {{.*}} <col:19> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         |       | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         |       | |   `-DeclRefExpr {{.*}} <col:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT:         |       | |-UnaryOperator {{.*}} <col:26, col:27>
> 'int' postfix '++'
> +// CHECK-NEXT:         |       | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         |       | `-ForStmt {{.*}} <line:33:5, line:35:9>
> +// CHECK-NEXT:         |       |   |-DeclStmt {{.*}} <line:33:10, col:19>
> +// CHECK-NEXT:         |       |   | `-VarDecl {{.*}} <col:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT:         |       |   |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT:         |       |   |-<<<NULL>>>
> +// CHECK-NEXT:         |       |   |-BinaryOperator {{.*}} <col:21,
> col:25> 'int' '<'
> +// CHECK-NEXT:         |       |   | |-ImplicitCastExpr {{.*}} <col:21>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         |       |   | | `-DeclRefExpr {{.*}} <col:21>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         |       |   | `-ImplicitCastExpr {{.*}} <col:25>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         |       |   |   `-DeclRefExpr {{.*}} <col:25>
> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT:         |       |   |-UnaryOperator {{.*}} <col:28,
> col:29> 'int' postfix '++'
> +// CHECK-NEXT:         |       |   | `-DeclRefExpr {{.*}} <col:28> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         |       |   `-ForStmt {{.*}} <line:34:7, line:35:9>
> +// CHECK-NEXT:         |       |     |-DeclStmt {{.*}} <line:34:12,
> col:21>
> +// CHECK-NEXT:         |       |     | `-VarDecl {{.*}} <col:12, col:20>
> col:16 used i 'int' cinit
> +// CHECK-NEXT:         |       |     |   `-IntegerLiteral {{.*}} <col:20>
> 'int' 0
> +// CHECK-NEXT:         |       |     |-<<<NULL>>>
> +// CHECK-NEXT:         |       |     |-BinaryOperator {{.*}} <col:23,
> col:27> 'int' '<'
> +// CHECK-NEXT:         |       |     | |-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         |       |     | | `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         |       |     | `-ImplicitCastExpr {{.*}} <col:27>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         |       |     |   `-DeclRefExpr {{.*}} <col:27>
> 'int' lvalue ParmVar {{.*}} 'z' 'int'
> +// CHECK-NEXT:         |       |     |-UnaryOperator {{.*}} <col:30,
> col:31> 'int' postfix '++'
> +// CHECK-NEXT:         |       |     | `-DeclRefExpr {{.*}} <col:30>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         |       |     `-NullStmt {{.*}} <line:35:9>
> +// CHECK-NEXT:         |       |-ImplicitParamDecl {{.*}} <line:31:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT:         |       |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT:         |       |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit used .previous.lb. 'const unsigned long'
> +// CHECK-NEXT:         |       |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit used .previous.ub. 'const unsigned long'
> +// CHECK-NEXT:         |       |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:31:9) *const
> restrict'
> +// CHECK-NEXT:         |       |-VarDecl {{.*}} <line:32:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT:         |       | `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT:         |       |-VarDecl {{.*}} <line:33:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT:         |       | `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT:         |       `-VarDecl {{.*}} <line:34:12, col:20>
> col:16 used i 'int' cinit
> +// CHECK-NEXT:         |         `-IntegerLiteral {{.*}} <col:20> 'int' 0
> +// CHECK-NEXT:         |-DeclRefExpr {{.*}} <line:32:3> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT:         |-DeclRefExpr {{.*}} <line:33:5> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT:         `-DeclRefExpr {{.*}} <line:34:27> 'int' lvalue
> ParmVar {{.*}} 'z' 'int'
>
> Added: cfe/trunk/test/AST/ast-dump-openmp-target-teams-distribute-simd.c
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/test/AST/ast-dump-openmp-target-teams-distribute-simd.c?rev=356569&view=auto
>
> ==============================================================================
> --- cfe/trunk/test/AST/ast-dump-openmp-target-teams-distribute-simd.c
> (added)
> +++ cfe/trunk/test/AST/ast-dump-openmp-target-teams-distribute-simd.c Wed
> Mar 20 09:31:47 2019
> @@ -0,0 +1,957 @@
> +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s |
> FileCheck --match-full-lines -implicit-check-not=openmp_structured_block %s
> +
> +void test_one(int x) {
> +#pragma omp target teams distribute simd
> +  for (int i = 0; i < x; i++)
> +    ;
> +}
> +
> +void test_two(int x, int y) {
> +#pragma omp target teams distribute simd
> +  for (int i = 0; i < x; i++)
> +    for (int i = 0; i < y; i++)
> +      ;
> +}
> +
> +void test_three(int x, int y) {
> +#pragma omp target teams distribute simd collapse(1)
> +  for (int i = 0; i < x; i++)
> +    for (int i = 0; i < y; i++)
> +      ;
> +}
> +
> +void test_four(int x, int y) {
> +#pragma omp target teams distribute simd collapse(2)
> +  for (int i = 0; i < x; i++)
> +    for (int i = 0; i < y; i++)
> +      ;
> +}
> +
> +void test_five(int x, int y, int z) {
> +#pragma omp target teams distribute simd collapse(2)
> +  for (int i = 0; i < x; i++)
> +    for (int i = 0; i < y; i++)
> +      for (int i = 0; i < z; i++)
> +        ;
> +}
> +
> +// CHECK: TranslationUnitDecl {{.*}} <<invalid sloc>> <invalid sloc>
> +// CHECK: |-FunctionDecl {{.*}}
> <{{.*}}ast-dump-openmp-target-teams-distribute-simd.c:3:1, line:7:1>
> line:3:6 test_one 'void (int)'
> +// CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:15, col:19> col:19 used x 'int'
> +// CHECK-NEXT: | `-CompoundStmt {{.*}} <col:22, line:7:1>
> +// CHECK-NEXT: |   `-OMPTargetTeamsDistributeSimdDirective {{.*}}
> <line:4:9, col:41>
> +// CHECK-NEXT: |     |-OMPFirstprivateClause {{.*}} <<invalid sloc>>
> <implicit>
> +// CHECK-NEXT: |     | `-DeclRefExpr {{.*}} <line:5:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |     `-CapturedStmt {{.*}} <col:3, line:6:5>
> +// CHECK-NEXT: |       |-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc> nothrow
> +// CHECK-NEXT: |       | |-CapturedStmt {{.*}} <line:5:3, line:6:5>
> +// CHECK-NEXT: |       | | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       | | | |-CapturedStmt {{.*}} <line:5:3, line:6:5>
> +// CHECK-NEXT: |       | | | | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       | | | | | |-ForStmt {{.*}} <line:5:3, line:6:5>
> +// CHECK-NEXT: |       | | | | | | |-DeclStmt {{.*}} <line:5:8, col:17>
> +// CHECK-NEXT: |       | | | | | | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | | | | | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       | | | | | | |-<<<NULL>>>
> +// CHECK-NEXT: |       | | | | | | |-BinaryOperator {{.*}} <col:19,
> col:23> 'int' '<'
> +// CHECK-NEXT: |       | | | | | | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | | | | | | `-DeclRefExpr {{.*}} <col:19>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | | | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | | | | |   `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | | | | | |-UnaryOperator {{.*}} <col:26,
> col:27> 'int' postfix '++'
> +// CHECK-NEXT: |       | | | | | | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | | | `-NullStmt {{.*}} <line:6:5>
> +// CHECK-NEXT: |       | | | | | |-ImplicitParamDecl {{.*}} <line:4:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | | | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | | | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:4:9) *const restrict'
> +// CHECK-NEXT: |       | | | | | `-VarDecl {{.*}} <line:5:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | | | |   `-IntegerLiteral {{.*}} <col:16> 'int'
> 0
> +// CHECK-NEXT: |       | | | | `-DeclRefExpr {{.*}} <col:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | | |-ImplicitParamDecl {{.*}} <line:4:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:4:9) *const restrict'
> +// CHECK-NEXT: |       | | | |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT: |       | | | | |-CapturedRecordAttr {{.*}} <<invalid
> sloc>> Implicit
> +// CHECK-NEXT: |       | | | | `-FieldDecl {{.*}} <line:5:23> col:23
> implicit 'int'
> +// CHECK-NEXT: |       | | | |   `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       | | | `-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       | | |   |-ForStmt {{.*}} <col:3, line:6:5>
> +// CHECK-NEXT: |       | | |   | |-DeclStmt {{.*}} <line:5:8, col:17>
> +// CHECK-NEXT: |       | | |   | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | |   | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       | | |   | |-<<<NULL>>>
> +// CHECK-NEXT: |       | | |   | |-BinaryOperator {{.*}} <col:19, col:23>
> 'int' '<'
> +// CHECK-NEXT: |       | | |   | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | |   | | | `-DeclRefExpr {{.*}} <col:19> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | |   | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | |   | |   `-DeclRefExpr {{.*}} <col:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | |   | |-UnaryOperator {{.*}} <col:26, col:27>
> 'int' postfix '++'
> +// CHECK-NEXT: |       | | |   | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | |   | `-NullStmt {{.*}} <line:6:5>
> +// CHECK-NEXT: |       | | |   |-ImplicitParamDecl {{.*}} <line:4:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | |   |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | |   |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:4:9) *const restrict'
> +// CHECK-NEXT: |       | | |   `-VarDecl {{.*}} <line:5:8, col:16> col:12
> used i 'int' cinit
> +// CHECK-NEXT: |       | | |     `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       | | `-DeclRefExpr {{.*}} <col:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | |-AlwaysInlineAttr {{.*}} <<invalid sloc>>
> Implicit __forceinline
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <line:4:9> col:9
> implicit .global_tid. 'const int'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .part_id. 'const int *const restrict'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .privates. 'void *const restrict'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .task_t. 'void *const'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:4:9) *const restrict'
> +// CHECK-NEXT: |       | |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT: |       | | |-CapturedRecordAttr {{.*}} <<invalid sloc>>
> Implicit
> +// CHECK-NEXT: |       | | `-FieldDecl {{.*}} <line:5:23> col:23 implicit
> 'int'
> +// CHECK-NEXT: |       | |   `-OMPCaptureKindAttr {{.*}} <<invalid sloc>>
> Implicit 9
> +// CHECK-NEXT: |       | `-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc> nothrow
> +// CHECK-NEXT: |       |   |-CapturedStmt {{.*}} <col:3, line:6:5>
> +// CHECK-NEXT: |       |   | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       |   | | |-ForStmt {{.*}} <line:5:3, line:6:5>
> +// CHECK-NEXT: |       |   | | | |-DeclStmt {{.*}} <line:5:8, col:17>
> +// CHECK-NEXT: |       |   | | | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       |   | | | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       |   | | | |-<<<NULL>>>
> +// CHECK-NEXT: |       |   | | | |-BinaryOperator {{.*}} <col:19, col:23>
> 'int' '<'
> +// CHECK-NEXT: |       |   | | | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |   | | | | | `-DeclRefExpr {{.*}} <col:19> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | | | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |   | | | |   `-DeclRefExpr {{.*}} <col:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       |   | | | |-UnaryOperator {{.*}} <col:26, col:27>
> 'int' postfix '++'
> +// CHECK-NEXT: |       |   | | | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | | | `-NullStmt {{.*}} <line:6:5>
> +// CHECK-NEXT: |       |   | | |-ImplicitParamDecl {{.*}} <line:4:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |   | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |   | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:4:9) *const restrict'
> +// CHECK-NEXT: |       |   | | `-VarDecl {{.*}} <line:5:8, col:16> col:12
> used i 'int' cinit
> +// CHECK-NEXT: |       |   | |   `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       |   | `-DeclRefExpr {{.*}} <col:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       |   |-ImplicitParamDecl {{.*}} <line:4:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:4:9) *const restrict'
> +// CHECK-NEXT: |       |   |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT: |       |   | |-CapturedRecordAttr {{.*}} <<invalid sloc>>
> Implicit
> +// CHECK-NEXT: |       |   | `-FieldDecl {{.*}} <line:5:23> col:23
> implicit 'int'
> +// CHECK-NEXT: |       |   |   `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       |   `-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       |     |-ForStmt {{.*}} <col:3, line:6:5>
> +// CHECK-NEXT: |       |     | |-DeclStmt {{.*}} <line:5:8, col:17>
> +// CHECK-NEXT: |       |     | | `-VarDecl {{.*}} <col:8, col:16> col:12
> used i 'int' cinit
> +// CHECK-NEXT: |       |     | |   `-IntegerLiteral {{.*}} <col:16> 'int'
> 0
> +// CHECK-NEXT: |       |     | |-<<<NULL>>>
> +// CHECK-NEXT: |       |     | |-BinaryOperator {{.*}} <col:19, col:23>
> 'int' '<'
> +// CHECK-NEXT: |       |     | | |-ImplicitCastExpr {{.*}} <col:19> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       |     | | | `-DeclRefExpr {{.*}} <col:19> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |     | | `-ImplicitCastExpr {{.*}} <col:23> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       |     | |   `-DeclRefExpr {{.*}} <col:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       |     | |-UnaryOperator {{.*}} <col:26, col:27>
> 'int' postfix '++'
> +// CHECK-NEXT: |       |     | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |     | `-NullStmt {{.*}} <line:6:5>
> +// CHECK-NEXT: |       |     |-ImplicitParamDecl {{.*}} <line:4:9> col:9
> implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |     |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |     |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:4:9) *const restrict'
> +// CHECK-NEXT: |       |     `-VarDecl {{.*}} <line:5:8, col:16> col:12
> used i 'int' cinit
> +// CHECK-NEXT: |       |       `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       `-DeclRefExpr {{.*}} <col:23> 'int' lvalue ParmVar
> {{.*}} 'x' 'int'
> +// CHECK-NEXT: |-FunctionDecl {{.*}} <line:9:1, line:14:1> line:9:6
> test_two 'void (int, int)'
> +// CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:15, col:19> col:19 used x 'int'
> +// CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:22, col:26> col:26 used y 'int'
> +// CHECK-NEXT: | `-CompoundStmt {{.*}} <col:29, line:14:1>
> +// CHECK-NEXT: |   `-OMPTargetTeamsDistributeSimdDirective {{.*}}
> <line:10:9, col:41>
> +// CHECK-NEXT: |     |-OMPFirstprivateClause {{.*}} <<invalid sloc>>
> <implicit>
> +// CHECK-NEXT: |     | |-DeclRefExpr {{.*}} <line:11:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |     | `-DeclRefExpr {{.*}} <line:12:25> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |     `-CapturedStmt {{.*}} <line:11:3, line:13:7>
> +// CHECK-NEXT: |       |-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc> nothrow
> +// CHECK-NEXT: |       | |-CapturedStmt {{.*}} <line:11:3, line:13:7>
> +// CHECK-NEXT: |       | | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       | | | |-CapturedStmt {{.*}} <line:11:3, line:13:7>
> +// CHECK-NEXT: |       | | | | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       | | | | | |-ForStmt {{.*}} <line:11:3, line:13:7>
> +// CHECK-NEXT: |       | | | | | | |-DeclStmt {{.*}} <line:11:8, col:17>
> +// CHECK-NEXT: |       | | | | | | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | | | | | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       | | | | | | |-<<<NULL>>>
> +// CHECK-NEXT: |       | | | | | | |-BinaryOperator {{.*}} <col:19,
> col:23> 'int' '<'
> +// CHECK-NEXT: |       | | | | | | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | | | | | | `-DeclRefExpr {{.*}} <col:19>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | | | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | | | | |   `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | | | | | |-UnaryOperator {{.*}} <col:26,
> col:27> 'int' postfix '++'
> +// CHECK-NEXT: |       | | | | | | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | | | `-ForStmt {{.*}} <line:12:5, line:13:7>
> +// CHECK-NEXT: |       | | | | | |   |-DeclStmt {{.*}} <line:12:10,
> col:19>
> +// CHECK-NEXT: |       | | | | | |   | `-VarDecl {{.*}} <col:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       | | | | | |   |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT: |       | | | | | |   |-<<<NULL>>>
> +// CHECK-NEXT: |       | | | | | |   |-BinaryOperator {{.*}} <col:21,
> col:25> 'int' '<'
> +// CHECK-NEXT: |       | | | | | |   | |-ImplicitCastExpr {{.*}} <col:21>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | | | |   | | `-DeclRefExpr {{.*}} <col:21>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | | |   | `-ImplicitCastExpr {{.*}} <col:25>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | | | |   |   `-DeclRefExpr {{.*}} <col:25>
> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | | | | | |   |-UnaryOperator {{.*}} <col:28,
> col:29> 'int' postfix '++'
> +// CHECK-NEXT: |       | | | | | |   | `-DeclRefExpr {{.*}} <col:28>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | | |   `-NullStmt {{.*}} <line:13:7>
> +// CHECK-NEXT: |       | | | | | |-ImplicitParamDecl {{.*}} <line:10:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | | | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | | | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:10:9) *const restrict'
> +// CHECK-NEXT: |       | | | | | |-VarDecl {{.*}} <line:11:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | | | | | `-IntegerLiteral {{.*}} <col:16> 'int'
> 0
> +// CHECK-NEXT: |       | | | | | `-VarDecl {{.*}} <line:12:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       | | | | |   `-IntegerLiteral {{.*}} <col:18> 'int'
> 0
> +// CHECK-NEXT: |       | | | | |-DeclRefExpr {{.*}} <line:11:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | | | `-DeclRefExpr {{.*}} <line:12:25> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | | | |-ImplicitParamDecl {{.*}} <line:10:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:10:9) *const restrict'
> +// CHECK-NEXT: |       | | | |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT: |       | | | | |-CapturedRecordAttr {{.*}} <<invalid
> sloc>> Implicit
> +// CHECK-NEXT: |       | | | | |-FieldDecl {{.*}} <line:11:23> col:23
> implicit 'int'
> +// CHECK-NEXT: |       | | | | | `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       | | | | `-FieldDecl {{.*}} <line:12:25> col:25
> implicit 'int'
> +// CHECK-NEXT: |       | | | |   `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       | | | `-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       | | |   |-ForStmt {{.*}} <line:11:3, line:13:7>
> +// CHECK-NEXT: |       | | |   | |-DeclStmt {{.*}} <line:11:8, col:17>
> +// CHECK-NEXT: |       | | |   | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | |   | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       | | |   | |-<<<NULL>>>
> +// CHECK-NEXT: |       | | |   | |-BinaryOperator {{.*}} <col:19, col:23>
> 'int' '<'
> +// CHECK-NEXT: |       | | |   | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | |   | | | `-DeclRefExpr {{.*}} <col:19> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | |   | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | |   | |   `-DeclRefExpr {{.*}} <col:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | |   | |-UnaryOperator {{.*}} <col:26, col:27>
> 'int' postfix '++'
> +// CHECK-NEXT: |       | | |   | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | |   | `-ForStmt {{.*}} <line:12:5, line:13:7>
> +// CHECK-NEXT: |       | | |   |   |-DeclStmt {{.*}} <line:12:10, col:19>
> +// CHECK-NEXT: |       | | |   |   | `-VarDecl {{.*}} <col:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       | | |   |   |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT: |       | | |   |   |-<<<NULL>>>
> +// CHECK-NEXT: |       | | |   |   |-BinaryOperator {{.*}} <col:21,
> col:25> 'int' '<'
> +// CHECK-NEXT: |       | | |   |   | |-ImplicitCastExpr {{.*}} <col:21>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | |   |   | | `-DeclRefExpr {{.*}} <col:21>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | |   |   | `-ImplicitCastExpr {{.*}} <col:25>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | |   |   |   `-DeclRefExpr {{.*}} <col:25>
> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | | |   |   |-UnaryOperator {{.*}} <col:28,
> col:29> 'int' postfix '++'
> +// CHECK-NEXT: |       | | |   |   | `-DeclRefExpr {{.*}} <col:28> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | |   |   `-NullStmt {{.*}} <line:13:7>
> +// CHECK-NEXT: |       | | |   |-ImplicitParamDecl {{.*}} <line:10:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | |   |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | |   |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:10:9) *const restrict'
> +// CHECK-NEXT: |       | | |   |-VarDecl {{.*}} <line:11:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | |   | `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       | | |   `-VarDecl {{.*}} <line:12:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       | | |     `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT: |       | | |-DeclRefExpr {{.*}} <line:11:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | `-DeclRefExpr {{.*}} <line:12:25> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | |-AlwaysInlineAttr {{.*}} <<invalid sloc>>
> Implicit __forceinline
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <line:10:9> col:9
> implicit .global_tid. 'const int'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .part_id. 'const int *const restrict'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .privates. 'void *const restrict'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .task_t. 'void *const'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:10:9) *const restrict'
> +// CHECK-NEXT: |       | |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT: |       | | |-CapturedRecordAttr {{.*}} <<invalid sloc>>
> Implicit
> +// CHECK-NEXT: |       | | |-FieldDecl {{.*}} <line:11:23> col:23
> implicit 'int'
> +// CHECK-NEXT: |       | | | `-OMPCaptureKindAttr {{.*}} <<invalid sloc>>
> Implicit 9
> +// CHECK-NEXT: |       | | `-FieldDecl {{.*}} <line:12:25> col:25
> implicit 'int'
> +// CHECK-NEXT: |       | |   `-OMPCaptureKindAttr {{.*}} <<invalid sloc>>
> Implicit 9
> +// CHECK-NEXT: |       | `-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc> nothrow
> +// CHECK-NEXT: |       |   |-CapturedStmt {{.*}} <line:11:3, line:13:7>
> +// CHECK-NEXT: |       |   | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       |   | | |-ForStmt {{.*}} <line:11:3, line:13:7>
> +// CHECK-NEXT: |       |   | | | |-DeclStmt {{.*}} <line:11:8, col:17>
> +// CHECK-NEXT: |       |   | | | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       |   | | | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       |   | | | |-<<<NULL>>>
> +// CHECK-NEXT: |       |   | | | |-BinaryOperator {{.*}} <col:19, col:23>
> 'int' '<'
> +// CHECK-NEXT: |       |   | | | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |   | | | | | `-DeclRefExpr {{.*}} <col:19> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | | | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |   | | | |   `-DeclRefExpr {{.*}} <col:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       |   | | | |-UnaryOperator {{.*}} <col:26, col:27>
> 'int' postfix '++'
> +// CHECK-NEXT: |       |   | | | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | | | `-ForStmt {{.*}} <line:12:5, line:13:7>
> +// CHECK-NEXT: |       |   | | |   |-DeclStmt {{.*}} <line:12:10, col:19>
> +// CHECK-NEXT: |       |   | | |   | `-VarDecl {{.*}} <col:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       |   | | |   |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT: |       |   | | |   |-<<<NULL>>>
> +// CHECK-NEXT: |       |   | | |   |-BinaryOperator {{.*}} <col:21,
> col:25> 'int' '<'
> +// CHECK-NEXT: |       |   | | |   | |-ImplicitCastExpr {{.*}} <col:21>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |   | | |   | | `-DeclRefExpr {{.*}} <col:21>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | | |   | `-ImplicitCastExpr {{.*}} <col:25>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |   | | |   |   `-DeclRefExpr {{.*}} <col:25>
> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       |   | | |   |-UnaryOperator {{.*}} <col:28,
> col:29> 'int' postfix '++'
> +// CHECK-NEXT: |       |   | | |   | `-DeclRefExpr {{.*}} <col:28> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | | |   `-NullStmt {{.*}} <line:13:7>
> +// CHECK-NEXT: |       |   | | |-ImplicitParamDecl {{.*}} <line:10:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |   | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |   | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:10:9) *const restrict'
> +// CHECK-NEXT: |       |   | | |-VarDecl {{.*}} <line:11:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       |   | | | `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       |   | | `-VarDecl {{.*}} <line:12:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       |   | |   `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT: |       |   | |-DeclRefExpr {{.*}} <line:11:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       |   | `-DeclRefExpr {{.*}} <line:12:25> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       |   |-ImplicitParamDecl {{.*}} <line:10:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:10:9) *const restrict'
> +// CHECK-NEXT: |       |   |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT: |       |   | |-CapturedRecordAttr {{.*}} <<invalid sloc>>
> Implicit
> +// CHECK-NEXT: |       |   | |-FieldDecl {{.*}} <line:11:23> col:23
> implicit 'int'
> +// CHECK-NEXT: |       |   | | `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       |   | `-FieldDecl {{.*}} <line:12:25> col:25
> implicit 'int'
> +// CHECK-NEXT: |       |   |   `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       |   `-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       |     |-ForStmt {{.*}} <line:11:3, line:13:7>
> +// CHECK-NEXT: |       |     | |-DeclStmt {{.*}} <line:11:8, col:17>
> +// CHECK-NEXT: |       |     | | `-VarDecl {{.*}} <col:8, col:16> col:12
> used i 'int' cinit
> +// CHECK-NEXT: |       |     | |   `-IntegerLiteral {{.*}} <col:16> 'int'
> 0
> +// CHECK-NEXT: |       |     | |-<<<NULL>>>
> +// CHECK-NEXT: |       |     | |-BinaryOperator {{.*}} <col:19, col:23>
> 'int' '<'
> +// CHECK-NEXT: |       |     | | |-ImplicitCastExpr {{.*}} <col:19> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       |     | | | `-DeclRefExpr {{.*}} <col:19> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |     | | `-ImplicitCastExpr {{.*}} <col:23> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       |     | |   `-DeclRefExpr {{.*}} <col:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       |     | |-UnaryOperator {{.*}} <col:26, col:27>
> 'int' postfix '++'
> +// CHECK-NEXT: |       |     | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |     | `-ForStmt {{.*}} <line:12:5, line:13:7>
> +// CHECK-NEXT: |       |     |   |-DeclStmt {{.*}} <line:12:10, col:19>
> +// CHECK-NEXT: |       |     |   | `-VarDecl {{.*}} <col:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       |     |   |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT: |       |     |   |-<<<NULL>>>
> +// CHECK-NEXT: |       |     |   |-BinaryOperator {{.*}} <col:21, col:25>
> 'int' '<'
> +// CHECK-NEXT: |       |     |   | |-ImplicitCastExpr {{.*}} <col:21>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |     |   | | `-DeclRefExpr {{.*}} <col:21> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |     |   | `-ImplicitCastExpr {{.*}} <col:25>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |     |   |   `-DeclRefExpr {{.*}} <col:25> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       |     |   |-UnaryOperator {{.*}} <col:28, col:29>
> 'int' postfix '++'
> +// CHECK-NEXT: |       |     |   | `-DeclRefExpr {{.*}} <col:28> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |     |   `-NullStmt {{.*}} <line:13:7>
> +// CHECK-NEXT: |       |     |-ImplicitParamDecl {{.*}} <line:10:9> col:9
> implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |     |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |     |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:10:9) *const restrict'
> +// CHECK-NEXT: |       |     |-VarDecl {{.*}} <line:11:8, col:16> col:12
> used i 'int' cinit
> +// CHECK-NEXT: |       |     | `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       |     `-VarDecl {{.*}} <line:12:10, col:18> col:14
> used i 'int' cinit
> +// CHECK-NEXT: |       |       `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT: |       |-DeclRefExpr {{.*}} <line:11:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       `-DeclRefExpr {{.*}} <line:12:25> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |-FunctionDecl {{.*}} <line:16:1, line:21:1> line:16:6
> test_three 'void (int, int)'
> +// CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:17, col:21> col:21 used x 'int'
> +// CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:24, col:28> col:28 used y 'int'
> +// CHECK-NEXT: | `-CompoundStmt {{.*}} <col:31, line:21:1>
> +// CHECK-NEXT: |   `-OMPTargetTeamsDistributeSimdDirective {{.*}}
> <line:17:9, col:53>
> +// CHECK-NEXT: |     |-OMPCollapseClause {{.*}} <col:42, col:52>
> +// CHECK-NEXT: |     | `-ConstantExpr {{.*}} <col:51> 'int'
> +// CHECK-NEXT: |     |   `-IntegerLiteral {{.*}} <col:51> 'int' 1
> +// CHECK-NEXT: |     |-OMPFirstprivateClause {{.*}} <<invalid sloc>>
> <implicit>
> +// CHECK-NEXT: |     | |-DeclRefExpr {{.*}} <line:18:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |     | `-DeclRefExpr {{.*}} <line:19:25> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |     `-CapturedStmt {{.*}} <line:18:3, line:20:7>
> +// CHECK-NEXT: |       |-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc> nothrow
> +// CHECK-NEXT: |       | |-CapturedStmt {{.*}} <line:18:3, line:20:7>
> +// CHECK-NEXT: |       | | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       | | | |-CapturedStmt {{.*}} <line:18:3, line:20:7>
> +// CHECK-NEXT: |       | | | | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       | | | | | |-ForStmt {{.*}} <line:18:3, line:20:7>
> +// CHECK-NEXT: |       | | | | | | |-DeclStmt {{.*}} <line:18:8, col:17>
> +// CHECK-NEXT: |       | | | | | | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | | | | | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       | | | | | | |-<<<NULL>>>
> +// CHECK-NEXT: |       | | | | | | |-BinaryOperator {{.*}} <col:19,
> col:23> 'int' '<'
> +// CHECK-NEXT: |       | | | | | | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | | | | | | `-DeclRefExpr {{.*}} <col:19>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | | | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | | | | |   `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | | | | | |-UnaryOperator {{.*}} <col:26,
> col:27> 'int' postfix '++'
> +// CHECK-NEXT: |       | | | | | | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | | | `-ForStmt {{.*}} <line:19:5, line:20:7>
> +// CHECK-NEXT: |       | | | | | |   |-DeclStmt {{.*}} <line:19:10,
> col:19>
> +// CHECK-NEXT: |       | | | | | |   | `-VarDecl {{.*}} <col:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       | | | | | |   |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT: |       | | | | | |   |-<<<NULL>>>
> +// CHECK-NEXT: |       | | | | | |   |-BinaryOperator {{.*}} <col:21,
> col:25> 'int' '<'
> +// CHECK-NEXT: |       | | | | | |   | |-ImplicitCastExpr {{.*}} <col:21>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | | | |   | | `-DeclRefExpr {{.*}} <col:21>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | | |   | `-ImplicitCastExpr {{.*}} <col:25>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | | | |   |   `-DeclRefExpr {{.*}} <col:25>
> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | | | | | |   |-UnaryOperator {{.*}} <col:28,
> col:29> 'int' postfix '++'
> +// CHECK-NEXT: |       | | | | | |   | `-DeclRefExpr {{.*}} <col:28>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | | |   `-NullStmt {{.*}} <line:20:7>
> +// CHECK-NEXT: |       | | | | | |-ImplicitParamDecl {{.*}} <line:17:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | | | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | | | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:17:9) *const restrict'
> +// CHECK-NEXT: |       | | | | | |-VarDecl {{.*}} <line:18:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | | | | | `-IntegerLiteral {{.*}} <col:16> 'int'
> 0
> +// CHECK-NEXT: |       | | | | | `-VarDecl {{.*}} <line:19:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       | | | | |   `-IntegerLiteral {{.*}} <col:18> 'int'
> 0
> +// CHECK-NEXT: |       | | | | |-DeclRefExpr {{.*}} <line:18:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | | | `-DeclRefExpr {{.*}} <line:19:25> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | | | |-ImplicitParamDecl {{.*}} <line:17:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:17:9) *const restrict'
> +// CHECK-NEXT: |       | | | |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT: |       | | | | |-CapturedRecordAttr {{.*}} <<invalid
> sloc>> Implicit
> +// CHECK-NEXT: |       | | | | |-FieldDecl {{.*}} <line:18:23> col:23
> implicit 'int'
> +// CHECK-NEXT: |       | | | | | `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       | | | | `-FieldDecl {{.*}} <line:19:25> col:25
> implicit 'int'
> +// CHECK-NEXT: |       | | | |   `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       | | | `-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       | | |   |-ForStmt {{.*}} <line:18:3, line:20:7>
> +// CHECK-NEXT: |       | | |   | |-DeclStmt {{.*}} <line:18:8, col:17>
> +// CHECK-NEXT: |       | | |   | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | |   | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       | | |   | |-<<<NULL>>>
> +// CHECK-NEXT: |       | | |   | |-BinaryOperator {{.*}} <col:19, col:23>
> 'int' '<'
> +// CHECK-NEXT: |       | | |   | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | |   | | | `-DeclRefExpr {{.*}} <col:19> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | |   | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | |   | |   `-DeclRefExpr {{.*}} <col:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | |   | |-UnaryOperator {{.*}} <col:26, col:27>
> 'int' postfix '++'
> +// CHECK-NEXT: |       | | |   | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | |   | `-ForStmt {{.*}} <line:19:5, line:20:7>
> +// CHECK-NEXT: |       | | |   |   |-DeclStmt {{.*}} <line:19:10, col:19>
> +// CHECK-NEXT: |       | | |   |   | `-VarDecl {{.*}} <col:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       | | |   |   |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT: |       | | |   |   |-<<<NULL>>>
> +// CHECK-NEXT: |       | | |   |   |-BinaryOperator {{.*}} <col:21,
> col:25> 'int' '<'
> +// CHECK-NEXT: |       | | |   |   | |-ImplicitCastExpr {{.*}} <col:21>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | |   |   | | `-DeclRefExpr {{.*}} <col:21>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | |   |   | `-ImplicitCastExpr {{.*}} <col:25>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | |   |   |   `-DeclRefExpr {{.*}} <col:25>
> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | | |   |   |-UnaryOperator {{.*}} <col:28,
> col:29> 'int' postfix '++'
> +// CHECK-NEXT: |       | | |   |   | `-DeclRefExpr {{.*}} <col:28> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | |   |   `-NullStmt {{.*}} <line:20:7>
> +// CHECK-NEXT: |       | | |   |-ImplicitParamDecl {{.*}} <line:17:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | |   |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | |   |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:17:9) *const restrict'
> +// CHECK-NEXT: |       | | |   |-VarDecl {{.*}} <line:18:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | |   | `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       | | |   `-VarDecl {{.*}} <line:19:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       | | |     `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT: |       | | |-DeclRefExpr {{.*}} <line:18:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | `-DeclRefExpr {{.*}} <line:19:25> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | |-AlwaysInlineAttr {{.*}} <<invalid sloc>>
> Implicit __forceinline
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <line:17:9> col:9
> implicit .global_tid. 'const int'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .part_id. 'const int *const restrict'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .privates. 'void *const restrict'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .task_t. 'void *const'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:17:9) *const restrict'
> +// CHECK-NEXT: |       | |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT: |       | | |-CapturedRecordAttr {{.*}} <<invalid sloc>>
> Implicit
> +// CHECK-NEXT: |       | | |-FieldDecl {{.*}} <line:18:23> col:23
> implicit 'int'
> +// CHECK-NEXT: |       | | | `-OMPCaptureKindAttr {{.*}} <<invalid sloc>>
> Implicit 9
> +// CHECK-NEXT: |       | | `-FieldDecl {{.*}} <line:19:25> col:25
> implicit 'int'
> +// CHECK-NEXT: |       | |   `-OMPCaptureKindAttr {{.*}} <<invalid sloc>>
> Implicit 9
> +// CHECK-NEXT: |       | `-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc> nothrow
> +// CHECK-NEXT: |       |   |-CapturedStmt {{.*}} <line:18:3, line:20:7>
> +// CHECK-NEXT: |       |   | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       |   | | |-ForStmt {{.*}} <line:18:3, line:20:7>
> +// CHECK-NEXT: |       |   | | | |-DeclStmt {{.*}} <line:18:8, col:17>
> +// CHECK-NEXT: |       |   | | | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       |   | | | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       |   | | | |-<<<NULL>>>
> +// CHECK-NEXT: |       |   | | | |-BinaryOperator {{.*}} <col:19, col:23>
> 'int' '<'
> +// CHECK-NEXT: |       |   | | | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |   | | | | | `-DeclRefExpr {{.*}} <col:19> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | | | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |   | | | |   `-DeclRefExpr {{.*}} <col:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       |   | | | |-UnaryOperator {{.*}} <col:26, col:27>
> 'int' postfix '++'
> +// CHECK-NEXT: |       |   | | | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | | | `-ForStmt {{.*}} <line:19:5, line:20:7>
> +// CHECK-NEXT: |       |   | | |   |-DeclStmt {{.*}} <line:19:10, col:19>
> +// CHECK-NEXT: |       |   | | |   | `-VarDecl {{.*}} <col:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       |   | | |   |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT: |       |   | | |   |-<<<NULL>>>
> +// CHECK-NEXT: |       |   | | |   |-BinaryOperator {{.*}} <col:21,
> col:25> 'int' '<'
> +// CHECK-NEXT: |       |   | | |   | |-ImplicitCastExpr {{.*}} <col:21>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |   | | |   | | `-DeclRefExpr {{.*}} <col:21>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | | |   | `-ImplicitCastExpr {{.*}} <col:25>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |   | | |   |   `-DeclRefExpr {{.*}} <col:25>
> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       |   | | |   |-UnaryOperator {{.*}} <col:28,
> col:29> 'int' postfix '++'
> +// CHECK-NEXT: |       |   | | |   | `-DeclRefExpr {{.*}} <col:28> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | | |   `-NullStmt {{.*}} <line:20:7>
> +// CHECK-NEXT: |       |   | | |-ImplicitParamDecl {{.*}} <line:17:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |   | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |   | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:17:9) *const restrict'
> +// CHECK-NEXT: |       |   | | |-VarDecl {{.*}} <line:18:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       |   | | | `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       |   | | `-VarDecl {{.*}} <line:19:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       |   | |   `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT: |       |   | |-DeclRefExpr {{.*}} <line:18:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       |   | `-DeclRefExpr {{.*}} <line:19:25> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       |   |-ImplicitParamDecl {{.*}} <line:17:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:17:9) *const restrict'
> +// CHECK-NEXT: |       |   |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT: |       |   | |-CapturedRecordAttr {{.*}} <<invalid sloc>>
> Implicit
> +// CHECK-NEXT: |       |   | |-FieldDecl {{.*}} <line:18:23> col:23
> implicit 'int'
> +// CHECK-NEXT: |       |   | | `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       |   | `-FieldDecl {{.*}} <line:19:25> col:25
> implicit 'int'
> +// CHECK-NEXT: |       |   |   `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       |   `-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       |     |-ForStmt {{.*}} <line:18:3, line:20:7>
> +// CHECK-NEXT: |       |     | |-DeclStmt {{.*}} <line:18:8, col:17>
> +// CHECK-NEXT: |       |     | | `-VarDecl {{.*}} <col:8, col:16> col:12
> used i 'int' cinit
> +// CHECK-NEXT: |       |     | |   `-IntegerLiteral {{.*}} <col:16> 'int'
> 0
> +// CHECK-NEXT: |       |     | |-<<<NULL>>>
> +// CHECK-NEXT: |       |     | |-BinaryOperator {{.*}} <col:19, col:23>
> 'int' '<'
> +// CHECK-NEXT: |       |     | | |-ImplicitCastExpr {{.*}} <col:19> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       |     | | | `-DeclRefExpr {{.*}} <col:19> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |     | | `-ImplicitCastExpr {{.*}} <col:23> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       |     | |   `-DeclRefExpr {{.*}} <col:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       |     | |-UnaryOperator {{.*}} <col:26, col:27>
> 'int' postfix '++'
> +// CHECK-NEXT: |       |     | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |     | `-ForStmt {{.*}} <line:19:5, line:20:7>
> +// CHECK-NEXT: |       |     |   |-DeclStmt {{.*}} <line:19:10, col:19>
> +// CHECK-NEXT: |       |     |   | `-VarDecl {{.*}} <col:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       |     |   |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT: |       |     |   |-<<<NULL>>>
> +// CHECK-NEXT: |       |     |   |-BinaryOperator {{.*}} <col:21, col:25>
> 'int' '<'
> +// CHECK-NEXT: |       |     |   | |-ImplicitCastExpr {{.*}} <col:21>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |     |   | | `-DeclRefExpr {{.*}} <col:21> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |     |   | `-ImplicitCastExpr {{.*}} <col:25>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |     |   |   `-DeclRefExpr {{.*}} <col:25> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       |     |   |-UnaryOperator {{.*}} <col:28, col:29>
> 'int' postfix '++'
> +// CHECK-NEXT: |       |     |   | `-DeclRefExpr {{.*}} <col:28> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |     |   `-NullStmt {{.*}} <line:20:7>
> +// CHECK-NEXT: |       |     |-ImplicitParamDecl {{.*}} <line:17:9> col:9
> implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |     |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |     |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:17:9) *const restrict'
> +// CHECK-NEXT: |       |     |-VarDecl {{.*}} <line:18:8, col:16> col:12
> used i 'int' cinit
> +// CHECK-NEXT: |       |     | `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       |     `-VarDecl {{.*}} <line:19:10, col:18> col:14
> used i 'int' cinit
> +// CHECK-NEXT: |       |       `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT: |       |-DeclRefExpr {{.*}} <line:18:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       `-DeclRefExpr {{.*}} <line:19:25> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |-FunctionDecl {{.*}} <line:23:1, line:28:1> line:23:6
> test_four 'void (int, int)'
> +// CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:16, col:20> col:20 used x 'int'
> +// CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:23, col:27> col:27 used y 'int'
> +// CHECK-NEXT: | `-CompoundStmt {{.*}} <col:30, line:28:1>
> +// CHECK-NEXT: |   `-OMPTargetTeamsDistributeSimdDirective {{.*}}
> <line:24:9, col:53>
> +// CHECK-NEXT: |     |-OMPCollapseClause {{.*}} <col:42, col:52>
> +// CHECK-NEXT: |     | `-ConstantExpr {{.*}} <col:51> 'int'
> +// CHECK-NEXT: |     |   `-IntegerLiteral {{.*}} <col:51> 'int' 2
> +// CHECK-NEXT: |     |-OMPFirstprivateClause {{.*}} <<invalid sloc>>
> <implicit>
> +// CHECK-NEXT: |     | |-DeclRefExpr {{.*}} <line:25:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |     | `-DeclRefExpr {{.*}} <line:26:25> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |     `-CapturedStmt {{.*}} <line:25:3, line:27:7>
> +// CHECK-NEXT: |       |-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc> nothrow
> +// CHECK-NEXT: |       | |-CapturedStmt {{.*}} <line:25:3, line:27:7>
> +// CHECK-NEXT: |       | | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       | | | |-CapturedStmt {{.*}} <line:25:3, line:27:7>
> +// CHECK-NEXT: |       | | | | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       | | | | | |-ForStmt {{.*}} <line:25:3, line:27:7>
> +// CHECK-NEXT: |       | | | | | | |-DeclStmt {{.*}} <line:25:8, col:17>
> +// CHECK-NEXT: |       | | | | | | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | | | | | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       | | | | | | |-<<<NULL>>>
> +// CHECK-NEXT: |       | | | | | | |-BinaryOperator {{.*}} <col:19,
> col:23> 'int' '<'
> +// CHECK-NEXT: |       | | | | | | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | | | | | | `-DeclRefExpr {{.*}} <col:19>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | | | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | | | | |   `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | | | | | |-UnaryOperator {{.*}} <col:26,
> col:27> 'int' postfix '++'
> +// CHECK-NEXT: |       | | | | | | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | | | `-ForStmt {{.*}} <line:26:5, line:27:7>
> +// CHECK-NEXT: |       | | | | | |   |-DeclStmt {{.*}} <line:26:10,
> col:19>
> +// CHECK-NEXT: |       | | | | | |   | `-VarDecl {{.*}} <col:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       | | | | | |   |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT: |       | | | | | |   |-<<<NULL>>>
> +// CHECK-NEXT: |       | | | | | |   |-BinaryOperator {{.*}} <col:21,
> col:25> 'int' '<'
> +// CHECK-NEXT: |       | | | | | |   | |-ImplicitCastExpr {{.*}} <col:21>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | | | |   | | `-DeclRefExpr {{.*}} <col:21>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | | |   | `-ImplicitCastExpr {{.*}} <col:25>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | | | |   |   `-DeclRefExpr {{.*}} <col:25>
> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | | | | | |   |-UnaryOperator {{.*}} <col:28,
> col:29> 'int' postfix '++'
> +// CHECK-NEXT: |       | | | | | |   | `-DeclRefExpr {{.*}} <col:28>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | | |   `-NullStmt {{.*}} <line:27:7>
> +// CHECK-NEXT: |       | | | | | |-ImplicitParamDecl {{.*}} <line:24:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | | | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | | | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:24:9) *const restrict'
> +// CHECK-NEXT: |       | | | | | |-VarDecl {{.*}} <line:25:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | | | | | `-IntegerLiteral {{.*}} <col:16> 'int'
> 0
> +// CHECK-NEXT: |       | | | | | `-VarDecl {{.*}} <line:26:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       | | | | |   `-IntegerLiteral {{.*}} <col:18> 'int'
> 0
> +// CHECK-NEXT: |       | | | | |-DeclRefExpr {{.*}} <line:25:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | | | `-DeclRefExpr {{.*}} <line:26:25> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | | | |-ImplicitParamDecl {{.*}} <line:24:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:24:9) *const restrict'
> +// CHECK-NEXT: |       | | | |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT: |       | | | | |-CapturedRecordAttr {{.*}} <<invalid
> sloc>> Implicit
> +// CHECK-NEXT: |       | | | | |-FieldDecl {{.*}} <line:25:23> col:23
> implicit 'int'
> +// CHECK-NEXT: |       | | | | | `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       | | | | `-FieldDecl {{.*}} <line:26:25> col:25
> implicit 'int'
> +// CHECK-NEXT: |       | | | |   `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       | | | `-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       | | |   |-ForStmt {{.*}} <line:25:3, line:27:7>
> +// CHECK-NEXT: |       | | |   | |-DeclStmt {{.*}} <line:25:8, col:17>
> +// CHECK-NEXT: |       | | |   | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | |   | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       | | |   | |-<<<NULL>>>
> +// CHECK-NEXT: |       | | |   | |-BinaryOperator {{.*}} <col:19, col:23>
> 'int' '<'
> +// CHECK-NEXT: |       | | |   | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | |   | | | `-DeclRefExpr {{.*}} <col:19> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | |   | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | |   | |   `-DeclRefExpr {{.*}} <col:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | |   | |-UnaryOperator {{.*}} <col:26, col:27>
> 'int' postfix '++'
> +// CHECK-NEXT: |       | | |   | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | |   | `-ForStmt {{.*}} <line:26:5, line:27:7>
> +// CHECK-NEXT: |       | | |   |   |-DeclStmt {{.*}} <line:26:10, col:19>
> +// CHECK-NEXT: |       | | |   |   | `-VarDecl {{.*}} <col:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       | | |   |   |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT: |       | | |   |   |-<<<NULL>>>
> +// CHECK-NEXT: |       | | |   |   |-BinaryOperator {{.*}} <col:21,
> col:25> 'int' '<'
> +// CHECK-NEXT: |       | | |   |   | |-ImplicitCastExpr {{.*}} <col:21>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | |   |   | | `-DeclRefExpr {{.*}} <col:21>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | |   |   | `-ImplicitCastExpr {{.*}} <col:25>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | |   |   |   `-DeclRefExpr {{.*}} <col:25>
> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | | |   |   |-UnaryOperator {{.*}} <col:28,
> col:29> 'int' postfix '++'
> +// CHECK-NEXT: |       | | |   |   | `-DeclRefExpr {{.*}} <col:28> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | |   |   `-NullStmt {{.*}} <line:27:7>
> +// CHECK-NEXT: |       | | |   |-ImplicitParamDecl {{.*}} <line:24:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | |   |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | |   |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:24:9) *const restrict'
> +// CHECK-NEXT: |       | | |   |-VarDecl {{.*}} <line:25:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | |   | `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       | | |   `-VarDecl {{.*}} <line:26:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       | | |     `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT: |       | | |-DeclRefExpr {{.*}} <line:25:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | `-DeclRefExpr {{.*}} <line:26:25> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | |-AlwaysInlineAttr {{.*}} <<invalid sloc>>
> Implicit __forceinline
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <line:24:9> col:9
> implicit .global_tid. 'const int'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .part_id. 'const int *const restrict'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .privates. 'void *const restrict'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .task_t. 'void *const'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:24:9) *const restrict'
> +// CHECK-NEXT: |       | |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT: |       | | |-CapturedRecordAttr {{.*}} <<invalid sloc>>
> Implicit
> +// CHECK-NEXT: |       | | |-FieldDecl {{.*}} <line:25:23> col:23
> implicit 'int'
> +// CHECK-NEXT: |       | | | `-OMPCaptureKindAttr {{.*}} <<invalid sloc>>
> Implicit 9
> +// CHECK-NEXT: |       | | `-FieldDecl {{.*}} <line:26:25> col:25
> implicit 'int'
> +// CHECK-NEXT: |       | |   `-OMPCaptureKindAttr {{.*}} <<invalid sloc>>
> Implicit 9
> +// CHECK-NEXT: |       | `-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc> nothrow
> +// CHECK-NEXT: |       |   |-CapturedStmt {{.*}} <line:25:3, line:27:7>
> +// CHECK-NEXT: |       |   | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       |   | | |-ForStmt {{.*}} <line:25:3, line:27:7>
> +// CHECK-NEXT: |       |   | | | |-DeclStmt {{.*}} <line:25:8, col:17>
> +// CHECK-NEXT: |       |   | | | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       |   | | | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       |   | | | |-<<<NULL>>>
> +// CHECK-NEXT: |       |   | | | |-BinaryOperator {{.*}} <col:19, col:23>
> 'int' '<'
> +// CHECK-NEXT: |       |   | | | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |   | | | | | `-DeclRefExpr {{.*}} <col:19> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | | | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |   | | | |   `-DeclRefExpr {{.*}} <col:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       |   | | | |-UnaryOperator {{.*}} <col:26, col:27>
> 'int' postfix '++'
> +// CHECK-NEXT: |       |   | | | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | | | `-ForStmt {{.*}} <line:26:5, line:27:7>
> +// CHECK-NEXT: |       |   | | |   |-DeclStmt {{.*}} <line:26:10, col:19>
> +// CHECK-NEXT: |       |   | | |   | `-VarDecl {{.*}} <col:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       |   | | |   |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT: |       |   | | |   |-<<<NULL>>>
> +// CHECK-NEXT: |       |   | | |   |-BinaryOperator {{.*}} <col:21,
> col:25> 'int' '<'
> +// CHECK-NEXT: |       |   | | |   | |-ImplicitCastExpr {{.*}} <col:21>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |   | | |   | | `-DeclRefExpr {{.*}} <col:21>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | | |   | `-ImplicitCastExpr {{.*}} <col:25>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |   | | |   |   `-DeclRefExpr {{.*}} <col:25>
> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       |   | | |   |-UnaryOperator {{.*}} <col:28,
> col:29> 'int' postfix '++'
> +// CHECK-NEXT: |       |   | | |   | `-DeclRefExpr {{.*}} <col:28> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | | |   `-NullStmt {{.*}} <line:27:7>
> +// CHECK-NEXT: |       |   | | |-ImplicitParamDecl {{.*}} <line:24:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |   | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |   | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:24:9) *const restrict'
> +// CHECK-NEXT: |       |   | | |-VarDecl {{.*}} <line:25:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       |   | | | `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       |   | | `-VarDecl {{.*}} <line:26:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       |   | |   `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT: |       |   | |-DeclRefExpr {{.*}} <line:25:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       |   | `-DeclRefExpr {{.*}} <line:26:25> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       |   |-ImplicitParamDecl {{.*}} <line:24:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:24:9) *const restrict'
> +// CHECK-NEXT: |       |   |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT: |       |   | |-CapturedRecordAttr {{.*}} <<invalid sloc>>
> Implicit
> +// CHECK-NEXT: |       |   | |-FieldDecl {{.*}} <line:25:23> col:23
> implicit 'int'
> +// CHECK-NEXT: |       |   | | `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       |   | `-FieldDecl {{.*}} <line:26:25> col:25
> implicit 'int'
> +// CHECK-NEXT: |       |   |   `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       |   `-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       |     |-ForStmt {{.*}} <line:25:3, line:27:7>
> +// CHECK-NEXT: |       |     | |-DeclStmt {{.*}} <line:25:8, col:17>
> +// CHECK-NEXT: |       |     | | `-VarDecl {{.*}} <col:8, col:16> col:12
> used i 'int' cinit
> +// CHECK-NEXT: |       |     | |   `-IntegerLiteral {{.*}} <col:16> 'int'
> 0
> +// CHECK-NEXT: |       |     | |-<<<NULL>>>
> +// CHECK-NEXT: |       |     | |-BinaryOperator {{.*}} <col:19, col:23>
> 'int' '<'
> +// CHECK-NEXT: |       |     | | |-ImplicitCastExpr {{.*}} <col:19> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       |     | | | `-DeclRefExpr {{.*}} <col:19> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |     | | `-ImplicitCastExpr {{.*}} <col:23> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       |     | |   `-DeclRefExpr {{.*}} <col:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       |     | |-UnaryOperator {{.*}} <col:26, col:27>
> 'int' postfix '++'
> +// CHECK-NEXT: |       |     | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |     | `-ForStmt {{.*}} <line:26:5, line:27:7>
> +// CHECK-NEXT: |       |     |   |-DeclStmt {{.*}} <line:26:10, col:19>
> +// CHECK-NEXT: |       |     |   | `-VarDecl {{.*}} <col:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       |     |   |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT: |       |     |   |-<<<NULL>>>
> +// CHECK-NEXT: |       |     |   |-BinaryOperator {{.*}} <col:21, col:25>
> 'int' '<'
> +// CHECK-NEXT: |       |     |   | |-ImplicitCastExpr {{.*}} <col:21>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |     |   | | `-DeclRefExpr {{.*}} <col:21> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |     |   | `-ImplicitCastExpr {{.*}} <col:25>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |     |   |   `-DeclRefExpr {{.*}} <col:25> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       |     |   |-UnaryOperator {{.*}} <col:28, col:29>
> 'int' postfix '++'
> +// CHECK-NEXT: |       |     |   | `-DeclRefExpr {{.*}} <col:28> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |     |   `-NullStmt {{.*}} <line:27:7>
> +// CHECK-NEXT: |       |     |-ImplicitParamDecl {{.*}} <line:24:9> col:9
> implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |     |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |     |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:24:9) *const restrict'
> +// CHECK-NEXT: |       |     |-VarDecl {{.*}} <line:25:8, col:16> col:12
> used i 'int' cinit
> +// CHECK-NEXT: |       |     | `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       |     `-VarDecl {{.*}} <line:26:10, col:18> col:14
> used i 'int' cinit
> +// CHECK-NEXT: |       |       `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT: |       |-DeclRefExpr {{.*}} <line:25:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       `-DeclRefExpr {{.*}} <line:26:25> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: `-FunctionDecl {{.*}} <line:30:1, line:36:1> line:30:6
> test_five 'void (int, int, int)'
> +// CHECK-NEXT:   |-ParmVarDecl {{.*}} <col:16, col:20> col:20 used x 'int'
> +// CHECK-NEXT:   |-ParmVarDecl {{.*}} <col:23, col:27> col:27 used y 'int'
> +// CHECK-NEXT:   |-ParmVarDecl {{.*}} <col:30, col:34> col:34 used z 'int'
> +// CHECK-NEXT:   `-CompoundStmt {{.*}} <col:37, line:36:1>
> +// CHECK-NEXT:     `-OMPTargetTeamsDistributeSimdDirective {{.*}}
> <line:31:9, col:53>
> +// CHECK-NEXT:       |-OMPCollapseClause {{.*}} <col:42, col:52>
> +// CHECK-NEXT:       | `-ConstantExpr {{.*}} <col:51> 'int'
> +// CHECK-NEXT:       |   `-IntegerLiteral {{.*}} <col:51> 'int' 2
> +// CHECK-NEXT:       |-OMPFirstprivateClause {{.*}} <<invalid sloc>>
> <implicit>
> +// CHECK-NEXT:       | |-DeclRefExpr {{.*}} <line:32:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT:       | |-DeclRefExpr {{.*}} <line:33:25> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT:       | `-DeclRefExpr {{.*}} <line:34:27> 'int' lvalue
> ParmVar {{.*}} 'z' 'int'
> +// CHECK-NEXT:       `-CapturedStmt {{.*}} <line:32:3, line:35:9>
> +// CHECK-NEXT:         |-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc> nothrow
> +// CHECK-NEXT:         | |-CapturedStmt {{.*}} <line:32:3, line:35:9>
> +// CHECK-NEXT:         | | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT:         | | | |-CapturedStmt {{.*}} <line:32:3, line:35:9>
> +// CHECK-NEXT:         | | | | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT:         | | | | | |-ForStmt {{.*}} <line:32:3, line:35:9>
> +// CHECK-NEXT:         | | | | | | |-DeclStmt {{.*}} <line:32:8, col:17>
> +// CHECK-NEXT:         | | | | | | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT:         | | | | | | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT:         | | | | | | |-<<<NULL>>>
> +// CHECK-NEXT:         | | | | | | |-BinaryOperator {{.*}} <col:19,
> col:23> 'int' '<'
> +// CHECK-NEXT:         | | | | | | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         | | | | | | | | `-DeclRefExpr {{.*}} <col:19>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | | | | | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         | | | | | | |   `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT:         | | | | | | |-UnaryOperator {{.*}} <col:26,
> col:27> 'int' postfix '++'
> +// CHECK-NEXT:         | | | | | | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | | | | | `-ForStmt {{.*}} <line:33:5, line:35:9>
> +// CHECK-NEXT:         | | | | | |   |-DeclStmt {{.*}} <line:33:10,
> col:19>
> +// CHECK-NEXT:         | | | | | |   | `-VarDecl {{.*}} <col:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT:         | | | | | |   |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT:         | | | | | |   |-<<<NULL>>>
> +// CHECK-NEXT:         | | | | | |   |-BinaryOperator {{.*}} <col:21,
> col:25> 'int' '<'
> +// CHECK-NEXT:         | | | | | |   | |-ImplicitCastExpr {{.*}} <col:21>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         | | | | | |   | | `-DeclRefExpr {{.*}} <col:21>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | | | | |   | `-ImplicitCastExpr {{.*}} <col:25>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         | | | | | |   |   `-DeclRefExpr {{.*}} <col:25>
> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT:         | | | | | |   |-UnaryOperator {{.*}} <col:28,
> col:29> 'int' postfix '++'
> +// CHECK-NEXT:         | | | | | |   | `-DeclRefExpr {{.*}} <col:28>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | | | | |   `-ForStmt {{.*}} <line:34:7,
> line:35:9>
> +// CHECK-NEXT:         | | | | | |     |-DeclStmt {{.*}} <line:34:12,
> col:21>
> +// CHECK-NEXT:         | | | | | |     | `-VarDecl {{.*}} <col:12,
> col:20> col:16 used i 'int' cinit
> +// CHECK-NEXT:         | | | | | |     |   `-IntegerLiteral {{.*}}
> <col:20> 'int' 0
> +// CHECK-NEXT:         | | | | | |     |-<<<NULL>>>
> +// CHECK-NEXT:         | | | | | |     |-BinaryOperator {{.*}} <col:23,
> col:27> 'int' '<'
> +// CHECK-NEXT:         | | | | | |     | |-ImplicitCastExpr {{.*}}
> <col:23> 'int' <LValueToRValue>
> +// CHECK-NEXT:         | | | | | |     | | `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | | | | |     | `-ImplicitCastExpr {{.*}}
> <col:27> 'int' <LValueToRValue>
> +// CHECK-NEXT:         | | | | | |     |   `-DeclRefExpr {{.*}} <col:27>
> 'int' lvalue ParmVar {{.*}} 'z' 'int'
> +// CHECK-NEXT:         | | | | | |     |-UnaryOperator {{.*}} <col:30,
> col:31> 'int' postfix '++'
> +// CHECK-NEXT:         | | | | | |     | `-DeclRefExpr {{.*}} <col:30>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | | | | |     `-NullStmt {{.*}} <line:35:9>
> +// CHECK-NEXT:         | | | | | |-ImplicitParamDecl {{.*}} <line:31:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT:         | | | | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT:         | | | | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:31:9) *const restrict'
> +// CHECK-NEXT:         | | | | | |-VarDecl {{.*}} <line:32:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT:         | | | | | | `-IntegerLiteral {{.*}} <col:16> 'int'
> 0
> +// CHECK-NEXT:         | | | | | |-VarDecl {{.*}} <line:33:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT:         | | | | | | `-IntegerLiteral {{.*}} <col:18> 'int'
> 0
> +// CHECK-NEXT:         | | | | | `-VarDecl {{.*}} <line:34:12, col:20>
> col:16 used i 'int' cinit
> +// CHECK-NEXT:         | | | | |   `-IntegerLiteral {{.*}} <col:20> 'int'
> 0
> +// CHECK-NEXT:         | | | | |-DeclRefExpr {{.*}} <line:32:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT:         | | | | |-DeclRefExpr {{.*}} <line:33:25> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT:         | | | | `-DeclRefExpr {{.*}} <line:34:27> 'int'
> lvalue ParmVar {{.*}} 'z' 'int'
> +// CHECK-NEXT:         | | | |-ImplicitParamDecl {{.*}} <line:31:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:31:9) *const restrict'
> +// CHECK-NEXT:         | | | |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT:         | | | | |-CapturedRecordAttr {{.*}} <<invalid
> sloc>> Implicit
> +// CHECK-NEXT:         | | | | |-FieldDecl {{.*}} <line:32:23> col:23
> implicit 'int'
> +// CHECK-NEXT:         | | | | | `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT:         | | | | |-FieldDecl {{.*}} <line:33:25> col:25
> implicit 'int'
> +// CHECK-NEXT:         | | | | | `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT:         | | | | `-FieldDecl {{.*}} <line:34:27> col:27
> implicit 'int'
> +// CHECK-NEXT:         | | | |   `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT:         | | | `-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT:         | | |   |-ForStmt {{.*}} <line:32:3, line:35:9>
> +// CHECK-NEXT:         | | |   | |-DeclStmt {{.*}} <line:32:8, col:17>
> +// CHECK-NEXT:         | | |   | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT:         | | |   | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT:         | | |   | |-<<<NULL>>>
> +// CHECK-NEXT:         | | |   | |-BinaryOperator {{.*}} <col:19, col:23>
> 'int' '<'
> +// CHECK-NEXT:         | | |   | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         | | |   | | | `-DeclRefExpr {{.*}} <col:19> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | |   | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         | | |   | |   `-DeclRefExpr {{.*}} <col:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT:         | | |   | |-UnaryOperator {{.*}} <col:26, col:27>
> 'int' postfix '++'
> +// CHECK-NEXT:         | | |   | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | |   | `-ForStmt {{.*}} <line:33:5, line:35:9>
> +// CHECK-NEXT:         | | |   |   |-DeclStmt {{.*}} <line:33:10, col:19>
> +// CHECK-NEXT:         | | |   |   | `-VarDecl {{.*}} <col:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT:         | | |   |   |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT:         | | |   |   |-<<<NULL>>>
> +// CHECK-NEXT:         | | |   |   |-BinaryOperator {{.*}} <col:21,
> col:25> 'int' '<'
> +// CHECK-NEXT:         | | |   |   | |-ImplicitCastExpr {{.*}} <col:21>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         | | |   |   | | `-DeclRefExpr {{.*}} <col:21>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | |   |   | `-ImplicitCastExpr {{.*}} <col:25>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         | | |   |   |   `-DeclRefExpr {{.*}} <col:25>
> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT:         | | |   |   |-UnaryOperator {{.*}} <col:28,
> col:29> 'int' postfix '++'
> +// CHECK-NEXT:         | | |   |   | `-DeclRefExpr {{.*}} <col:28> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | |   |   `-ForStmt {{.*}} <line:34:7, line:35:9>
> +// CHECK-NEXT:         | | |   |     |-DeclStmt {{.*}} <line:34:12,
> col:21>
> +// CHECK-NEXT:         | | |   |     | `-VarDecl {{.*}} <col:12, col:20>
> col:16 used i 'int' cinit
> +// CHECK-NEXT:         | | |   |     |   `-IntegerLiteral {{.*}} <col:20>
> 'int' 0
> +// CHECK-NEXT:         | | |   |     |-<<<NULL>>>
> +// CHECK-NEXT:         | | |   |     |-BinaryOperator {{.*}} <col:23,
> col:27> 'int' '<'
> +// CHECK-NEXT:         | | |   |     | |-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         | | |   |     | | `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | |   |     | `-ImplicitCastExpr {{.*}} <col:27>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         | | |   |     |   `-DeclRefExpr {{.*}} <col:27>
> 'int' lvalue ParmVar {{.*}} 'z' 'int'
> +// CHECK-NEXT:         | | |   |     |-UnaryOperator {{.*}} <col:30,
> col:31> 'int' postfix '++'
> +// CHECK-NEXT:         | | |   |     | `-DeclRefExpr {{.*}} <col:30>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | |   |     `-NullStmt {{.*}} <line:35:9>
> +// CHECK-NEXT:         | | |   |-ImplicitParamDecl {{.*}} <line:31:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT:         | | |   |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT:         | | |   |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:31:9) *const restrict'
> +// CHECK-NEXT:         | | |   |-VarDecl {{.*}} <line:32:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT:         | | |   | `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT:         | | |   |-VarDecl {{.*}} <line:33:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT:         | | |   | `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT:         | | |   `-VarDecl {{.*}} <line:34:12, col:20>
> col:16 used i 'int' cinit
> +// CHECK-NEXT:         | | |     `-IntegerLiteral {{.*}} <col:20> 'int' 0
> +// CHECK-NEXT:         | | |-DeclRefExpr {{.*}} <line:32:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT:         | | |-DeclRefExpr {{.*}} <line:33:25> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT:         | | `-DeclRefExpr {{.*}} <line:34:27> 'int' lvalue
> ParmVar {{.*}} 'z' 'int'
> +// CHECK-NEXT:         | |-AlwaysInlineAttr {{.*}} <<invalid sloc>>
> Implicit __forceinline
> +// CHECK-NEXT:         | |-ImplicitParamDecl {{.*}} <line:31:9> col:9
> implicit .global_tid. 'const int'
> +// CHECK-NEXT:         | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .part_id. 'const int *const restrict'
> +// CHECK-NEXT:         | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .privates. 'void *const restrict'
> +// CHECK-NEXT:         | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)'
> +// CHECK-NEXT:         | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .task_t. 'void *const'
> +// CHECK-NEXT:         | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:31:9) *const restrict'
> +// CHECK-NEXT:         | |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT:         | | |-CapturedRecordAttr {{.*}} <<invalid sloc>>
> Implicit
> +// CHECK-NEXT:         | | |-FieldDecl {{.*}} <line:32:23> col:23
> implicit 'int'
> +// CHECK-NEXT:         | | | `-OMPCaptureKindAttr {{.*}} <<invalid sloc>>
> Implicit 9
> +// CHECK-NEXT:         | | |-FieldDecl {{.*}} <line:33:25> col:25
> implicit 'int'
> +// CHECK-NEXT:         | | | `-OMPCaptureKindAttr {{.*}} <<invalid sloc>>
> Implicit 9
> +// CHECK-NEXT:         | | `-FieldDecl {{.*}} <line:34:27> col:27
> implicit 'int'
> +// CHECK-NEXT:         | |   `-OMPCaptureKindAttr {{.*}} <<invalid sloc>>
> Implicit 9
> +// CHECK-NEXT:         | `-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc> nothrow
> +// CHECK-NEXT:         |   |-CapturedStmt {{.*}} <line:32:3, line:35:9>
> +// CHECK-NEXT:         |   | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT:         |   | | |-ForStmt {{.*}} <line:32:3, line:35:9>
> +// CHECK-NEXT:         |   | | | |-DeclStmt {{.*}} <line:32:8, col:17>
> +// CHECK-NEXT:         |   | | | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT:         |   | | | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT:         |   | | | |-<<<NULL>>>
> +// CHECK-NEXT:         |   | | | |-BinaryOperator {{.*}} <col:19, col:23>
> 'int' '<'
> +// CHECK-NEXT:         |   | | | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         |   | | | | | `-DeclRefExpr {{.*}} <col:19> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         |   | | | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         |   | | | |   `-DeclRefExpr {{.*}} <col:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT:         |   | | | |-UnaryOperator {{.*}} <col:26, col:27>
> 'int' postfix '++'
> +// CHECK-NEXT:         |   | | | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         |   | | | `-ForStmt {{.*}} <line:33:5, line:35:9>
> +// CHECK-NEXT:         |   | | |   |-DeclStmt {{.*}} <line:33:10, col:19>
> +// CHECK-NEXT:         |   | | |   | `-VarDecl {{.*}} <col:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT:         |   | | |   |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT:         |   | | |   |-<<<NULL>>>
> +// CHECK-NEXT:         |   | | |   |-BinaryOperator {{.*}} <col:21,
> col:25> 'int' '<'
> +// CHECK-NEXT:         |   | | |   | |-ImplicitCastExpr {{.*}} <col:21>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         |   | | |   | | `-DeclRefExpr {{.*}} <col:21>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         |   | | |   | `-ImplicitCastExpr {{.*}} <col:25>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         |   | | |   |   `-DeclRefExpr {{.*}} <col:25>
> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT:         |   | | |   |-UnaryOperator {{.*}} <col:28,
> col:29> 'int' postfix '++'
> +// CHECK-NEXT:         |   | | |   | `-DeclRefExpr {{.*}} <col:28> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         |   | | |   `-ForStmt {{.*}} <line:34:7, line:35:9>
> +// CHECK-NEXT:         |   | | |     |-DeclStmt {{.*}} <line:34:12,
> col:21>
> +// CHECK-NEXT:         |   | | |     | `-VarDecl {{.*}} <col:12, col:20>
> col:16 used i 'int' cinit
> +// CHECK-NEXT:         |   | | |     |   `-IntegerLiteral {{.*}} <col:20>
> 'int' 0
> +// CHECK-NEXT:         |   | | |     |-<<<NULL>>>
> +// CHECK-NEXT:         |   | | |     |-BinaryOperator {{.*}} <col:23,
> col:27> 'int' '<'
> +// CHECK-NEXT:         |   | | |     | |-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         |   | | |     | | `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         |   | | |     | `-ImplicitCastExpr {{.*}} <col:27>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         |   | | |     |   `-DeclRefExpr {{.*}} <col:27>
> 'int' lvalue ParmVar {{.*}} 'z' 'int'
> +// CHECK-NEXT:         |   | | |     |-UnaryOperator {{.*}} <col:30,
> col:31> 'int' postfix '++'
> +// CHECK-NEXT:         |   | | |     | `-DeclRefExpr {{.*}} <col:30>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         |   | | |     `-NullStmt {{.*}} <line:35:9>
> +// CHECK-NEXT:         |   | | |-ImplicitParamDecl {{.*}} <line:31:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT:         |   | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT:         |   | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:31:9) *const restrict'
> +// CHECK-NEXT:         |   | | |-VarDecl {{.*}} <line:32:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT:         |   | | | `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT:         |   | | |-VarDecl {{.*}} <line:33:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT:         |   | | | `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT:         |   | | `-VarDecl {{.*}} <line:34:12, col:20>
> col:16 used i 'int' cinit
> +// CHECK-NEXT:         |   | |   `-IntegerLiteral {{.*}} <col:20> 'int' 0
> +// CHECK-NEXT:         |   | |-DeclRefExpr {{.*}} <line:32:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT:         |   | |-DeclRefExpr {{.*}} <line:33:25> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT:         |   | `-DeclRefExpr {{.*}} <line:34:27> 'int'
> lvalue ParmVar {{.*}} 'z' 'int'
> +// CHECK-NEXT:         |   |-ImplicitParamDecl {{.*}} <line:31:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:31:9) *const restrict'
> +// CHECK-NEXT:         |   |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT:         |   | |-CapturedRecordAttr {{.*}} <<invalid sloc>>
> Implicit
> +// CHECK-NEXT:         |   | |-FieldDecl {{.*}} <line:32:23> col:23
> implicit 'int'
> +// CHECK-NEXT:         |   | | `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT:         |   | |-FieldDecl {{.*}} <line:33:25> col:25
> implicit 'int'
> +// CHECK-NEXT:         |   | | `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT:         |   | `-FieldDecl {{.*}} <line:34:27> col:27
> implicit 'int'
> +// CHECK-NEXT:         |   |   `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT:         |   `-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT:         |     |-ForStmt {{.*}} <line:32:3, line:35:9>
> +// CHECK-NEXT:         |     | |-DeclStmt {{.*}} <line:32:8, col:17>
> +// CHECK-NEXT:         |     | | `-VarDecl {{.*}} <col:8, col:16> col:12
> used i 'int' cinit
> +// CHECK-NEXT:         |     | |   `-IntegerLiteral {{.*}} <col:16> 'int'
> 0
> +// CHECK-NEXT:         |     | |-<<<NULL>>>
> +// CHECK-NEXT:         |     | |-BinaryOperator {{.*}} <col:19, col:23>
> 'int' '<'
> +// CHECK-NEXT:         |     | | |-ImplicitCastExpr {{.*}} <col:19> 'int'
> <LValueToRValue>
> +// CHECK-NEXT:         |     | | | `-DeclRefExpr {{.*}} <col:19> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         |     | | `-ImplicitCastExpr {{.*}} <col:23> 'int'
> <LValueToRValue>
> +// CHECK-NEXT:         |     | |   `-DeclRefExpr {{.*}} <col:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT:         |     | |-UnaryOperator {{.*}} <col:26, col:27>
> 'int' postfix '++'
> +// CHECK-NEXT:         |     | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         |     | `-ForStmt {{.*}} <line:33:5, line:35:9>
> +// CHECK-NEXT:         |     |   |-DeclStmt {{.*}} <line:33:10, col:19>
> +// CHECK-NEXT:         |     |   | `-VarDecl {{.*}} <col:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT:         |     |   |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT:         |     |   |-<<<NULL>>>
> +// CHECK-NEXT:         |     |   |-BinaryOperator {{.*}} <col:21, col:25>
> 'int' '<'
> +// CHECK-NEXT:         |     |   | |-ImplicitCastExpr {{.*}} <col:21>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         |     |   | | `-DeclRefExpr {{.*}} <col:21> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         |     |   | `-ImplicitCastExpr {{.*}} <col:25>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         |     |   |   `-DeclRefExpr {{.*}} <col:25> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT:         |     |   |-UnaryOperator {{.*}} <col:28, col:29>
> 'int' postfix '++'
> +// CHECK-NEXT:         |     |   | `-DeclRefExpr {{.*}} <col:28> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         |     |   `-ForStmt {{.*}} <line:34:7, line:35:9>
> +// CHECK-NEXT:         |     |     |-DeclStmt {{.*}} <line:34:12, col:21>
> +// CHECK-NEXT:         |     |     | `-VarDecl {{.*}} <col:12, col:20>
> col:16 used i 'int' cinit
> +// CHECK-NEXT:         |     |     |   `-IntegerLiteral {{.*}} <col:20>
> 'int' 0
> +// CHECK-NEXT:         |     |     |-<<<NULL>>>
> +// CHECK-NEXT:         |     |     |-BinaryOperator {{.*}} <col:23,
> col:27> 'int' '<'
> +// CHECK-NEXT:         |     |     | |-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         |     |     | | `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         |     |     | `-ImplicitCastExpr {{.*}} <col:27>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         |     |     |   `-DeclRefExpr {{.*}} <col:27>
> 'int' lvalue ParmVar {{.*}} 'z' 'int'
> +// CHECK-NEXT:         |     |     |-UnaryOperator {{.*}} <col:30,
> col:31> 'int' postfix '++'
> +// CHECK-NEXT:         |     |     | `-DeclRefExpr {{.*}} <col:30> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         |     |     `-NullStmt {{.*}} <line:35:9>
> +// CHECK-NEXT:         |     |-ImplicitParamDecl {{.*}} <line:31:9> col:9
> implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT:         |     |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT:         |     |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:31:9) *const restrict'
> +// CHECK-NEXT:         |     |-VarDecl {{.*}} <line:32:8, col:16> col:12
> used i 'int' cinit
> +// CHECK-NEXT:         |     | `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT:         |     |-VarDecl {{.*}} <line:33:10, col:18> col:14
> used i 'int' cinit
> +// CHECK-NEXT:         |     | `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT:         |     `-VarDecl {{.*}} <line:34:12, col:20> col:16
> used i 'int' cinit
> +// CHECK-NEXT:         |       `-IntegerLiteral {{.*}} <col:20> 'int' 0
> +// CHECK-NEXT:         |-DeclRefExpr {{.*}} <line:32:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT:         |-DeclRefExpr {{.*}} <line:33:25> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT:         `-DeclRefExpr {{.*}} <line:34:27> 'int' lvalue
> ParmVar {{.*}} 'z' 'int'
>
> Added: cfe/trunk/test/AST/ast-dump-openmp-target-teams-distribute.c
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/test/AST/ast-dump-openmp-target-teams-distribute.c?rev=356569&view=auto
>
> ==============================================================================
> --- cfe/trunk/test/AST/ast-dump-openmp-target-teams-distribute.c (added)
> +++ cfe/trunk/test/AST/ast-dump-openmp-target-teams-distribute.c Wed Mar
> 20 09:31:47 2019
> @@ -0,0 +1,957 @@
> +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s |
> FileCheck --match-full-lines -implicit-check-not=openmp_structured_block %s
> +
> +void test_one(int x) {
> +#pragma omp target teams distribute
> +  for (int i = 0; i < x; i++)
> +    ;
> +}
> +
> +void test_two(int x, int y) {
> +#pragma omp target teams distribute
> +  for (int i = 0; i < x; i++)
> +    for (int i = 0; i < y; i++)
> +      ;
> +}
> +
> +void test_three(int x, int y) {
> +#pragma omp target teams distribute collapse(1)
> +  for (int i = 0; i < x; i++)
> +    for (int i = 0; i < y; i++)
> +      ;
> +}
> +
> +void test_four(int x, int y) {
> +#pragma omp target teams distribute collapse(2)
> +  for (int i = 0; i < x; i++)
> +    for (int i = 0; i < y; i++)
> +      ;
> +}
> +
> +void test_five(int x, int y, int z) {
> +#pragma omp target teams distribute collapse(2)
> +  for (int i = 0; i < x; i++)
> +    for (int i = 0; i < y; i++)
> +      for (int i = 0; i < z; i++)
> +        ;
> +}
> +
> +// CHECK: TranslationUnitDecl {{.*}} <<invalid sloc>> <invalid sloc>
> +// CHECK: |-FunctionDecl {{.*}}
> <{{.*}}ast-dump-openmp-target-teams-distribute.c:3:1, line:7:1> line:3:6
> test_one 'void (int)'
> +// CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:15, col:19> col:19 used x 'int'
> +// CHECK-NEXT: | `-CompoundStmt {{.*}} <col:22, line:7:1>
> +// CHECK-NEXT: |   `-OMPTargetTeamsDistributeDirective {{.*}} <line:4:9,
> col:36>
> +// CHECK-NEXT: |     |-OMPFirstprivateClause {{.*}} <<invalid sloc>>
> <implicit>
> +// CHECK-NEXT: |     | `-DeclRefExpr {{.*}} <line:5:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |     `-CapturedStmt {{.*}} <col:3, line:6:5>
> +// CHECK-NEXT: |       |-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc> nothrow
> +// CHECK-NEXT: |       | |-CapturedStmt {{.*}} <line:5:3, line:6:5>
> +// CHECK-NEXT: |       | | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       | | | |-CapturedStmt {{.*}} <line:5:3, line:6:5>
> +// CHECK-NEXT: |       | | | | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       | | | | | |-ForStmt {{.*}} <line:5:3, line:6:5>
> +// CHECK-NEXT: |       | | | | | | |-DeclStmt {{.*}} <line:5:8, col:17>
> +// CHECK-NEXT: |       | | | | | | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | | | | | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       | | | | | | |-<<<NULL>>>
> +// CHECK-NEXT: |       | | | | | | |-BinaryOperator {{.*}} <col:19,
> col:23> 'int' '<'
> +// CHECK-NEXT: |       | | | | | | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | | | | | | `-DeclRefExpr {{.*}} <col:19>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | | | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | | | | |   `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | | | | | |-UnaryOperator {{.*}} <col:26,
> col:27> 'int' postfix '++'
> +// CHECK-NEXT: |       | | | | | | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | | | `-NullStmt {{.*}} <line:6:5>
> +// CHECK-NEXT: |       | | | | | |-ImplicitParamDecl {{.*}} <line:4:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | | | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | | | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute.c:4:9) *const restrict'
> +// CHECK-NEXT: |       | | | | | `-VarDecl {{.*}} <line:5:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | | | |   `-IntegerLiteral {{.*}} <col:16> 'int'
> 0
> +// CHECK-NEXT: |       | | | | `-DeclRefExpr {{.*}} <col:3> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | | |-ImplicitParamDecl {{.*}} <line:4:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute.c:4:9) *const restrict'
> +// CHECK-NEXT: |       | | | |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT: |       | | | | |-CapturedRecordAttr {{.*}} <<invalid
> sloc>> Implicit
> +// CHECK-NEXT: |       | | | | `-FieldDecl {{.*}} <line:5:3> col:3
> implicit 'int'
> +// CHECK-NEXT: |       | | | |   `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       | | | `-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       | | |   |-ForStmt {{.*}} <col:3, line:6:5>
> +// CHECK-NEXT: |       | | |   | |-DeclStmt {{.*}} <line:5:8, col:17>
> +// CHECK-NEXT: |       | | |   | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | |   | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       | | |   | |-<<<NULL>>>
> +// CHECK-NEXT: |       | | |   | |-BinaryOperator {{.*}} <col:19, col:23>
> 'int' '<'
> +// CHECK-NEXT: |       | | |   | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | |   | | | `-DeclRefExpr {{.*}} <col:19> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | |   | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | |   | |   `-DeclRefExpr {{.*}} <col:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | |   | |-UnaryOperator {{.*}} <col:26, col:27>
> 'int' postfix '++'
> +// CHECK-NEXT: |       | | |   | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | |   | `-NullStmt {{.*}} <line:6:5>
> +// CHECK-NEXT: |       | | |   |-ImplicitParamDecl {{.*}} <line:4:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | |   |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | |   |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute.c:4:9) *const restrict'
> +// CHECK-NEXT: |       | | |   `-VarDecl {{.*}} <line:5:8, col:16> col:12
> used i 'int' cinit
> +// CHECK-NEXT: |       | | |     `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       | | `-DeclRefExpr {{.*}} <col:3> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | |-AlwaysInlineAttr {{.*}} <<invalid sloc>>
> Implicit __forceinline
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <line:4:9> col:9
> implicit .global_tid. 'const int'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .part_id. 'const int *const restrict'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .privates. 'void *const restrict'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .task_t. 'void *const'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute.c:4:9) *const restrict'
> +// CHECK-NEXT: |       | |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT: |       | | |-CapturedRecordAttr {{.*}} <<invalid sloc>>
> Implicit
> +// CHECK-NEXT: |       | | `-FieldDecl {{.*}} <line:5:3> col:3 implicit
> 'int'
> +// CHECK-NEXT: |       | |   `-OMPCaptureKindAttr {{.*}} <<invalid sloc>>
> Implicit 9
> +// CHECK-NEXT: |       | `-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc> nothrow
> +// CHECK-NEXT: |       |   |-CapturedStmt {{.*}} <col:3, line:6:5>
> +// CHECK-NEXT: |       |   | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       |   | | |-ForStmt {{.*}} <line:5:3, line:6:5>
> +// CHECK-NEXT: |       |   | | | |-DeclStmt {{.*}} <line:5:8, col:17>
> +// CHECK-NEXT: |       |   | | | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       |   | | | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       |   | | | |-<<<NULL>>>
> +// CHECK-NEXT: |       |   | | | |-BinaryOperator {{.*}} <col:19, col:23>
> 'int' '<'
> +// CHECK-NEXT: |       |   | | | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |   | | | | | `-DeclRefExpr {{.*}} <col:19> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | | | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |   | | | |   `-DeclRefExpr {{.*}} <col:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       |   | | | |-UnaryOperator {{.*}} <col:26, col:27>
> 'int' postfix '++'
> +// CHECK-NEXT: |       |   | | | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | | | `-NullStmt {{.*}} <line:6:5>
> +// CHECK-NEXT: |       |   | | |-ImplicitParamDecl {{.*}} <line:4:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |   | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |   | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute.c:4:9) *const restrict'
> +// CHECK-NEXT: |       |   | | `-VarDecl {{.*}} <line:5:8, col:16> col:12
> used i 'int' cinit
> +// CHECK-NEXT: |       |   | |   `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       |   | `-DeclRefExpr {{.*}} <col:3> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       |   |-ImplicitParamDecl {{.*}} <line:4:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute.c:4:9) *const restrict'
> +// CHECK-NEXT: |       |   |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT: |       |   | |-CapturedRecordAttr {{.*}} <<invalid sloc>>
> Implicit
> +// CHECK-NEXT: |       |   | `-FieldDecl {{.*}} <line:5:3> col:3 implicit
> 'int'
> +// CHECK-NEXT: |       |   |   `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       |   `-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       |     |-ForStmt {{.*}} <col:3, line:6:5>
> +// CHECK-NEXT: |       |     | |-DeclStmt {{.*}} <line:5:8, col:17>
> +// CHECK-NEXT: |       |     | | `-VarDecl {{.*}} <col:8, col:16> col:12
> used i 'int' cinit
> +// CHECK-NEXT: |       |     | |   `-IntegerLiteral {{.*}} <col:16> 'int'
> 0
> +// CHECK-NEXT: |       |     | |-<<<NULL>>>
> +// CHECK-NEXT: |       |     | |-BinaryOperator {{.*}} <col:19, col:23>
> 'int' '<'
> +// CHECK-NEXT: |       |     | | |-ImplicitCastExpr {{.*}} <col:19> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       |     | | | `-DeclRefExpr {{.*}} <col:19> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |     | | `-ImplicitCastExpr {{.*}} <col:23> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       |     | |   `-DeclRefExpr {{.*}} <col:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       |     | |-UnaryOperator {{.*}} <col:26, col:27>
> 'int' postfix '++'
> +// CHECK-NEXT: |       |     | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |     | `-NullStmt {{.*}} <line:6:5>
> +// CHECK-NEXT: |       |     |-ImplicitParamDecl {{.*}} <line:4:9> col:9
> implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |     |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |     |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute.c:4:9) *const restrict'
> +// CHECK-NEXT: |       |     `-VarDecl {{.*}} <line:5:8, col:16> col:12
> used i 'int' cinit
> +// CHECK-NEXT: |       |       `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       `-DeclRefExpr {{.*}} <col:3> 'int' lvalue ParmVar
> {{.*}} 'x' 'int'
> +// CHECK-NEXT: |-FunctionDecl {{.*}} <line:9:1, line:14:1> line:9:6
> test_two 'void (int, int)'
> +// CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:15, col:19> col:19 used x 'int'
> +// CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:22, col:26> col:26 used y 'int'
> +// CHECK-NEXT: | `-CompoundStmt {{.*}} <col:29, line:14:1>
> +// CHECK-NEXT: |   `-OMPTargetTeamsDistributeDirective {{.*}} <line:10:9,
> col:36>
> +// CHECK-NEXT: |     |-OMPFirstprivateClause {{.*}} <<invalid sloc>>
> <implicit>
> +// CHECK-NEXT: |     | |-DeclRefExpr {{.*}} <line:11:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |     | `-DeclRefExpr {{.*}} <line:12:25> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |     `-CapturedStmt {{.*}} <line:11:3, line:13:7>
> +// CHECK-NEXT: |       |-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc> nothrow
> +// CHECK-NEXT: |       | |-CapturedStmt {{.*}} <line:11:3, line:13:7>
> +// CHECK-NEXT: |       | | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       | | | |-CapturedStmt {{.*}} <line:11:3, line:13:7>
> +// CHECK-NEXT: |       | | | | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       | | | | | |-ForStmt {{.*}} <line:11:3, line:13:7>
> +// CHECK-NEXT: |       | | | | | | |-DeclStmt {{.*}} <line:11:8, col:17>
> +// CHECK-NEXT: |       | | | | | | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | | | | | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       | | | | | | |-<<<NULL>>>
> +// CHECK-NEXT: |       | | | | | | |-BinaryOperator {{.*}} <col:19,
> col:23> 'int' '<'
> +// CHECK-NEXT: |       | | | | | | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | | | | | | `-DeclRefExpr {{.*}} <col:19>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | | | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | | | | |   `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | | | | | |-UnaryOperator {{.*}} <col:26,
> col:27> 'int' postfix '++'
> +// CHECK-NEXT: |       | | | | | | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | | | `-ForStmt {{.*}} <line:12:5, line:13:7>
> +// CHECK-NEXT: |       | | | | | |   |-DeclStmt {{.*}} <line:12:10,
> col:19>
> +// CHECK-NEXT: |       | | | | | |   | `-VarDecl {{.*}} <col:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       | | | | | |   |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT: |       | | | | | |   |-<<<NULL>>>
> +// CHECK-NEXT: |       | | | | | |   |-BinaryOperator {{.*}} <col:21,
> col:25> 'int' '<'
> +// CHECK-NEXT: |       | | | | | |   | |-ImplicitCastExpr {{.*}} <col:21>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | | | |   | | `-DeclRefExpr {{.*}} <col:21>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | | |   | `-ImplicitCastExpr {{.*}} <col:25>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | | | |   |   `-DeclRefExpr {{.*}} <col:25>
> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | | | | | |   |-UnaryOperator {{.*}} <col:28,
> col:29> 'int' postfix '++'
> +// CHECK-NEXT: |       | | | | | |   | `-DeclRefExpr {{.*}} <col:28>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | | |   `-NullStmt {{.*}} <line:13:7>
> +// CHECK-NEXT: |       | | | | | |-ImplicitParamDecl {{.*}} <line:10:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | | | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | | | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute.c:10:9) *const restrict'
> +// CHECK-NEXT: |       | | | | | |-VarDecl {{.*}} <line:11:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | | | | | `-IntegerLiteral {{.*}} <col:16> 'int'
> 0
> +// CHECK-NEXT: |       | | | | | `-VarDecl {{.*}} <line:12:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       | | | | |   `-IntegerLiteral {{.*}} <col:18> 'int'
> 0
> +// CHECK-NEXT: |       | | | | |-DeclRefExpr {{.*}} <line:11:3> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | | | `-DeclRefExpr {{.*}} <line:12:25> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | | | |-ImplicitParamDecl {{.*}} <line:10:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute.c:10:9) *const restrict'
> +// CHECK-NEXT: |       | | | |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT: |       | | | | |-CapturedRecordAttr {{.*}} <<invalid
> sloc>> Implicit
> +// CHECK-NEXT: |       | | | | |-FieldDecl {{.*}} <line:11:3> col:3
> implicit 'int'
> +// CHECK-NEXT: |       | | | | | `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       | | | | `-FieldDecl {{.*}} <line:12:25> col:25
> implicit 'int'
> +// CHECK-NEXT: |       | | | |   `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       | | | `-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       | | |   |-ForStmt {{.*}} <line:11:3, line:13:7>
> +// CHECK-NEXT: |       | | |   | |-DeclStmt {{.*}} <line:11:8, col:17>
> +// CHECK-NEXT: |       | | |   | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | |   | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       | | |   | |-<<<NULL>>>
> +// CHECK-NEXT: |       | | |   | |-BinaryOperator {{.*}} <col:19, col:23>
> 'int' '<'
> +// CHECK-NEXT: |       | | |   | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | |   | | | `-DeclRefExpr {{.*}} <col:19> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | |   | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | |   | |   `-DeclRefExpr {{.*}} <col:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | |   | |-UnaryOperator {{.*}} <col:26, col:27>
> 'int' postfix '++'
> +// CHECK-NEXT: |       | | |   | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | |   | `-ForStmt {{.*}} <line:12:5, line:13:7>
> +// CHECK-NEXT: |       | | |   |   |-DeclStmt {{.*}} <line:12:10, col:19>
> +// CHECK-NEXT: |       | | |   |   | `-VarDecl {{.*}} <col:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       | | |   |   |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT: |       | | |   |   |-<<<NULL>>>
> +// CHECK-NEXT: |       | | |   |   |-BinaryOperator {{.*}} <col:21,
> col:25> 'int' '<'
> +// CHECK-NEXT: |       | | |   |   | |-ImplicitCastExpr {{.*}} <col:21>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | |   |   | | `-DeclRefExpr {{.*}} <col:21>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | |   |   | `-ImplicitCastExpr {{.*}} <col:25>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | |   |   |   `-DeclRefExpr {{.*}} <col:25>
> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | | |   |   |-UnaryOperator {{.*}} <col:28,
> col:29> 'int' postfix '++'
> +// CHECK-NEXT: |       | | |   |   | `-DeclRefExpr {{.*}} <col:28> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | |   |   `-NullStmt {{.*}} <line:13:7>
> +// CHECK-NEXT: |       | | |   |-ImplicitParamDecl {{.*}} <line:10:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | |   |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | |   |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute.c:10:9) *const restrict'
> +// CHECK-NEXT: |       | | |   |-VarDecl {{.*}} <line:11:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | |   | `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       | | |   `-VarDecl {{.*}} <line:12:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       | | |     `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT: |       | | |-DeclRefExpr {{.*}} <line:11:3> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | `-DeclRefExpr {{.*}} <line:12:25> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | |-AlwaysInlineAttr {{.*}} <<invalid sloc>>
> Implicit __forceinline
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <line:10:9> col:9
> implicit .global_tid. 'const int'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .part_id. 'const int *const restrict'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .privates. 'void *const restrict'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .task_t. 'void *const'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute.c:10:9) *const restrict'
> +// CHECK-NEXT: |       | |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT: |       | | |-CapturedRecordAttr {{.*}} <<invalid sloc>>
> Implicit
> +// CHECK-NEXT: |       | | |-FieldDecl {{.*}} <line:11:3> col:3 implicit
> 'int'
> +// CHECK-NEXT: |       | | | `-OMPCaptureKindAttr {{.*}} <<invalid sloc>>
> Implicit 9
> +// CHECK-NEXT: |       | | `-FieldDecl {{.*}} <line:12:25> col:25
> implicit 'int'
> +// CHECK-NEXT: |       | |   `-OMPCaptureKindAttr {{.*}} <<invalid sloc>>
> Implicit 9
> +// CHECK-NEXT: |       | `-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc> nothrow
> +// CHECK-NEXT: |       |   |-CapturedStmt {{.*}} <line:11:3, line:13:7>
> +// CHECK-NEXT: |       |   | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       |   | | |-ForStmt {{.*}} <line:11:3, line:13:7>
> +// CHECK-NEXT: |       |   | | | |-DeclStmt {{.*}} <line:11:8, col:17>
> +// CHECK-NEXT: |       |   | | | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       |   | | | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       |   | | | |-<<<NULL>>>
> +// CHECK-NEXT: |       |   | | | |-BinaryOperator {{.*}} <col:19, col:23>
> 'int' '<'
> +// CHECK-NEXT: |       |   | | | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |   | | | | | `-DeclRefExpr {{.*}} <col:19> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | | | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |   | | | |   `-DeclRefExpr {{.*}} <col:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       |   | | | |-UnaryOperator {{.*}} <col:26, col:27>
> 'int' postfix '++'
> +// CHECK-NEXT: |       |   | | | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | | | `-ForStmt {{.*}} <line:12:5, line:13:7>
> +// CHECK-NEXT: |       |   | | |   |-DeclStmt {{.*}} <line:12:10, col:19>
> +// CHECK-NEXT: |       |   | | |   | `-VarDecl {{.*}} <col:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       |   | | |   |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT: |       |   | | |   |-<<<NULL>>>
> +// CHECK-NEXT: |       |   | | |   |-BinaryOperator {{.*}} <col:21,
> col:25> 'int' '<'
> +// CHECK-NEXT: |       |   | | |   | |-ImplicitCastExpr {{.*}} <col:21>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |   | | |   | | `-DeclRefExpr {{.*}} <col:21>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | | |   | `-ImplicitCastExpr {{.*}} <col:25>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |   | | |   |   `-DeclRefExpr {{.*}} <col:25>
> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       |   | | |   |-UnaryOperator {{.*}} <col:28,
> col:29> 'int' postfix '++'
> +// CHECK-NEXT: |       |   | | |   | `-DeclRefExpr {{.*}} <col:28> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | | |   `-NullStmt {{.*}} <line:13:7>
> +// CHECK-NEXT: |       |   | | |-ImplicitParamDecl {{.*}} <line:10:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |   | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |   | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute.c:10:9) *const restrict'
> +// CHECK-NEXT: |       |   | | |-VarDecl {{.*}} <line:11:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       |   | | | `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       |   | | `-VarDecl {{.*}} <line:12:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       |   | |   `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT: |       |   | |-DeclRefExpr {{.*}} <line:11:3> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       |   | `-DeclRefExpr {{.*}} <line:12:25> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       |   |-ImplicitParamDecl {{.*}} <line:10:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute.c:10:9) *const restrict'
> +// CHECK-NEXT: |       |   |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT: |       |   | |-CapturedRecordAttr {{.*}} <<invalid sloc>>
> Implicit
> +// CHECK-NEXT: |       |   | |-FieldDecl {{.*}} <line:11:3> col:3
> implicit 'int'
> +// CHECK-NEXT: |       |   | | `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       |   | `-FieldDecl {{.*}} <line:12:25> col:25
> implicit 'int'
> +// CHECK-NEXT: |       |   |   `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       |   `-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       |     |-ForStmt {{.*}} <line:11:3, line:13:7>
> +// CHECK-NEXT: |       |     | |-DeclStmt {{.*}} <line:11:8, col:17>
> +// CHECK-NEXT: |       |     | | `-VarDecl {{.*}} <col:8, col:16> col:12
> used i 'int' cinit
> +// CHECK-NEXT: |       |     | |   `-IntegerLiteral {{.*}} <col:16> 'int'
> 0
> +// CHECK-NEXT: |       |     | |-<<<NULL>>>
> +// CHECK-NEXT: |       |     | |-BinaryOperator {{.*}} <col:19, col:23>
> 'int' '<'
> +// CHECK-NEXT: |       |     | | |-ImplicitCastExpr {{.*}} <col:19> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       |     | | | `-DeclRefExpr {{.*}} <col:19> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |     | | `-ImplicitCastExpr {{.*}} <col:23> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       |     | |   `-DeclRefExpr {{.*}} <col:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       |     | |-UnaryOperator {{.*}} <col:26, col:27>
> 'int' postfix '++'
> +// CHECK-NEXT: |       |     | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |     | `-ForStmt {{.*}} <line:12:5, line:13:7>
> +// CHECK-NEXT: |       |     |   |-DeclStmt {{.*}} <line:12:10, col:19>
> +// CHECK-NEXT: |       |     |   | `-VarDecl {{.*}} <col:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       |     |   |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT: |       |     |   |-<<<NULL>>>
> +// CHECK-NEXT: |       |     |   |-BinaryOperator {{.*}} <col:21, col:25>
> 'int' '<'
> +// CHECK-NEXT: |       |     |   | |-ImplicitCastExpr {{.*}} <col:21>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |     |   | | `-DeclRefExpr {{.*}} <col:21> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |     |   | `-ImplicitCastExpr {{.*}} <col:25>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |     |   |   `-DeclRefExpr {{.*}} <col:25> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       |     |   |-UnaryOperator {{.*}} <col:28, col:29>
> 'int' postfix '++'
> +// CHECK-NEXT: |       |     |   | `-DeclRefExpr {{.*}} <col:28> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |     |   `-NullStmt {{.*}} <line:13:7>
> +// CHECK-NEXT: |       |     |-ImplicitParamDecl {{.*}} <line:10:9> col:9
> implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |     |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |     |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute.c:10:9) *const restrict'
> +// CHECK-NEXT: |       |     |-VarDecl {{.*}} <line:11:8, col:16> col:12
> used i 'int' cinit
> +// CHECK-NEXT: |       |     | `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       |     `-VarDecl {{.*}} <line:12:10, col:18> col:14
> used i 'int' cinit
> +// CHECK-NEXT: |       |       `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT: |       |-DeclRefExpr {{.*}} <line:11:3> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       `-DeclRefExpr {{.*}} <line:12:25> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |-FunctionDecl {{.*}} <line:16:1, line:21:1> line:16:6
> test_three 'void (int, int)'
> +// CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:17, col:21> col:21 used x 'int'
> +// CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:24, col:28> col:28 used y 'int'
> +// CHECK-NEXT: | `-CompoundStmt {{.*}} <col:31, line:21:1>
> +// CHECK-NEXT: |   `-OMPTargetTeamsDistributeDirective {{.*}} <line:17:9,
> col:48>
> +// CHECK-NEXT: |     |-OMPCollapseClause {{.*}} <col:37, col:47>
> +// CHECK-NEXT: |     | `-ConstantExpr {{.*}} <col:46> 'int'
> +// CHECK-NEXT: |     |   `-IntegerLiteral {{.*}} <col:46> 'int' 1
> +// CHECK-NEXT: |     |-OMPFirstprivateClause {{.*}} <<invalid sloc>>
> <implicit>
> +// CHECK-NEXT: |     | |-DeclRefExpr {{.*}} <line:18:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |     | `-DeclRefExpr {{.*}} <line:19:25> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |     `-CapturedStmt {{.*}} <line:18:3, line:20:7>
> +// CHECK-NEXT: |       |-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc> nothrow
> +// CHECK-NEXT: |       | |-CapturedStmt {{.*}} <line:18:3, line:20:7>
> +// CHECK-NEXT: |       | | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       | | | |-CapturedStmt {{.*}} <line:18:3, line:20:7>
> +// CHECK-NEXT: |       | | | | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       | | | | | |-ForStmt {{.*}} <line:18:3, line:20:7>
> +// CHECK-NEXT: |       | | | | | | |-DeclStmt {{.*}} <line:18:8, col:17>
> +// CHECK-NEXT: |       | | | | | | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | | | | | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       | | | | | | |-<<<NULL>>>
> +// CHECK-NEXT: |       | | | | | | |-BinaryOperator {{.*}} <col:19,
> col:23> 'int' '<'
> +// CHECK-NEXT: |       | | | | | | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | | | | | | `-DeclRefExpr {{.*}} <col:19>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | | | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | | | | |   `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | | | | | |-UnaryOperator {{.*}} <col:26,
> col:27> 'int' postfix '++'
> +// CHECK-NEXT: |       | | | | | | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | | | `-ForStmt {{.*}} <line:19:5, line:20:7>
> +// CHECK-NEXT: |       | | | | | |   |-DeclStmt {{.*}} <line:19:10,
> col:19>
> +// CHECK-NEXT: |       | | | | | |   | `-VarDecl {{.*}} <col:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       | | | | | |   |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT: |       | | | | | |   |-<<<NULL>>>
> +// CHECK-NEXT: |       | | | | | |   |-BinaryOperator {{.*}} <col:21,
> col:25> 'int' '<'
> +// CHECK-NEXT: |       | | | | | |   | |-ImplicitCastExpr {{.*}} <col:21>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | | | |   | | `-DeclRefExpr {{.*}} <col:21>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | | |   | `-ImplicitCastExpr {{.*}} <col:25>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | | | |   |   `-DeclRefExpr {{.*}} <col:25>
> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | | | | | |   |-UnaryOperator {{.*}} <col:28,
> col:29> 'int' postfix '++'
> +// CHECK-NEXT: |       | | | | | |   | `-DeclRefExpr {{.*}} <col:28>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | | |   `-NullStmt {{.*}} <line:20:7>
> +// CHECK-NEXT: |       | | | | | |-ImplicitParamDecl {{.*}} <line:17:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | | | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | | | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute.c:17:9) *const restrict'
> +// CHECK-NEXT: |       | | | | | |-VarDecl {{.*}} <line:18:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | | | | | `-IntegerLiteral {{.*}} <col:16> 'int'
> 0
> +// CHECK-NEXT: |       | | | | | `-VarDecl {{.*}} <line:19:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       | | | | |   `-IntegerLiteral {{.*}} <col:18> 'int'
> 0
> +// CHECK-NEXT: |       | | | | |-DeclRefExpr {{.*}} <line:18:3> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | | | `-DeclRefExpr {{.*}} <line:19:25> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | | | |-ImplicitParamDecl {{.*}} <line:17:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute.c:17:9) *const restrict'
> +// CHECK-NEXT: |       | | | |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT: |       | | | | |-CapturedRecordAttr {{.*}} <<invalid
> sloc>> Implicit
> +// CHECK-NEXT: |       | | | | |-FieldDecl {{.*}} <line:18:3> col:3
> implicit 'int'
> +// CHECK-NEXT: |       | | | | | `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       | | | | `-FieldDecl {{.*}} <line:19:25> col:25
> implicit 'int'
> +// CHECK-NEXT: |       | | | |   `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       | | | `-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       | | |   |-ForStmt {{.*}} <line:18:3, line:20:7>
> +// CHECK-NEXT: |       | | |   | |-DeclStmt {{.*}} <line:18:8, col:17>
> +// CHECK-NEXT: |       | | |   | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | |   | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       | | |   | |-<<<NULL>>>
> +// CHECK-NEXT: |       | | |   | |-BinaryOperator {{.*}} <col:19, col:23>
> 'int' '<'
> +// CHECK-NEXT: |       | | |   | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | |   | | | `-DeclRefExpr {{.*}} <col:19> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | |   | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | |   | |   `-DeclRefExpr {{.*}} <col:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | |   | |-UnaryOperator {{.*}} <col:26, col:27>
> 'int' postfix '++'
> +// CHECK-NEXT: |       | | |   | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | |   | `-ForStmt {{.*}} <line:19:5, line:20:7>
> +// CHECK-NEXT: |       | | |   |   |-DeclStmt {{.*}} <line:19:10, col:19>
> +// CHECK-NEXT: |       | | |   |   | `-VarDecl {{.*}} <col:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       | | |   |   |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT: |       | | |   |   |-<<<NULL>>>
> +// CHECK-NEXT: |       | | |   |   |-BinaryOperator {{.*}} <col:21,
> col:25> 'int' '<'
> +// CHECK-NEXT: |       | | |   |   | |-ImplicitCastExpr {{.*}} <col:21>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | |   |   | | `-DeclRefExpr {{.*}} <col:21>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | |   |   | `-ImplicitCastExpr {{.*}} <col:25>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | |   |   |   `-DeclRefExpr {{.*}} <col:25>
> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | | |   |   |-UnaryOperator {{.*}} <col:28,
> col:29> 'int' postfix '++'
> +// CHECK-NEXT: |       | | |   |   | `-DeclRefExpr {{.*}} <col:28> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | |   |   `-NullStmt {{.*}} <line:20:7>
> +// CHECK-NEXT: |       | | |   |-ImplicitParamDecl {{.*}} <line:17:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | |   |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | |   |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute.c:17:9) *const restrict'
> +// CHECK-NEXT: |       | | |   |-VarDecl {{.*}} <line:18:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | |   | `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       | | |   `-VarDecl {{.*}} <line:19:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       | | |     `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT: |       | | |-DeclRefExpr {{.*}} <line:18:3> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | `-DeclRefExpr {{.*}} <line:19:25> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | |-AlwaysInlineAttr {{.*}} <<invalid sloc>>
> Implicit __forceinline
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <line:17:9> col:9
> implicit .global_tid. 'const int'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .part_id. 'const int *const restrict'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .privates. 'void *const restrict'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .task_t. 'void *const'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute.c:17:9) *const restrict'
> +// CHECK-NEXT: |       | |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT: |       | | |-CapturedRecordAttr {{.*}} <<invalid sloc>>
> Implicit
> +// CHECK-NEXT: |       | | |-FieldDecl {{.*}} <line:18:3> col:3 implicit
> 'int'
> +// CHECK-NEXT: |       | | | `-OMPCaptureKindAttr {{.*}} <<invalid sloc>>
> Implicit 9
> +// CHECK-NEXT: |       | | `-FieldDecl {{.*}} <line:19:25> col:25
> implicit 'int'
> +// CHECK-NEXT: |       | |   `-OMPCaptureKindAttr {{.*}} <<invalid sloc>>
> Implicit 9
> +// CHECK-NEXT: |       | `-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc> nothrow
> +// CHECK-NEXT: |       |   |-CapturedStmt {{.*}} <line:18:3, line:20:7>
> +// CHECK-NEXT: |       |   | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       |   | | |-ForStmt {{.*}} <line:18:3, line:20:7>
> +// CHECK-NEXT: |       |   | | | |-DeclStmt {{.*}} <line:18:8, col:17>
> +// CHECK-NEXT: |       |   | | | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       |   | | | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       |   | | | |-<<<NULL>>>
> +// CHECK-NEXT: |       |   | | | |-BinaryOperator {{.*}} <col:19, col:23>
> 'int' '<'
> +// CHECK-NEXT: |       |   | | | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |   | | | | | `-DeclRefExpr {{.*}} <col:19> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | | | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |   | | | |   `-DeclRefExpr {{.*}} <col:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       |   | | | |-UnaryOperator {{.*}} <col:26, col:27>
> 'int' postfix '++'
> +// CHECK-NEXT: |       |   | | | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | | | `-ForStmt {{.*}} <line:19:5, line:20:7>
> +// CHECK-NEXT: |       |   | | |   |-DeclStmt {{.*}} <line:19:10, col:19>
> +// CHECK-NEXT: |       |   | | |   | `-VarDecl {{.*}} <col:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       |   | | |   |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT: |       |   | | |   |-<<<NULL>>>
> +// CHECK-NEXT: |       |   | | |   |-BinaryOperator {{.*}} <col:21,
> col:25> 'int' '<'
> +// CHECK-NEXT: |       |   | | |   | |-ImplicitCastExpr {{.*}} <col:21>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |   | | |   | | `-DeclRefExpr {{.*}} <col:21>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | | |   | `-ImplicitCastExpr {{.*}} <col:25>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |   | | |   |   `-DeclRefExpr {{.*}} <col:25>
> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       |   | | |   |-UnaryOperator {{.*}} <col:28,
> col:29> 'int' postfix '++'
> +// CHECK-NEXT: |       |   | | |   | `-DeclRefExpr {{.*}} <col:28> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | | |   `-NullStmt {{.*}} <line:20:7>
> +// CHECK-NEXT: |       |   | | |-ImplicitParamDecl {{.*}} <line:17:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |   | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |   | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute.c:17:9) *const restrict'
> +// CHECK-NEXT: |       |   | | |-VarDecl {{.*}} <line:18:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       |   | | | `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       |   | | `-VarDecl {{.*}} <line:19:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       |   | |   `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT: |       |   | |-DeclRefExpr {{.*}} <line:18:3> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       |   | `-DeclRefExpr {{.*}} <line:19:25> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       |   |-ImplicitParamDecl {{.*}} <line:17:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute.c:17:9) *const restrict'
> +// CHECK-NEXT: |       |   |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT: |       |   | |-CapturedRecordAttr {{.*}} <<invalid sloc>>
> Implicit
> +// CHECK-NEXT: |       |   | |-FieldDecl {{.*}} <line:18:3> col:3
> implicit 'int'
> +// CHECK-NEXT: |       |   | | `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       |   | `-FieldDecl {{.*}} <line:19:25> col:25
> implicit 'int'
> +// CHECK-NEXT: |       |   |   `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       |   `-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       |     |-ForStmt {{.*}} <line:18:3, line:20:7>
> +// CHECK-NEXT: |       |     | |-DeclStmt {{.*}} <line:18:8, col:17>
> +// CHECK-NEXT: |       |     | | `-VarDecl {{.*}} <col:8, col:16> col:12
> used i 'int' cinit
> +// CHECK-NEXT: |       |     | |   `-IntegerLiteral {{.*}} <col:16> 'int'
> 0
> +// CHECK-NEXT: |       |     | |-<<<NULL>>>
> +// CHECK-NEXT: |       |     | |-BinaryOperator {{.*}} <col:19, col:23>
> 'int' '<'
> +// CHECK-NEXT: |       |     | | |-ImplicitCastExpr {{.*}} <col:19> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       |     | | | `-DeclRefExpr {{.*}} <col:19> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |     | | `-ImplicitCastExpr {{.*}} <col:23> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       |     | |   `-DeclRefExpr {{.*}} <col:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       |     | |-UnaryOperator {{.*}} <col:26, col:27>
> 'int' postfix '++'
> +// CHECK-NEXT: |       |     | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |     | `-ForStmt {{.*}} <line:19:5, line:20:7>
> +// CHECK-NEXT: |       |     |   |-DeclStmt {{.*}} <line:19:10, col:19>
> +// CHECK-NEXT: |       |     |   | `-VarDecl {{.*}} <col:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       |     |   |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT: |       |     |   |-<<<NULL>>>
> +// CHECK-NEXT: |       |     |   |-BinaryOperator {{.*}} <col:21, col:25>
> 'int' '<'
> +// CHECK-NEXT: |       |     |   | |-ImplicitCastExpr {{.*}} <col:21>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |     |   | | `-DeclRefExpr {{.*}} <col:21> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |     |   | `-ImplicitCastExpr {{.*}} <col:25>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |     |   |   `-DeclRefExpr {{.*}} <col:25> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       |     |   |-UnaryOperator {{.*}} <col:28, col:29>
> 'int' postfix '++'
> +// CHECK-NEXT: |       |     |   | `-DeclRefExpr {{.*}} <col:28> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |     |   `-NullStmt {{.*}} <line:20:7>
> +// CHECK-NEXT: |       |     |-ImplicitParamDecl {{.*}} <line:17:9> col:9
> implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |     |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |     |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute.c:17:9) *const restrict'
> +// CHECK-NEXT: |       |     |-VarDecl {{.*}} <line:18:8, col:16> col:12
> used i 'int' cinit
> +// CHECK-NEXT: |       |     | `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       |     `-VarDecl {{.*}} <line:19:10, col:18> col:14
> used i 'int' cinit
> +// CHECK-NEXT: |       |       `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT: |       |-DeclRefExpr {{.*}} <line:18:3> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       `-DeclRefExpr {{.*}} <line:19:25> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |-FunctionDecl {{.*}} <line:23:1, line:28:1> line:23:6
> test_four 'void (int, int)'
> +// CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:16, col:20> col:20 used x 'int'
> +// CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:23, col:27> col:27 used y 'int'
> +// CHECK-NEXT: | `-CompoundStmt {{.*}} <col:30, line:28:1>
> +// CHECK-NEXT: |   `-OMPTargetTeamsDistributeDirective {{.*}} <line:24:9,
> col:48>
> +// CHECK-NEXT: |     |-OMPCollapseClause {{.*}} <col:37, col:47>
> +// CHECK-NEXT: |     | `-ConstantExpr {{.*}} <col:46> 'int'
> +// CHECK-NEXT: |     |   `-IntegerLiteral {{.*}} <col:46> 'int' 2
> +// CHECK-NEXT: |     |-OMPFirstprivateClause {{.*}} <<invalid sloc>>
> <implicit>
> +// CHECK-NEXT: |     | |-DeclRefExpr {{.*}} <line:25:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |     | `-DeclRefExpr {{.*}} <line:26:25> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |     `-CapturedStmt {{.*}} <line:25:3, line:27:7>
> +// CHECK-NEXT: |       |-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc> nothrow
> +// CHECK-NEXT: |       | |-CapturedStmt {{.*}} <line:25:3, line:27:7>
> +// CHECK-NEXT: |       | | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       | | | |-CapturedStmt {{.*}} <line:25:3, line:27:7>
> +// CHECK-NEXT: |       | | | | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       | | | | | |-ForStmt {{.*}} <line:25:3, line:27:7>
> +// CHECK-NEXT: |       | | | | | | |-DeclStmt {{.*}} <line:25:8, col:17>
> +// CHECK-NEXT: |       | | | | | | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | | | | | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       | | | | | | |-<<<NULL>>>
> +// CHECK-NEXT: |       | | | | | | |-BinaryOperator {{.*}} <col:19,
> col:23> 'int' '<'
> +// CHECK-NEXT: |       | | | | | | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | | | | | | `-DeclRefExpr {{.*}} <col:19>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | | | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | | | | |   `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | | | | | |-UnaryOperator {{.*}} <col:26,
> col:27> 'int' postfix '++'
> +// CHECK-NEXT: |       | | | | | | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | | | `-ForStmt {{.*}} <line:26:5, line:27:7>
> +// CHECK-NEXT: |       | | | | | |   |-DeclStmt {{.*}} <line:26:10,
> col:19>
> +// CHECK-NEXT: |       | | | | | |   | `-VarDecl {{.*}} <col:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       | | | | | |   |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT: |       | | | | | |   |-<<<NULL>>>
> +// CHECK-NEXT: |       | | | | | |   |-BinaryOperator {{.*}} <col:21,
> col:25> 'int' '<'
> +// CHECK-NEXT: |       | | | | | |   | |-ImplicitCastExpr {{.*}} <col:21>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | | | |   | | `-DeclRefExpr {{.*}} <col:21>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | | |   | `-ImplicitCastExpr {{.*}} <col:25>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | | | | |   |   `-DeclRefExpr {{.*}} <col:25>
> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | | | | | |   |-UnaryOperator {{.*}} <col:28,
> col:29> 'int' postfix '++'
> +// CHECK-NEXT: |       | | | | | |   | `-DeclRefExpr {{.*}} <col:28>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | | | | |   `-NullStmt {{.*}} <line:27:7>
> +// CHECK-NEXT: |       | | | | | |-ImplicitParamDecl {{.*}} <line:24:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | | | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | | | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute.c:24:9) *const restrict'
> +// CHECK-NEXT: |       | | | | | |-VarDecl {{.*}} <line:25:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | | | | | `-IntegerLiteral {{.*}} <col:16> 'int'
> 0
> +// CHECK-NEXT: |       | | | | | `-VarDecl {{.*}} <line:26:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       | | | | |   `-IntegerLiteral {{.*}} <col:18> 'int'
> 0
> +// CHECK-NEXT: |       | | | | |-DeclRefExpr {{.*}} <line:25:3> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | | | `-DeclRefExpr {{.*}} <line:26:5> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | | | |-ImplicitParamDecl {{.*}} <line:24:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute.c:24:9) *const restrict'
> +// CHECK-NEXT: |       | | | |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT: |       | | | | |-CapturedRecordAttr {{.*}} <<invalid
> sloc>> Implicit
> +// CHECK-NEXT: |       | | | | |-FieldDecl {{.*}} <line:25:3> col:3
> implicit 'int'
> +// CHECK-NEXT: |       | | | | | `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       | | | | `-FieldDecl {{.*}} <line:26:5> col:5
> implicit 'int'
> +// CHECK-NEXT: |       | | | |   `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       | | | `-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       | | |   |-ForStmt {{.*}} <line:25:3, line:27:7>
> +// CHECK-NEXT: |       | | |   | |-DeclStmt {{.*}} <line:25:8, col:17>
> +// CHECK-NEXT: |       | | |   | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | |   | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       | | |   | |-<<<NULL>>>
> +// CHECK-NEXT: |       | | |   | |-BinaryOperator {{.*}} <col:19, col:23>
> 'int' '<'
> +// CHECK-NEXT: |       | | |   | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | |   | | | `-DeclRefExpr {{.*}} <col:19> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | |   | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | |   | |   `-DeclRefExpr {{.*}} <col:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | |   | |-UnaryOperator {{.*}} <col:26, col:27>
> 'int' postfix '++'
> +// CHECK-NEXT: |       | | |   | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | |   | `-ForStmt {{.*}} <line:26:5, line:27:7>
> +// CHECK-NEXT: |       | | |   |   |-DeclStmt {{.*}} <line:26:10, col:19>
> +// CHECK-NEXT: |       | | |   |   | `-VarDecl {{.*}} <col:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       | | |   |   |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT: |       | | |   |   |-<<<NULL>>>
> +// CHECK-NEXT: |       | | |   |   |-BinaryOperator {{.*}} <col:21,
> col:25> 'int' '<'
> +// CHECK-NEXT: |       | | |   |   | |-ImplicitCastExpr {{.*}} <col:21>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | |   |   | | `-DeclRefExpr {{.*}} <col:21>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | |   |   | `-ImplicitCastExpr {{.*}} <col:25>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       | | |   |   |   `-DeclRefExpr {{.*}} <col:25>
> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | | |   |   |-UnaryOperator {{.*}} <col:28,
> col:29> 'int' postfix '++'
> +// CHECK-NEXT: |       | | |   |   | `-DeclRefExpr {{.*}} <col:28> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       | | |   |   `-NullStmt {{.*}} <line:27:7>
> +// CHECK-NEXT: |       | | |   |-ImplicitParamDecl {{.*}} <line:24:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | |   |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       | | |   |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute.c:24:9) *const restrict'
> +// CHECK-NEXT: |       | | |   |-VarDecl {{.*}} <line:25:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       | | |   | `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       | | |   `-VarDecl {{.*}} <line:26:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       | | |     `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT: |       | | |-DeclRefExpr {{.*}} <line:25:3> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       | | `-DeclRefExpr {{.*}} <line:26:5> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       | |-AlwaysInlineAttr {{.*}} <<invalid sloc>>
> Implicit __forceinline
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <line:24:9> col:9
> implicit .global_tid. 'const int'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .part_id. 'const int *const restrict'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .privates. 'void *const restrict'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .task_t. 'void *const'
> +// CHECK-NEXT: |       | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute.c:24:9) *const restrict'
> +// CHECK-NEXT: |       | |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT: |       | | |-CapturedRecordAttr {{.*}} <<invalid sloc>>
> Implicit
> +// CHECK-NEXT: |       | | |-FieldDecl {{.*}} <line:25:3> col:3 implicit
> 'int'
> +// CHECK-NEXT: |       | | | `-OMPCaptureKindAttr {{.*}} <<invalid sloc>>
> Implicit 9
> +// CHECK-NEXT: |       | | `-FieldDecl {{.*}} <line:26:5> col:5 implicit
> 'int'
> +// CHECK-NEXT: |       | |   `-OMPCaptureKindAttr {{.*}} <<invalid sloc>>
> Implicit 9
> +// CHECK-NEXT: |       | `-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc> nothrow
> +// CHECK-NEXT: |       |   |-CapturedStmt {{.*}} <line:25:3, line:27:7>
> +// CHECK-NEXT: |       |   | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       |   | | |-ForStmt {{.*}} <line:25:3, line:27:7>
> +// CHECK-NEXT: |       |   | | | |-DeclStmt {{.*}} <line:25:8, col:17>
> +// CHECK-NEXT: |       |   | | | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       |   | | | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT: |       |   | | | |-<<<NULL>>>
> +// CHECK-NEXT: |       |   | | | |-BinaryOperator {{.*}} <col:19, col:23>
> 'int' '<'
> +// CHECK-NEXT: |       |   | | | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |   | | | | | `-DeclRefExpr {{.*}} <col:19> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | | | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |   | | | |   `-DeclRefExpr {{.*}} <col:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       |   | | | |-UnaryOperator {{.*}} <col:26, col:27>
> 'int' postfix '++'
> +// CHECK-NEXT: |       |   | | | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | | | `-ForStmt {{.*}} <line:26:5, line:27:7>
> +// CHECK-NEXT: |       |   | | |   |-DeclStmt {{.*}} <line:26:10, col:19>
> +// CHECK-NEXT: |       |   | | |   | `-VarDecl {{.*}} <col:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       |   | | |   |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT: |       |   | | |   |-<<<NULL>>>
> +// CHECK-NEXT: |       |   | | |   |-BinaryOperator {{.*}} <col:21,
> col:25> 'int' '<'
> +// CHECK-NEXT: |       |   | | |   | |-ImplicitCastExpr {{.*}} <col:21>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |   | | |   | | `-DeclRefExpr {{.*}} <col:21>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | | |   | `-ImplicitCastExpr {{.*}} <col:25>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |   | | |   |   `-DeclRefExpr {{.*}} <col:25>
> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       |   | | |   |-UnaryOperator {{.*}} <col:28,
> col:29> 'int' postfix '++'
> +// CHECK-NEXT: |       |   | | |   | `-DeclRefExpr {{.*}} <col:28> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |   | | |   `-NullStmt {{.*}} <line:27:7>
> +// CHECK-NEXT: |       |   | | |-ImplicitParamDecl {{.*}} <line:24:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |   | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |   | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute.c:24:9) *const restrict'
> +// CHECK-NEXT: |       |   | | |-VarDecl {{.*}} <line:25:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT: |       |   | | | `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       |   | | `-VarDecl {{.*}} <line:26:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       |   | |   `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT: |       |   | |-DeclRefExpr {{.*}} <line:25:3> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       |   | `-DeclRefExpr {{.*}} <line:26:5> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       |   |-ImplicitParamDecl {{.*}} <line:24:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute.c:24:9) *const restrict'
> +// CHECK-NEXT: |       |   |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT: |       |   | |-CapturedRecordAttr {{.*}} <<invalid sloc>>
> Implicit
> +// CHECK-NEXT: |       |   | |-FieldDecl {{.*}} <line:25:3> col:3
> implicit 'int'
> +// CHECK-NEXT: |       |   | | `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       |   | `-FieldDecl {{.*}} <line:26:5> col:5
> implicit 'int'
> +// CHECK-NEXT: |       |   |   `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT: |       |   `-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT: |       |     |-ForStmt {{.*}} <line:25:3, line:27:7>
> +// CHECK-NEXT: |       |     | |-DeclStmt {{.*}} <line:25:8, col:17>
> +// CHECK-NEXT: |       |     | | `-VarDecl {{.*}} <col:8, col:16> col:12
> used i 'int' cinit
> +// CHECK-NEXT: |       |     | |   `-IntegerLiteral {{.*}} <col:16> 'int'
> 0
> +// CHECK-NEXT: |       |     | |-<<<NULL>>>
> +// CHECK-NEXT: |       |     | |-BinaryOperator {{.*}} <col:19, col:23>
> 'int' '<'
> +// CHECK-NEXT: |       |     | | |-ImplicitCastExpr {{.*}} <col:19> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       |     | | | `-DeclRefExpr {{.*}} <col:19> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |     | | `-ImplicitCastExpr {{.*}} <col:23> 'int'
> <LValueToRValue>
> +// CHECK-NEXT: |       |     | |   `-DeclRefExpr {{.*}} <col:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       |     | |-UnaryOperator {{.*}} <col:26, col:27>
> 'int' postfix '++'
> +// CHECK-NEXT: |       |     | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |     | `-ForStmt {{.*}} <line:26:5, line:27:7>
> +// CHECK-NEXT: |       |     |   |-DeclStmt {{.*}} <line:26:10, col:19>
> +// CHECK-NEXT: |       |     |   | `-VarDecl {{.*}} <col:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT: |       |     |   |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT: |       |     |   |-<<<NULL>>>
> +// CHECK-NEXT: |       |     |   |-BinaryOperator {{.*}} <col:21, col:25>
> 'int' '<'
> +// CHECK-NEXT: |       |     |   | |-ImplicitCastExpr {{.*}} <col:21>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |     |   | | `-DeclRefExpr {{.*}} <col:21> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |     |   | `-ImplicitCastExpr {{.*}} <col:25>
> 'int' <LValueToRValue>
> +// CHECK-NEXT: |       |     |   |   `-DeclRefExpr {{.*}} <col:25> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: |       |     |   |-UnaryOperator {{.*}} <col:28, col:29>
> 'int' postfix '++'
> +// CHECK-NEXT: |       |     |   | `-DeclRefExpr {{.*}} <col:28> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT: |       |     |   `-NullStmt {{.*}} <line:27:7>
> +// CHECK-NEXT: |       |     |-ImplicitParamDecl {{.*}} <line:24:9> col:9
> implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |     |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT: |       |     |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute.c:24:9) *const restrict'
> +// CHECK-NEXT: |       |     |-VarDecl {{.*}} <line:25:8, col:16> col:12
> used i 'int' cinit
> +// CHECK-NEXT: |       |     | `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT: |       |     `-VarDecl {{.*}} <line:26:10, col:18> col:14
> used i 'int' cinit
> +// CHECK-NEXT: |       |       `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT: |       |-DeclRefExpr {{.*}} <line:25:3> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT: |       `-DeclRefExpr {{.*}} <line:26:5> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT: `-FunctionDecl {{.*}} <line:30:1, line:36:1> line:30:6
> test_five 'void (int, int, int)'
> +// CHECK-NEXT:   |-ParmVarDecl {{.*}} <col:16, col:20> col:20 used x 'int'
> +// CHECK-NEXT:   |-ParmVarDecl {{.*}} <col:23, col:27> col:27 used y 'int'
> +// CHECK-NEXT:   |-ParmVarDecl {{.*}} <col:30, col:34> col:34 used z 'int'
> +// CHECK-NEXT:   `-CompoundStmt {{.*}} <col:37, line:36:1>
> +// CHECK-NEXT:     `-OMPTargetTeamsDistributeDirective {{.*}} <line:31:9,
> col:48>
> +// CHECK-NEXT:       |-OMPCollapseClause {{.*}} <col:37, col:47>
> +// CHECK-NEXT:       | `-ConstantExpr {{.*}} <col:46> 'int'
> +// CHECK-NEXT:       |   `-IntegerLiteral {{.*}} <col:46> 'int' 2
> +// CHECK-NEXT:       |-OMPFirstprivateClause {{.*}} <<invalid sloc>>
> <implicit>
> +// CHECK-NEXT:       | |-DeclRefExpr {{.*}} <line:32:23> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT:       | |-DeclRefExpr {{.*}} <line:33:25> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT:       | `-DeclRefExpr {{.*}} <line:34:27> 'int' lvalue
> ParmVar {{.*}} 'z' 'int'
> +// CHECK-NEXT:       `-CapturedStmt {{.*}} <line:32:3, line:35:9>
> +// CHECK-NEXT:         |-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc> nothrow
> +// CHECK-NEXT:         | |-CapturedStmt {{.*}} <line:32:3, line:35:9>
> +// CHECK-NEXT:         | | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT:         | | | |-CapturedStmt {{.*}} <line:32:3, line:35:9>
> +// CHECK-NEXT:         | | | | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT:         | | | | | |-ForStmt {{.*}} <line:32:3, line:35:9>
> +// CHECK-NEXT:         | | | | | | |-DeclStmt {{.*}} <line:32:8, col:17>
> +// CHECK-NEXT:         | | | | | | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT:         | | | | | | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT:         | | | | | | |-<<<NULL>>>
> +// CHECK-NEXT:         | | | | | | |-BinaryOperator {{.*}} <col:19,
> col:23> 'int' '<'
> +// CHECK-NEXT:         | | | | | | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         | | | | | | | | `-DeclRefExpr {{.*}} <col:19>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | | | | | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         | | | | | | |   `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT:         | | | | | | |-UnaryOperator {{.*}} <col:26,
> col:27> 'int' postfix '++'
> +// CHECK-NEXT:         | | | | | | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | | | | | `-ForStmt {{.*}} <line:33:5, line:35:9>
> +// CHECK-NEXT:         | | | | | |   |-DeclStmt {{.*}} <line:33:10,
> col:19>
> +// CHECK-NEXT:         | | | | | |   | `-VarDecl {{.*}} <col:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT:         | | | | | |   |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT:         | | | | | |   |-<<<NULL>>>
> +// CHECK-NEXT:         | | | | | |   |-BinaryOperator {{.*}} <col:21,
> col:25> 'int' '<'
> +// CHECK-NEXT:         | | | | | |   | |-ImplicitCastExpr {{.*}} <col:21>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         | | | | | |   | | `-DeclRefExpr {{.*}} <col:21>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | | | | |   | `-ImplicitCastExpr {{.*}} <col:25>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         | | | | | |   |   `-DeclRefExpr {{.*}} <col:25>
> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT:         | | | | | |   |-UnaryOperator {{.*}} <col:28,
> col:29> 'int' postfix '++'
> +// CHECK-NEXT:         | | | | | |   | `-DeclRefExpr {{.*}} <col:28>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | | | | |   `-ForStmt {{.*}} <line:34:7,
> line:35:9>
> +// CHECK-NEXT:         | | | | | |     |-DeclStmt {{.*}} <line:34:12,
> col:21>
> +// CHECK-NEXT:         | | | | | |     | `-VarDecl {{.*}} <col:12,
> col:20> col:16 used i 'int' cinit
> +// CHECK-NEXT:         | | | | | |     |   `-IntegerLiteral {{.*}}
> <col:20> 'int' 0
> +// CHECK-NEXT:         | | | | | |     |-<<<NULL>>>
> +// CHECK-NEXT:         | | | | | |     |-BinaryOperator {{.*}} <col:23,
> col:27> 'int' '<'
> +// CHECK-NEXT:         | | | | | |     | |-ImplicitCastExpr {{.*}}
> <col:23> 'int' <LValueToRValue>
> +// CHECK-NEXT:         | | | | | |     | | `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | | | | |     | `-ImplicitCastExpr {{.*}}
> <col:27> 'int' <LValueToRValue>
> +// CHECK-NEXT:         | | | | | |     |   `-DeclRefExpr {{.*}} <col:27>
> 'int' lvalue ParmVar {{.*}} 'z' 'int'
> +// CHECK-NEXT:         | | | | | |     |-UnaryOperator {{.*}} <col:30,
> col:31> 'int' postfix '++'
> +// CHECK-NEXT:         | | | | | |     | `-DeclRefExpr {{.*}} <col:30>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | | | | |     `-NullStmt {{.*}} <line:35:9>
> +// CHECK-NEXT:         | | | | | |-ImplicitParamDecl {{.*}} <line:31:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT:         | | | | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT:         | | | | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute.c:31:9) *const restrict'
> +// CHECK-NEXT:         | | | | | |-VarDecl {{.*}} <line:32:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT:         | | | | | | `-IntegerLiteral {{.*}} <col:16> 'int'
> 0
> +// CHECK-NEXT:         | | | | | |-VarDecl {{.*}} <line:33:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT:         | | | | | | `-IntegerLiteral {{.*}} <col:18> 'int'
> 0
> +// CHECK-NEXT:         | | | | | `-VarDecl {{.*}} <line:34:12, col:20>
> col:16 used i 'int' cinit
> +// CHECK-NEXT:         | | | | |   `-IntegerLiteral {{.*}} <col:20> 'int'
> 0
> +// CHECK-NEXT:         | | | | |-DeclRefExpr {{.*}} <line:32:3> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT:         | | | | |-DeclRefExpr {{.*}} <line:33:5> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT:         | | | | `-DeclRefExpr {{.*}} <line:34:27> 'int'
> lvalue ParmVar {{.*}} 'z' 'int'
> +// CHECK-NEXT:         | | | |-ImplicitParamDecl {{.*}} <line:31:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute.c:31:9) *const restrict'
> +// CHECK-NEXT:         | | | |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT:         | | | | |-CapturedRecordAttr {{.*}} <<invalid
> sloc>> Implicit
> +// CHECK-NEXT:         | | | | |-FieldDecl {{.*}} <line:32:3> col:3
> implicit 'int'
> +// CHECK-NEXT:         | | | | | `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT:         | | | | |-FieldDecl {{.*}} <line:33:5> col:5
> implicit 'int'
> +// CHECK-NEXT:         | | | | | `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT:         | | | | `-FieldDecl {{.*}} <line:34:27> col:27
> implicit 'int'
> +// CHECK-NEXT:         | | | |   `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT:         | | | `-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT:         | | |   |-ForStmt {{.*}} <line:32:3, line:35:9>
> +// CHECK-NEXT:         | | |   | |-DeclStmt {{.*}} <line:32:8, col:17>
> +// CHECK-NEXT:         | | |   | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT:         | | |   | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT:         | | |   | |-<<<NULL>>>
> +// CHECK-NEXT:         | | |   | |-BinaryOperator {{.*}} <col:19, col:23>
> 'int' '<'
> +// CHECK-NEXT:         | | |   | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         | | |   | | | `-DeclRefExpr {{.*}} <col:19> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | |   | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         | | |   | |   `-DeclRefExpr {{.*}} <col:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT:         | | |   | |-UnaryOperator {{.*}} <col:26, col:27>
> 'int' postfix '++'
> +// CHECK-NEXT:         | | |   | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | |   | `-ForStmt {{.*}} <line:33:5, line:35:9>
> +// CHECK-NEXT:         | | |   |   |-DeclStmt {{.*}} <line:33:10, col:19>
> +// CHECK-NEXT:         | | |   |   | `-VarDecl {{.*}} <col:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT:         | | |   |   |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT:         | | |   |   |-<<<NULL>>>
> +// CHECK-NEXT:         | | |   |   |-BinaryOperator {{.*}} <col:21,
> col:25> 'int' '<'
> +// CHECK-NEXT:         | | |   |   | |-ImplicitCastExpr {{.*}} <col:21>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         | | |   |   | | `-DeclRefExpr {{.*}} <col:21>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | |   |   | `-ImplicitCastExpr {{.*}} <col:25>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         | | |   |   |   `-DeclRefExpr {{.*}} <col:25>
> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT:         | | |   |   |-UnaryOperator {{.*}} <col:28,
> col:29> 'int' postfix '++'
> +// CHECK-NEXT:         | | |   |   | `-DeclRefExpr {{.*}} <col:28> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | |   |   `-ForStmt {{.*}} <line:34:7, line:35:9>
> +// CHECK-NEXT:         | | |   |     |-DeclStmt {{.*}} <line:34:12,
> col:21>
> +// CHECK-NEXT:         | | |   |     | `-VarDecl {{.*}} <col:12, col:20>
> col:16 used i 'int' cinit
> +// CHECK-NEXT:         | | |   |     |   `-IntegerLiteral {{.*}} <col:20>
> 'int' 0
> +// CHECK-NEXT:         | | |   |     |-<<<NULL>>>
> +// CHECK-NEXT:         | | |   |     |-BinaryOperator {{.*}} <col:23,
> col:27> 'int' '<'
> +// CHECK-NEXT:         | | |   |     | |-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         | | |   |     | | `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | |   |     | `-ImplicitCastExpr {{.*}} <col:27>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         | | |   |     |   `-DeclRefExpr {{.*}} <col:27>
> 'int' lvalue ParmVar {{.*}} 'z' 'int'
> +// CHECK-NEXT:         | | |   |     |-UnaryOperator {{.*}} <col:30,
> col:31> 'int' postfix '++'
> +// CHECK-NEXT:         | | |   |     | `-DeclRefExpr {{.*}} <col:30>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         | | |   |     `-NullStmt {{.*}} <line:35:9>
> +// CHECK-NEXT:         | | |   |-ImplicitParamDecl {{.*}} <line:31:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT:         | | |   |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT:         | | |   |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute.c:31:9) *const restrict'
> +// CHECK-NEXT:         | | |   |-VarDecl {{.*}} <line:32:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT:         | | |   | `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT:         | | |   |-VarDecl {{.*}} <line:33:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT:         | | |   | `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT:         | | |   `-VarDecl {{.*}} <line:34:12, col:20>
> col:16 used i 'int' cinit
> +// CHECK-NEXT:         | | |     `-IntegerLiteral {{.*}} <col:20> 'int' 0
> +// CHECK-NEXT:         | | |-DeclRefExpr {{.*}} <line:32:3> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT:         | | |-DeclRefExpr {{.*}} <line:33:5> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT:         | | `-DeclRefExpr {{.*}} <line:34:27> 'int' lvalue
> ParmVar {{.*}} 'z' 'int'
> +// CHECK-NEXT:         | |-AlwaysInlineAttr {{.*}} <<invalid sloc>>
> Implicit __forceinline
> +// CHECK-NEXT:         | |-ImplicitParamDecl {{.*}} <line:31:9> col:9
> implicit .global_tid. 'const int'
> +// CHECK-NEXT:         | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .part_id. 'const int *const restrict'
> +// CHECK-NEXT:         | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .privates. 'void *const restrict'
> +// CHECK-NEXT:         | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)'
> +// CHECK-NEXT:         | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .task_t. 'void *const'
> +// CHECK-NEXT:         | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute.c:31:9) *const restrict'
> +// CHECK-NEXT:         | |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT:         | | |-CapturedRecordAttr {{.*}} <<invalid sloc>>
> Implicit
> +// CHECK-NEXT:         | | |-FieldDecl {{.*}} <line:32:3> col:3 implicit
> 'int'
> +// CHECK-NEXT:         | | | `-OMPCaptureKindAttr {{.*}} <<invalid sloc>>
> Implicit 9
> +// CHECK-NEXT:         | | |-FieldDecl {{.*}} <line:33:5> col:5 implicit
> 'int'
> +// CHECK-NEXT:         | | | `-OMPCaptureKindAttr {{.*}} <<invalid sloc>>
> Implicit 9
> +// CHECK-NEXT:         | | `-FieldDecl {{.*}} <line:34:27> col:27
> implicit 'int'
> +// CHECK-NEXT:         | |   `-OMPCaptureKindAttr {{.*}} <<invalid sloc>>
> Implicit 9
> +// CHECK-NEXT:         | `-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc> nothrow
> +// CHECK-NEXT:         |   |-CapturedStmt {{.*}} <line:32:3, line:35:9>
> +// CHECK-NEXT:         |   | |-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT:         |   | | |-ForStmt {{.*}} <line:32:3, line:35:9>
> +// CHECK-NEXT:         |   | | | |-DeclStmt {{.*}} <line:32:8, col:17>
> +// CHECK-NEXT:         |   | | | | `-VarDecl {{.*}} <col:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT:         |   | | | |   `-IntegerLiteral {{.*}} <col:16>
> 'int' 0
> +// CHECK-NEXT:         |   | | | |-<<<NULL>>>
> +// CHECK-NEXT:         |   | | | |-BinaryOperator {{.*}} <col:19, col:23>
> 'int' '<'
> +// CHECK-NEXT:         |   | | | | |-ImplicitCastExpr {{.*}} <col:19>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         |   | | | | | `-DeclRefExpr {{.*}} <col:19> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         |   | | | | `-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         |   | | | |   `-DeclRefExpr {{.*}} <col:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT:         |   | | | |-UnaryOperator {{.*}} <col:26, col:27>
> 'int' postfix '++'
> +// CHECK-NEXT:         |   | | | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         |   | | | `-ForStmt {{.*}} <line:33:5, line:35:9>
> +// CHECK-NEXT:         |   | | |   |-DeclStmt {{.*}} <line:33:10, col:19>
> +// CHECK-NEXT:         |   | | |   | `-VarDecl {{.*}} <col:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT:         |   | | |   |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT:         |   | | |   |-<<<NULL>>>
> +// CHECK-NEXT:         |   | | |   |-BinaryOperator {{.*}} <col:21,
> col:25> 'int' '<'
> +// CHECK-NEXT:         |   | | |   | |-ImplicitCastExpr {{.*}} <col:21>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         |   | | |   | | `-DeclRefExpr {{.*}} <col:21>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         |   | | |   | `-ImplicitCastExpr {{.*}} <col:25>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         |   | | |   |   `-DeclRefExpr {{.*}} <col:25>
> 'int' lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT:         |   | | |   |-UnaryOperator {{.*}} <col:28,
> col:29> 'int' postfix '++'
> +// CHECK-NEXT:         |   | | |   | `-DeclRefExpr {{.*}} <col:28> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         |   | | |   `-ForStmt {{.*}} <line:34:7, line:35:9>
> +// CHECK-NEXT:         |   | | |     |-DeclStmt {{.*}} <line:34:12,
> col:21>
> +// CHECK-NEXT:         |   | | |     | `-VarDecl {{.*}} <col:12, col:20>
> col:16 used i 'int' cinit
> +// CHECK-NEXT:         |   | | |     |   `-IntegerLiteral {{.*}} <col:20>
> 'int' 0
> +// CHECK-NEXT:         |   | | |     |-<<<NULL>>>
> +// CHECK-NEXT:         |   | | |     |-BinaryOperator {{.*}} <col:23,
> col:27> 'int' '<'
> +// CHECK-NEXT:         |   | | |     | |-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         |   | | |     | | `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         |   | | |     | `-ImplicitCastExpr {{.*}} <col:27>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         |   | | |     |   `-DeclRefExpr {{.*}} <col:27>
> 'int' lvalue ParmVar {{.*}} 'z' 'int'
> +// CHECK-NEXT:         |   | | |     |-UnaryOperator {{.*}} <col:30,
> col:31> 'int' postfix '++'
> +// CHECK-NEXT:         |   | | |     | `-DeclRefExpr {{.*}} <col:30>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         |   | | |     `-NullStmt {{.*}} <line:35:9>
> +// CHECK-NEXT:         |   | | |-ImplicitParamDecl {{.*}} <line:31:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT:         |   | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT:         |   | | |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute.c:31:9) *const restrict'
> +// CHECK-NEXT:         |   | | |-VarDecl {{.*}} <line:32:8, col:16>
> col:12 used i 'int' cinit
> +// CHECK-NEXT:         |   | | | `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT:         |   | | |-VarDecl {{.*}} <line:33:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT:         |   | | | `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT:         |   | | `-VarDecl {{.*}} <line:34:12, col:20>
> col:16 used i 'int' cinit
> +// CHECK-NEXT:         |   | |   `-IntegerLiteral {{.*}} <col:20> 'int' 0
> +// CHECK-NEXT:         |   | |-DeclRefExpr {{.*}} <line:32:3> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT:         |   | |-DeclRefExpr {{.*}} <line:33:5> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT:         |   | `-DeclRefExpr {{.*}} <line:34:27> 'int'
> lvalue ParmVar {{.*}} 'z' 'int'
> +// CHECK-NEXT:         |   |-ImplicitParamDecl {{.*}} <line:31:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute.c:31:9) *const restrict'
> +// CHECK-NEXT:         |   |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT:         |   | |-CapturedRecordAttr {{.*}} <<invalid sloc>>
> Implicit
> +// CHECK-NEXT:         |   | |-FieldDecl {{.*}} <line:32:3> col:3
> implicit 'int'
> +// CHECK-NEXT:         |   | | `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT:         |   | |-FieldDecl {{.*}} <line:33:5> col:5
> implicit 'int'
> +// CHECK-NEXT:         |   | | `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT:         |   | `-FieldDecl {{.*}} <line:34:27> col:27
> implicit 'int'
> +// CHECK-NEXT:         |   |   `-OMPCaptureKindAttr {{.*}} <<invalid
> sloc>> Implicit 9
> +// CHECK-NEXT:         |   `-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT:         |     |-ForStmt {{.*}} <line:32:3, line:35:9>
> +// CHECK-NEXT:         |     | |-DeclStmt {{.*}} <line:32:8, col:17>
> +// CHECK-NEXT:         |     | | `-VarDecl {{.*}} <col:8, col:16> col:12
> used i 'int' cinit
> +// CHECK-NEXT:         |     | |   `-IntegerLiteral {{.*}} <col:16> 'int'
> 0
> +// CHECK-NEXT:         |     | |-<<<NULL>>>
> +// CHECK-NEXT:         |     | |-BinaryOperator {{.*}} <col:19, col:23>
> 'int' '<'
> +// CHECK-NEXT:         |     | | |-ImplicitCastExpr {{.*}} <col:19> 'int'
> <LValueToRValue>
> +// CHECK-NEXT:         |     | | | `-DeclRefExpr {{.*}} <col:19> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         |     | | `-ImplicitCastExpr {{.*}} <col:23> 'int'
> <LValueToRValue>
> +// CHECK-NEXT:         |     | |   `-DeclRefExpr {{.*}} <col:23> 'int'
> lvalue ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT:         |     | |-UnaryOperator {{.*}} <col:26, col:27>
> 'int' postfix '++'
> +// CHECK-NEXT:         |     | | `-DeclRefExpr {{.*}} <col:26> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         |     | `-ForStmt {{.*}} <line:33:5, line:35:9>
> +// CHECK-NEXT:         |     |   |-DeclStmt {{.*}} <line:33:10, col:19>
> +// CHECK-NEXT:         |     |   | `-VarDecl {{.*}} <col:10, col:18>
> col:14 used i 'int' cinit
> +// CHECK-NEXT:         |     |   |   `-IntegerLiteral {{.*}} <col:18>
> 'int' 0
> +// CHECK-NEXT:         |     |   |-<<<NULL>>>
> +// CHECK-NEXT:         |     |   |-BinaryOperator {{.*}} <col:21, col:25>
> 'int' '<'
> +// CHECK-NEXT:         |     |   | |-ImplicitCastExpr {{.*}} <col:21>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         |     |   | | `-DeclRefExpr {{.*}} <col:21> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         |     |   | `-ImplicitCastExpr {{.*}} <col:25>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         |     |   |   `-DeclRefExpr {{.*}} <col:25> 'int'
> lvalue ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT:         |     |   |-UnaryOperator {{.*}} <col:28, col:29>
> 'int' postfix '++'
> +// CHECK-NEXT:         |     |   | `-DeclRefExpr {{.*}} <col:28> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         |     |   `-ForStmt {{.*}} <line:34:7, line:35:9>
> +// CHECK-NEXT:         |     |     |-DeclStmt {{.*}} <line:34:12, col:21>
> +// CHECK-NEXT:         |     |     | `-VarDecl {{.*}} <col:12, col:20>
> col:16 used i 'int' cinit
> +// CHECK-NEXT:         |     |     |   `-IntegerLiteral {{.*}} <col:20>
> 'int' 0
> +// CHECK-NEXT:         |     |     |-<<<NULL>>>
> +// CHECK-NEXT:         |     |     |-BinaryOperator {{.*}} <col:23,
> col:27> 'int' '<'
> +// CHECK-NEXT:         |     |     | |-ImplicitCastExpr {{.*}} <col:23>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         |     |     | | `-DeclRefExpr {{.*}} <col:23>
> 'int' lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         |     |     | `-ImplicitCastExpr {{.*}} <col:27>
> 'int' <LValueToRValue>
> +// CHECK-NEXT:         |     |     |   `-DeclRefExpr {{.*}} <col:27>
> 'int' lvalue ParmVar {{.*}} 'z' 'int'
> +// CHECK-NEXT:         |     |     |-UnaryOperator {{.*}} <col:30,
> col:31> 'int' postfix '++'
> +// CHECK-NEXT:         |     |     | `-DeclRefExpr {{.*}} <col:30> 'int'
> lvalue Var {{.*}} 'i' 'int'
> +// CHECK-NEXT:         |     |     `-NullStmt {{.*}} <line:35:9>
> +// CHECK-NEXT:         |     |-ImplicitParamDecl {{.*}} <line:31:9> col:9
> implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT:         |     |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT:         |     |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams-distribute.c:31:9) *const restrict'
> +// CHECK-NEXT:         |     |-VarDecl {{.*}} <line:32:8, col:16> col:12
> used i 'int' cinit
> +// CHECK-NEXT:         |     | `-IntegerLiteral {{.*}} <col:16> 'int' 0
> +// CHECK-NEXT:         |     |-VarDecl {{.*}} <line:33:10, col:18> col:14
> used i 'int' cinit
> +// CHECK-NEXT:         |     | `-IntegerLiteral {{.*}} <col:18> 'int' 0
> +// CHECK-NEXT:         |     `-VarDecl {{.*}} <line:34:12, col:20> col:16
> used i 'int' cinit
> +// CHECK-NEXT:         |       `-IntegerLiteral {{.*}} <col:20> 'int' 0
> +// CHECK-NEXT:         |-DeclRefExpr {{.*}} <line:32:3> 'int' lvalue
> ParmVar {{.*}} 'x' 'int'
> +// CHECK-NEXT:         |-DeclRefExpr {{.*}} <line:33:5> 'int' lvalue
> ParmVar {{.*}} 'y' 'int'
> +// CHECK-NEXT:         `-DeclRefExpr {{.*}} <line:34:27> 'int' lvalue
> ParmVar {{.*}} 'z' 'int'
>
> Added: cfe/trunk/test/AST/ast-dump-openmp-target-teams.c
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/test/AST/ast-dump-openmp-target-teams.c?rev=356569&view=auto
>
> ==============================================================================
> --- cfe/trunk/test/AST/ast-dump-openmp-target-teams.c (added)
> +++ cfe/trunk/test/AST/ast-dump-openmp-target-teams.c Wed Mar 20 09:31:47
> 2019
> @@ -0,0 +1,53 @@
> +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s |
> FileCheck --match-full-lines -implicit-check-not=openmp_structured_block %s
> +
> +void test() {
> +#pragma omp target teams
> +  ;
> +}
> +
> +// CHECK: TranslationUnitDecl {{.*}} <<invalid sloc>> <invalid sloc>
> +// CHECK: `-FunctionDecl {{.*}}
> <{{.*}}ast-dump-openmp-target-teams.c:3:1, line:6:1> line:3:6 test 'void ()'
> +// CHECK-NEXT:   `-CompoundStmt {{.*}} <col:13, line:6:1>
> +// CHECK-NEXT:     `-OMPTargetTeamsDirective {{.*}} <line:4:9, col:25>
> +// CHECK-NEXT:       `-CapturedStmt {{.*}} <line:5:3>
> +// CHECK-NEXT:         `-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc> nothrow
> +// CHECK-NEXT:           |-CapturedStmt {{.*}} <col:3>
> +// CHECK-NEXT:           | `-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT:           |   |-CapturedStmt {{.*}} <col:3>
> +// CHECK-NEXT:           |   | `-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT:           |   |   |-NullStmt {{.*}} <col:3>
> +// CHECK-NEXT:           |   |   |-ImplicitParamDecl {{.*}} <line:4:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT:           |   |   |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT:           |   |   `-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams.c:4:9) *const restrict'
> +// CHECK-NEXT:           |   |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams.c:4:9) *const restrict'
> +// CHECK-NEXT:           |   |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT:           |   | `-CapturedRecordAttr {{.*}} <<invalid
> sloc>> Implicit
> +// CHECK-NEXT:           |   `-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT:           |     |-NullStmt {{.*}} <line:5:3>
> +// CHECK-NEXT:           |     |-ImplicitParamDecl {{.*}} <line:4:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT:           |     |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT:           |     `-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams.c:4:9) *const restrict'
> +// CHECK-NEXT:           |-AlwaysInlineAttr {{.*}} <<invalid sloc>>
> Implicit __forceinline
> +// CHECK-NEXT:           |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .global_tid. 'const int'
> +// CHECK-NEXT:           |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .part_id. 'const int *const restrict'
> +// CHECK-NEXT:           |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .privates. 'void *const restrict'
> +// CHECK-NEXT:           |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)'
> +// CHECK-NEXT:           |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .task_t. 'void *const'
> +// CHECK-NEXT:           |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams.c:4:9) *const restrict'
> +// CHECK-NEXT:           |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT:           | `-CapturedRecordAttr {{.*}} <<invalid sloc>>
> Implicit
> +// CHECK-NEXT:           `-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc> nothrow
> +// CHECK-NEXT:             |-CapturedStmt {{.*}} <line:5:3>
> +// CHECK-NEXT:             | `-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT:             |   |-NullStmt {{.*}} <col:3>
> +// CHECK-NEXT:             |   |-ImplicitParamDecl {{.*}} <line:4:9>
> col:9 implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT:             |   |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT:             |   `-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams.c:4:9) *const restrict'
> +// CHECK-NEXT:             |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams.c:4:9) *const restrict'
> +// CHECK-NEXT:             |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT:             | `-CapturedRecordAttr {{.*}} <<invalid sloc>>
> Implicit
> +// CHECK-NEXT:             `-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT:               |-NullStmt {{.*}} <line:5:3>
> +// CHECK-NEXT:               |-ImplicitParamDecl {{.*}} <line:4:9> col:9
> implicit .global_tid. 'const int *const restrict'
> +// CHECK-NEXT:               |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .bound_tid. 'const int *const restrict'
> +// CHECK-NEXT:               `-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-teams.c:4:9) *const restrict'
>
> Added: cfe/trunk/test/AST/ast-dump-openmp-target-update.c
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/test/AST/ast-dump-openmp-target-update.c?rev=356569&view=auto
>
> ==============================================================================
> --- cfe/trunk/test/AST/ast-dump-openmp-target-update.c (added)
> +++ cfe/trunk/test/AST/ast-dump-openmp-target-update.c Wed Mar 20 09:31:47
> 2019
> @@ -0,0 +1,23 @@
> +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s |
> FileCheck --match-full-lines -implicit-check-not=openmp_structured_block %s
> +
> +void test(int x) {
> +#pragma omp target update to(x)
> +}
> +
> +// CHECK: TranslationUnitDecl {{.*}} <<invalid sloc>> <invalid sloc>
> +// CHECK: `-FunctionDecl {{.*}}
> <{{.*}}ast-dump-openmp-target-update.c:3:1, line:5:1> line:3:6 test 'void
> (int)'
> +// CHECK-NEXT:   |-ParmVarDecl {{.*}} <col:11, col:15> col:15 used x 'int'
> +// CHECK-NEXT:   `-CompoundStmt {{.*}} <col:18, line:5:1>
> +// CHECK-NEXT:     `-OMPTargetUpdateDirective {{.*}} <line:4:9, col:32>
> +// CHECK-NEXT:       |-OMPToClause {{.*}} <col:27, col:31>
> +// CHECK-NEXT:       | `-DeclRefExpr {{.*}} <col:30> 'int' lvalue ParmVar
> {{.*}} 'x' 'int'
> +// CHECK-NEXT:       `-CapturedStmt {{.*}} <col:9>
> +// CHECK-NEXT:         `-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc> nothrow
> +// CHECK-NEXT:           |-CompoundStmt {{.*}} <col:9>
> +// CHECK-NEXT:           |-AlwaysInlineAttr {{.*}} <<invalid sloc>>
> Implicit __forceinline
> +// CHECK-NEXT:           |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .global_tid. 'const int'
> +// CHECK-NEXT:           |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .part_id. 'const int *const restrict'
> +// CHECK-NEXT:           |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .privates. 'void *const restrict'
> +// CHECK-NEXT:           |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)'
> +// CHECK-NEXT:           |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .task_t. 'void *const'
> +// CHECK-NEXT:           `-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target-update.c:4:9) *const restrict'
>
> Added: cfe/trunk/test/AST/ast-dump-openmp-target.c
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/test/AST/ast-dump-openmp-target.c?rev=356569&view=auto
>
> ==============================================================================
> --- cfe/trunk/test/AST/ast-dump-openmp-target.c (added)
> +++ cfe/trunk/test/AST/ast-dump-openmp-target.c Wed Mar 20 09:31:47 2019
> @@ -0,0 +1,29 @@
> +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s |
> FileCheck --match-full-lines -implicit-check-not=openmp_structured_block %s
> +
> +void test() {
> +#pragma omp target
> +  ;
> +}
> +
> +// CHECK: TranslationUnitDecl {{.*}} <<invalid sloc>> <invalid sloc>
> +// CHECK: `-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-target.c:3:1,
> line:6:1> line:3:6 test 'void ()'
> +// CHECK-NEXT:   `-CompoundStmt {{.*}} <col:13, line:6:1>
> +// CHECK-NEXT:     `-OMPTargetDirective {{.*}} <line:4:9, col:19>
> +// CHECK-NEXT:       `-CapturedStmt {{.*}} <line:5:3>
> +// CHECK-NEXT:         `-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc> nothrow
> +// CHECK-NEXT:           |-CapturedStmt {{.*}} <col:3>
> +// CHECK-NEXT:           | `-CapturedDecl {{.*}} <<invalid sloc>>
> <invalid sloc> nothrow
> +// CHECK-NEXT:           |   |-NullStmt {{.*}} <col:3>
> +// CHECK-NEXT:           |   `-ImplicitParamDecl {{.*}} <line:4:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target.c:4:9) *const restrict'
> +// CHECK-NEXT:           |-AlwaysInlineAttr {{.*}} <<invalid sloc>>
> Implicit __forceinline
> +// CHECK-NEXT:           |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .global_tid. 'const int'
> +// CHECK-NEXT:           |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .part_id. 'const int *const restrict'
> +// CHECK-NEXT:           |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .privates. 'void *const restrict'
> +// CHECK-NEXT:           |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)'
> +// CHECK-NEXT:           |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .task_t. 'void *const'
> +// CHECK-NEXT:           |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target.c:4:9) *const restrict'
> +// CHECK-NEXT:           |-RecordDecl {{.*}} <col:9> col:9 implicit
> struct definition
> +// CHECK-NEXT:           | `-CapturedRecordAttr {{.*}} <<invalid sloc>>
> Implicit
> +// CHECK-NEXT:           `-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc> nothrow
> +// CHECK-NEXT:             |-NullStmt {{.*}} <line:5:3>
> +// CHECK-NEXT:             `-ImplicitParamDecl {{.*}} <line:4:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-target.c:4:9) *const restrict'
>
> Added: cfe/trunk/test/AST/ast-dump-openmp-task.c
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/test/AST/ast-dump-openmp-task.c?rev=356569&view=auto
>
> ==============================================================================
> --- cfe/trunk/test/AST/ast-dump-openmp-task.c (added)
> +++ cfe/trunk/test/AST/ast-dump-openmp-task.c Wed Mar 20 09:31:47 2019
> @@ -0,0 +1,21 @@
> +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s |
> FileCheck --match-full-lines -implicit-check-not=openmp_structured_block %s
> +
> +void test() {
> +#pragma omp task
> +  ;
> +}
> +
> +// CHECK: TranslationUnitDecl {{.*}} <<invalid sloc>> <invalid sloc>
> +// CHECK: `-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-task.c:3:1,
> line:6:1> line:3:6 test 'void ()'
> +// CHECK-NEXT:   `-CompoundStmt {{.*}} <col:13, line:6:1>
> +// CHECK-NEXT:     `-OMPTaskDirective {{.*}} <line:4:9, col:17>
> +// CHECK-NEXT:       `-CapturedStmt {{.*}} <line:5:3>
> +// CHECK-NEXT:         `-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc> nothrow
> +// CHECK-NEXT:           |-NullStmt {{.*}} <col:3>
> +// CHECK-NEXT:           |-AlwaysInlineAttr {{.*}} <<invalid sloc>>
> Implicit __forceinline
> +// CHECK-NEXT:           |-ImplicitParamDecl {{.*}} <line:4:9> col:9
> implicit .global_tid. 'const int'
> +// CHECK-NEXT:           |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .part_id. 'const int *const restrict'
> +// CHECK-NEXT:           |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .privates. 'void *const restrict'
> +// CHECK-NEXT:           |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)'
> +// CHECK-NEXT:           |-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit .task_t. 'void *const'
> +// CHECK-NEXT:           `-ImplicitParamDecl {{.*}} <col:9> col:9
> implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-task.c:4:9)
> *const restrict'
>
> Added: cfe/trunk/test/AST/ast-dump-openmp-taskgroup.c
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/test/AST/ast-dump-openmp-taskgroup.c?rev=356569&view=auto
>
> ==============================================================================
> --- cfe/trunk/test/AST/ast-dump-openmp-taskgroup.c (added)
> +++ cfe/trunk/test/AST/ast-dump-openmp-taskgroup.c Wed Mar 20 09:31:47 2019
> @@ -0,0 +1,15 @@
> +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s |
> FileCheck --match-full-lines -implicit-check-not=openmp_structured_block %s
> +
> +void test() {
> +#pragma omp taskgroup
> +  ;
> +}
> +
> +// CHECK: TranslationUnitDecl {{.*}} <<invalid sloc>> <invalid sloc>
> +// CHECK: `-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-taskgroup.c:3:1,
> line:6:1> line:3:6 test 'void ()'
> +// CHECK-NEXT:   `-CompoundStmt {{.*}} <col:13, line:6:1>
> +// CHECK-NEXT:     `-OMPTaskgroupDirective {{.*}} <line:4:9, col:22>
> +// CHECK-NEXT:       `-CapturedStmt {{.*}} <line:5:3>
> +// CHECK-NEXT:         `-CapturedDecl {{.*}} <<invalid sloc>> <invalid
> sloc>
> +// CHECK-NEXT:           |-NullStmt {{.*}} <col:3>
> +// CHECK-NEXT:           `-ImplicitParamDecl {{.*}} <line:4:9> col:9
> implicit __context 'struct (anonymous at
> {{.*}}ast-dump-openmp-taskgroup.c:4:9) *const restrict'
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190531/1ba05cd1/attachment-0001.html>


More information about the cfe-commits mailing list