File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change 1+ // Verify there is a space after the parens when priting callingconv attributes.
2+ // RUN: %clang_cc1 -DDEVICE -triple spirv64 -ast-dump -ast-dump-filter foo %s \
3+ // RUN: | FileCheck -check-prefix=CHECK-DEVICE --strict-whitespace %s
4+
5+ // RUN: %clang_cc1 -DVECTOR -triple aarch64 -ast-dump -ast-dump-filter foo %s \
6+ // RUN: | FileCheck -check-prefix=CHECK-VECTOR --strict-whitespace %s
7+
8+ // RUN: %clang_cc1 -DSVE -triple aarch64 -ast-dump -ast-dump-filter foo %s \
9+ // RUN: | FileCheck -check-prefix=CHECK-SVE --strict-whitespace %s
10+
11+ #ifdef DEVICE
12+ // CHECK-DEVICE-NOT: ()__attribute__((device_kernel))
13+ void foo () __attribute__((device_kernel));
14+ #endif
15+
16+ #ifdef VECTOR
17+ // CHECK-VECTOR-NOT: ()__attribute__((aarch64_vector_pcs))
18+ void foo () __attribute__((aarch64_vector_pcs));
19+ #endif
20+
21+ #ifdef SVE
22+ // CHECK-SVE-NOT: ()__attribute__((aarch64_sve_pcs))
23+ void foo () __attribute__((aarch64_sve_pcs));
24+ #endif
You can’t perform that action at this time.
0 commit comments