diff --git a/resources/sksl/runtime_errors/ES3Types.rts b/resources/sksl/runtime_errors/ES3Types.rts index e5c7f7107e..e14c5b083e 100644 --- a/resources/sksl/runtime_errors/ES3Types.rts +++ b/resources/sksl/runtime_errors/ES3Types.rts @@ -29,3 +29,9 @@ void af23() { float2x3 x[2]; } struct Sh42 { half4x2 x; }; struct Sus { ushort x; }; struct Sau { uint x[2]; }; + +void ctor_f23() { float2x3(0); } +void ctor_h42() { half4x2(0); } +void ctor_u() { uint(0); } +void ctor_us4() { ushort4(0); } +void ctor_aus() { ushort[2](0, 0); } diff --git a/tests/sksl/runtime_errors/ES3Types.skvm b/tests/sksl/runtime_errors/ES3Types.skvm index 47756b5cbe..f65aeb6c1e 100644 --- a/tests/sksl/runtime_errors/ES3Types.skvm +++ b/tests/sksl/runtime_errors/ES3Types.skvm @@ -26,4 +26,5 @@ error: 27: type 'float2x3' is not supported error: 29: type 'half4x2' is not supported error: 30: type 'ushort' is not supported error: 31: type 'uint' is not supported -26 errors +error: 37: construction of array type 'ushort[2]' is not supported +27 errors