[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git] / clang / test / AST / ast-dump-pipe.cl
blobb4f78e1a7412e9fd1474254d80a1bc1025218d4c
1 // Test without serialization:
2 // RUN: %clang_cc1 -triple spir64 -cl-std=CL2.0 -ast-dump -ast-dump-filter pipetype %s \
3 // RUN: | FileCheck -strict-whitespace %s
4 //
5 // Test with serialization:
6 // RUN: %clang_cc1 -triple spir64 -cl-std=CL2.0 -emit-pch -o %t %s
7 // RUN: %clang_cc1 -x cl -triple spir64 -cl-std=CL2.0 -include-pch %t -ast-dump-all -ast-dump-filter pipetype /dev/null \
8 // RUN: | sed -e "s/ <undeserialized declarations>//" -e "s/ imported//" \
9 // RUN: | FileCheck -strict-whitespace %s
11 typedef pipe int pipetype;
12 // CHECK: PipeType {{.*}} 'read_only pipe int'
13 // CHECK-NEXT: BuiltinType {{.*}} 'int'
15 typedef read_only pipe int pipetype2;
16 // CHECK: PipeType {{.*}} 'read_only pipe int'
17 // CHECK-NEXT: BuiltinType {{.*}} 'int'
19 typedef write_only pipe int pipetype3;
20 // CHECK: PipeType {{.*}} 'write_only pipe int'
21 // CHECK-NEXT: BuiltinType {{.*}} 'int'