diff options
Diffstat (limited to 'tests/cross-compile')
| -rw-r--r-- | tests/cross-compile/dxc-error.hlsl | 7 | ||||
| -rw-r--r-- | tests/cross-compile/dxc-error.hlsl.expected | 8 |
2 files changed, 5 insertions, 10 deletions
diff --git a/tests/cross-compile/dxc-error.hlsl b/tests/cross-compile/dxc-error.hlsl index 0e6b6e489..8d73d7a1c 100644 --- a/tests/cross-compile/dxc-error.hlsl +++ b/tests/cross-compile/dxc-error.hlsl @@ -1,4 +1,4 @@ -//DIAGNOSTIC_TEST(dxc):SIMPLE:-pass-through dxc -target dxil -entry computeMain -stage compute -profile sm_6_1 +//DIAGNOSTIC_TEST(dxc):SIMPLE(filecheck=CHECK):-pass-through dxc -target dxil -entry computeMain -stage compute -profile sm_6_1 [numthreads(4, 1, 1)] void computeMain(uint3 dispatchThreadID : SV_DispatchThreadID) @@ -6,4 +6,7 @@ void computeMain(uint3 dispatchThreadID : SV_DispatchThreadID) uint tid = dispatchThreadID.x; // Error should be here... as gOutputBuffer is not defined... gOutputBuffer[tid] = dispatchThreadID.x * 0.5f; -}
\ No newline at end of file + // CHECK: : tests/cross-compile/dxc-error.hlsl([[#@LINE-1]]): error : use of undeclared identifier 'gOutputBuffer' + // CHECK-NEXT: : note : gOutputBuffer[tid] = dispatchThreadID.x * 0.5f; + // CHECK-NEXT: : note : ^ +} diff --git a/tests/cross-compile/dxc-error.hlsl.expected b/tests/cross-compile/dxc-error.hlsl.expected deleted file mode 100644 index c47ca80a6..000000000 --- a/tests/cross-compile/dxc-error.hlsl.expected +++ /dev/null @@ -1,8 +0,0 @@ -result code = -1 -standard error = { -dxc 1.7: tests/cross-compile/dxc-error.hlsl(8): error : use of undeclared identifier 'gOutputBuffer' -dxc 1.7: note : gOutputBuffer[tid] = dispatchThreadID.x * 0.5f; -dxc 1.7: note : ^ -} -standard output = { -} |
