summaryrefslogtreecommitdiffstats
path: root/tests/spirv/debug-printf.slang
blob: cf8bfafa3e93fc318643215ebaaa10f5db94cd6d (plain)
1
2
3
4
5
6
7
8
9
10
11
//TEST:SIMPLE(filecheck=CHECK): -target spirv -stage compute -entry main -emit-spirv-directly
//TEST:SIMPLE(filecheck=CHECK): -target spirv -stage compute -entry main -emit-spirv-via-glsl

void main()
{
    printf("test");
    printf("test1 %d", 5);
    // CHECK: %[[SET:[0-9]+]] = OpExtInstImport "NonSemantic.DebugPrintf"
    // CHECK: {{.*}} = OpExtInst %{{[a-zA-Z0-9_]+}} %[[SET]] 1 %{{[a-zA-Z0-9_]+}}
    // CHECK: {{.*}} = OpExtInst %{{[a-zA-Z0-9_]+}} %[[SET]] 1 %{{[a-zA-Z0-9_]+}} %{{[a-zA-Z0-9_]+}}
}