Zebediah Figura : d3dcompiler/tests: Add a couple of extra tests for struct declaration syntax.

Alexandre Julliard julliard at winehq.org
Wed Jun 17 15:54:02 CDT 2020


Module: wine
Branch: master
Commit: 549fa04cbd4020aeb6690200d70b684732a90c19
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=549fa04cbd4020aeb6690200d70b684732a90c19

Author: Zebediah Figura <z.figura12 at gmail.com>
Date:   Thu Jun 11 16:44:18 2020 -0500

d3dcompiler/tests: Add a couple of extra tests for struct declaration syntax.

Signed-off-by: Zebediah Figura <zfigura at codeweavers.com>
Signed-off-by: Matteo Bruni <mbruni at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/d3dcompiler_43/tests/hlsl_d3d9.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/dlls/d3dcompiler_43/tests/hlsl_d3d9.c b/dlls/d3dcompiler_43/tests/hlsl_d3d9.c
index edff59b633..d82a0b015a 100644
--- a/dlls/d3dcompiler_43/tests/hlsl_d3d9.c
+++ b/dlls/d3dcompiler_43/tests/hlsl_d3d9.c
@@ -968,7 +968,7 @@ static void test_constant_table(void)
 {
     static const char *source =
         "typedef float3x3 matrix_t;\n"
-        "struct matrix_record { float3x3 a; };\n"
+        "struct matrix_record { float3x3 a; } dummy;\n"
         "uniform float4 a;\n"
         "uniform float b;\n"
         "uniform float unused;\n"
@@ -1193,6 +1193,12 @@ static void test_fail(void)
         "    o = float4(1, 1, 1, 1);\n"
         "    return float4(0, 0, 0, 0);\n"
         "}",
+
+        "struct {float4 a;};\n"
+        "float4 test() : SV_TARGET\n"
+        "{\n"
+        "    return float4(0, 0, 0, 0);\n"
+        "}",
     };
 
     static const char *targets[] = {"ps_2_0", "ps_3_0", "ps_4_0"};




More information about the wine-cvs mailing list