summaryrefslogtreecommitdiffstats
path: root/tests/diagnostics
diff options
context:
space:
mode:
Diffstat (limited to 'tests/diagnostics')
-rw-r--r--tests/diagnostics/local-line.slang2
-rw-r--r--tests/diagnostics/local-line.slang.expected2
2 files changed, 3 insertions, 1 deletions
diff --git a/tests/diagnostics/local-line.slang b/tests/diagnostics/local-line.slang
index 973c234c0..532307a8f 100644
--- a/tests/diagnostics/local-line.slang
+++ b/tests/diagnostics/local-line.slang
@@ -3,6 +3,7 @@
//TEST:SIMPLE_LINE:-entry computeMain -target dxbc -stage compute
//TEST:SIMPLE_LINE:-entry computeMain -target dll -stage compute
//TEST:SIMPLE_LINE:-entry computeMain -target ptx -stage compute
+//TEST:SIMPLE_LINE(filecheck=CHECK):-entry computeMain -target spirv -stage compute
//TEST_INPUT:ubuffer(data=[0 0 0 0], stride=4):out,name outputBuffer
RWStructuredBuffer<int> outputBuffer;
@@ -37,6 +38,7 @@ void computeMain(uint3 dispatchThreadID : SV_DispatchThreadID)
else
{
a = e; b = c + c; d += d + __SyntaxError(); e = doThing(e, int(dispatchThreadID.x));
+ // CHECK: [[#@LINE-1]]
}
}
diff --git a/tests/diagnostics/local-line.slang.expected b/tests/diagnostics/local-line.slang.expected
index a2720097d..425151f3a 100644
--- a/tests/diagnostics/local-line.slang.expected
+++ b/tests/diagnostics/local-line.slang.expected
@@ -1 +1 @@
-39
+40