Skip to content

Commit c99bb95

Browse files
committed
add test
Signed-off-by: Sarnie, Nick <[email protected]>
1 parent 56f19d4 commit c99bb95

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
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

0 commit comments

Comments
 (0)