[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / SemaHLSL / Semantics / valid_entry_parameter.hlsl
blob8e79fc4d85ec91f97f071b893c9d83246d8627a6
1 // RUN: %clang_cc1 -triple dxil-pc-shadermodel6.0-compute -x hlsl  -finclude-default-header -ast-dump  -o - %s | FileCheck %s
3 [numthreads(8,8,1)]
4 void CSMain(uint ID : SV_DispatchThreadID) {
5 // CHECK: FunctionDecl 0x{{[0-9a-fA-F]+}} <{{.*}}> line:[[@LINE-1]]:6 CSMain 'void (uint)'
6 // CHECK-NEXT: ParmVarDecl 0x{{[0-9a-fA-F]+}} <{{.*}}> col:18 ID 'uint'
7 // CHECK-NEXT: HLSLSV_DispatchThreadIDAttr
9 [numthreads(8,8,1)]
10 void CSMain1(uint2 ID : SV_DispatchThreadID) {
11 // CHECK: FunctionDecl 0x{{[0-9a-fA-F]+}} <{{.*}}> line:[[@LINE-1]]:6 CSMain1 'void (uint2)'
12 // CHECK-NEXT: ParmVarDecl 0x{{[0-9a-fA-F]+}} <{{.*}}> col:20 ID 'uint2'
13 // CHECK-NEXT: HLSLSV_DispatchThreadIDAttr
15 [numthreads(8,8,1)]
16 void CSMain2(uint3 ID : SV_DispatchThreadID) {
17 // CHECK: FunctionDecl 0x{{[0-9a-fA-F]+}} <{{.*}}> line:[[@LINE-1]]:6 CSMain2 'void (uint3)'
18 // CHECK-NEXT: ParmVarDecl 0x{{[0-9a-fA-F]+}} <{{.*}}> col:20 ID 'uint3'
19 // CHECK-NEXT: HLSLSV_DispatchThreadIDAttr
21 [numthreads(8,8,1)]
22 void CSMain3(uint3 : SV_DispatchThreadID) {
23 // CHECK: FunctionDecl 0x{{[0-9a-fA-F]+}} <{{.*}}> line:[[@LINE-1]]:6 CSMain3 'void (uint3)'
24 // CHECK-NEXT: ParmVarDecl 0x{{[0-9a-fA-F]+}} <{{.*}}> col:20 'uint3'
25 // CHECK-NEXT: HLSLSV_DispatchThreadIDAttr