annotate clang/test/AST/ast-dump-openmp-target.c @ 207:2e18cbf3894f

LLVM12
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Tue, 08 Jun 2021 06:07:14 +0900
parents 0572611fdcc8
children c4bab56944e8
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 // RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s | FileCheck --match-full-lines -implicit-check-not=openmp_structured_block %s
anatofuz
parents:
diff changeset
2
anatofuz
parents:
diff changeset
3 void test() {
anatofuz
parents:
diff changeset
4 #pragma omp target
anatofuz
parents:
diff changeset
5 ;
anatofuz
parents:
diff changeset
6 }
anatofuz
parents:
diff changeset
7
anatofuz
parents:
diff changeset
8 // CHECK: TranslationUnitDecl {{.*}} <<invalid sloc>> <invalid sloc>
anatofuz
parents:
diff changeset
9 // CHECK: `-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-target.c:3:1, line:6:1> line:3:6 test 'void ()'
anatofuz
parents:
diff changeset
10 // CHECK-NEXT: `-CompoundStmt {{.*}} <col:13, line:6:1>
anatofuz
parents:
diff changeset
11 // CHECK-NEXT: `-OMPTargetDirective {{.*}} <line:4:1, col:19>
anatofuz
parents:
diff changeset
12 // CHECK-NEXT: `-CapturedStmt {{.*}} <line:5:3>
anatofuz
parents:
diff changeset
13 // CHECK-NEXT: `-CapturedDecl {{.*}} <<invalid sloc>> <invalid sloc> nothrow
anatofuz
parents:
diff changeset
14 // CHECK-NEXT: |-CapturedStmt {{.*}} <col:3>
anatofuz
parents:
diff changeset
15 // CHECK-NEXT: | `-CapturedDecl {{.*}} <<invalid sloc>> <invalid sloc> nothrow
173
0572611fdcc8 reorgnization done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
16 // CHECK-NEXT: | |-NullStmt {{.*}} <col:3>
207
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
17 // CHECK-NEXT: | `-ImplicitParamDecl {{.*}} <line:4:1> col:1 implicit __context 'struct (unnamed at {{.*}}ast-dump-openmp-target.c:4:1) *const restrict'
150
anatofuz
parents:
diff changeset
18 // CHECK-NEXT: |-AlwaysInlineAttr {{.*}} <<invalid sloc>> Implicit __forceinline
anatofuz
parents:
diff changeset
19 // CHECK-NEXT: |-ImplicitParamDecl {{.*}} <col:1> col:1 implicit .global_tid. 'const int'
anatofuz
parents:
diff changeset
20 // CHECK-NEXT: |-ImplicitParamDecl {{.*}} <col:1> col:1 implicit .part_id. 'const int *const restrict'
anatofuz
parents:
diff changeset
21 // CHECK-NEXT: |-ImplicitParamDecl {{.*}} <col:1> col:1 implicit .privates. 'void *const restrict'
anatofuz
parents:
diff changeset
22 // CHECK-NEXT: |-ImplicitParamDecl {{.*}} <col:1> col:1 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)'
anatofuz
parents:
diff changeset
23 // CHECK-NEXT: |-ImplicitParamDecl {{.*}} <col:1> col:1 implicit .task_t. 'void *const'
207
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
24 // CHECK-NEXT: |-ImplicitParamDecl {{.*}} <col:1> col:1 implicit __context 'struct (unnamed at {{.*}}ast-dump-openmp-target.c:4:1) *const restrict'
150
anatofuz
parents:
diff changeset
25 // CHECK-NEXT: |-RecordDecl {{.*}} <col:1> col:1 implicit struct definition
anatofuz
parents:
diff changeset
26 // CHECK-NEXT: | `-CapturedRecordAttr {{.*}} <<invalid sloc>> Implicit
anatofuz
parents:
diff changeset
27 // CHECK-NEXT: `-CapturedDecl {{.*}} <<invalid sloc>> <invalid sloc> nothrow
173
0572611fdcc8 reorgnization done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
28 // CHECK-NEXT: |-NullStmt {{.*}} <line:5:3>
207
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
29 // CHECK-NEXT: `-ImplicitParamDecl {{.*}} <line:4:1> col:1 implicit __context 'struct (unnamed at {{.*}}ast-dump-openmp-target.c:4:1) *const restrict'