| 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 |
| 10 |
|
| 11 |
typedef pipe int pipetype; |
| 12 |
// CHECK: PipeType {{.*}} 'read_only pipe int' |
| 13 |
// CHECK-NEXT: BuiltinType {{.*}} 'int' |
| 14 |
|
| 15 |
typedef read_only pipe int pipetype2; |
| 16 |
// CHECK: PipeType {{.*}} 'read_only pipe int' |
| 17 |
// CHECK-NEXT: BuiltinType {{.*}} 'int' |
| 18 |
|
| 19 |
typedef write_only pipe int pipetype3; |
| 20 |
// CHECK: PipeType {{.*}} 'write_only pipe int' |
| 21 |
// CHECK-NEXT: BuiltinType {{.*}} 'int' |