diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/bugs/glsl-layout-define.hlsl | 4 | ||||
| -rw-r--r-- | tests/bugs/glsl-layout-define.hlsl.expected | 4 | ||||
| -rw-r--r-- | tests/bugs/static-method.slang | 23 | ||||
| -rw-r--r-- | tests/bugs/static-method.slang.expected.txt | 8 |
4 files changed, 20 insertions, 19 deletions
diff --git a/tests/bugs/glsl-layout-define.hlsl b/tests/bugs/glsl-layout-define.hlsl index 8f09fd592..8d3db20a1 100644 --- a/tests/bugs/glsl-layout-define.hlsl +++ b/tests/bugs/glsl-layout-define.hlsl @@ -1,5 +1,7 @@ //TEST:SIMPLE: -profile vs_5_0 -layout(binding = UNDEFINED_VK_BINDING, set = UNDEFINED_VK_SET) +layout( + binding = UNDEFINED_VK_BINDING, + set = UNDEFINED_VK_SET) Texture2DArray<float4> Float4Texture2DArrays[] : register(t0, space100); diff --git a/tests/bugs/glsl-layout-define.hlsl.expected b/tests/bugs/glsl-layout-define.hlsl.expected index 9c00916c3..a151f79e9 100644 --- a/tests/bugs/glsl-layout-define.hlsl.expected +++ b/tests/bugs/glsl-layout-define.hlsl.expected @@ -1,7 +1,7 @@ result code = -1 standard error = { -tests/bugs/glsl-layout-define.hlsl(3): error 20001: unexpected identifier, expected integer literal -tests/bugs/glsl-layout-define.hlsl(3): error 20001: unexpected ')', expected ';' +tests/bugs/glsl-layout-define.hlsl(4): error 20001: unexpected identifier, expected integer literal +tests/bugs/glsl-layout-define.hlsl(5): error 20001: unexpected identifier, expected integer literal } standard output = { } diff --git a/tests/bugs/static-method.slang b/tests/bugs/static-method.slang index dfb13b4a8..c728e9053 100644 --- a/tests/bugs/static-method.slang +++ b/tests/bugs/static-method.slang @@ -4,10 +4,10 @@ struct S { - static void doThing(in out int x, int y) - { - x += y; - } + static void doThing(in out int x, int y) + { + x += y; + } } //TEST_INPUT:ubuffer(data=[0 0 0 0], stride=4):out @@ -15,20 +15,19 @@ RWStructuredBuffer<int> outputBuffer : register(u0); int test(int t) { - // TODO: This case is currently being mis-handled by the parser -// S::doThing(t, 0x10); + S::doThing(t, 0x10); - (S::doThing(t, 0x200)); + (S::doThing(t, 0x200)); - (S::doThing)(t, 0x4000); + (S::doThing)(t, 0x4000); - return t; + return t; } [numthreads(4)] void computeMain(uint3 tid : SV_DispatchThreadID) { - int val = tid.x; - val = test(val); - outputBuffer[tid.x] = val; + int val = tid.x; + val = test(val); + outputBuffer[tid.x] = val; } diff --git a/tests/bugs/static-method.slang.expected.txt b/tests/bugs/static-method.slang.expected.txt index 017c3bd20..1eb819280 100644 --- a/tests/bugs/static-method.slang.expected.txt +++ b/tests/bugs/static-method.slang.expected.txt @@ -1,4 +1,4 @@ -4200 -4201 -4202 -4203 +4210 +4211 +4212 +4213 |
