summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/language-feature/static_assert.slang12
1 files changed, 4 insertions, 8 deletions
diff --git a/tests/language-feature/static_assert.slang b/tests/language-feature/static_assert.slang
index 55bfa0abb..d7806cf30 100644
--- a/tests/language-feature/static_assert.slang
+++ b/tests/language-feature/static_assert.slang
@@ -1,6 +1,4 @@
//TEST:SIMPLE(filecheck=CHK):-target hlsl -stage compute -entry computeMain
-//TEST:SIMPLE(filecheck=CHK):-target glsl -stage compute -entry computeMain
-//TEST:SIMPLE(filecheck=CHK):-target spirv -stage compute -entry computeMain
//TEST:SIMPLE(filecheck=HLSL):-target hlsl -stage compute -entry computeMain
//TEST:SIMPLE(filecheck=GLSL):-target glsl -stage compute -entry computeMain
//TEST:SIMPLE(filecheck=SPV):-target spirv -stage compute -entry computeMain
@@ -56,14 +54,12 @@ extension MyType<T>
[numthreads(1,1,1)]
void computeMain(int3 dispatchThreadID: SV_DispatchThreadID)
{
- //CHK-NOT:error {{.*}} TEST_specialize
- //CHK: error {{.*}} TEST_specialize T_is_int
- //CHK-NOT:error {{.*}} TEST_specialize
+ // CHK-DAG: error {{.*}} TEST_specialize T_is_int
+ // CHK-DAG:{{.*}} TEST_specialize<float>
TEST_specialize<float>();
- //CHK-NOT:error {{.*}} TEST_specialize
- //CHK: error 41400: {{.*}} TEST_specialize T_is_float
- //CHK-NOT:error {{.*}} TEST_specialize
+ // CHK-DAG: error {{.*}} TEST_specialize T_is_float
+ // CHK-DAG:{{.*}} TEST_specialize<int>
TEST_specialize<int>();
//HLSL: error {{.*}} TEST_target_switch all