1 // RUN: %clang_cc1 -triple dxil-pc-shadermodel6.0-compute -x hlsl -finclude-default-header -ast-dump -o - %s | FileCheck %s
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
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
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
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