Skip to content

Commit cc21d79

Browse files
committed
spirv test try 1
1 parent 372a459 commit cc21d79

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// RUN: %clang_cc1 -internal-isystem D:\llvm-project\build\x64-Release\lib\clang\19\include -nostdsysteminc -triple spirv-vulkan-library -x hlsl -std=hlsl2016 -emit-llvm -disable-llvm-passes -o - %s | FileCheck %s --check-prefix=SPIRV
2+
// kRUN: %clang_dxc -T lib_6_4 -HV 2016 -enable-16bit-types %s | FileCheck %s --check-prefix=SPIRV
3+
// SPIRV: error: enable_16bit_types option only valid when target shader model [-T] is >= 6.2 and HLSL Version [-HV] is >= 2021
4+
5+
[numthreads(1,1,1)]
6+
void main()
7+
{
8+
return;
9+
}
10+

0 commit comments

Comments
 (0)