Skip to content

Commit 8d4c31a

Browse files
committed
add AST test
1 parent a8001b7 commit 8d4c31a

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// RUN: %clang_cc1 -triple spirv-unknown-vulkan1.3-compute -x hlsl -ast-dump -o - %s | FileCheck %s
2+
3+
struct S {
4+
int value;
5+
};
6+
7+
[[vk::push_constant]] S PC;
8+
// CHECK: VarDecl 0x[[A:[0-9a-f]+]] <line:7:23, col:25> col:25 PC 'hlsl_push_constant S'
9+
// CHECK-NEXT: HLSLVkPushConstantAttr 0x[[A:[0-9a-f]+]] <col:3, col:7>
10+
11+
[numthreads(1, 1, 1)]
12+
void main() { }

0 commit comments

Comments
 (0)