Add test for construction of non-ES2 types.

All of these lines are errors but most of them are currently not
detected by our strict-ES2 checks. This is fixed in a followup CL.

Change-Id: Ifeba9aba3ce3f1bddd1c701dfc4622505e424ea7
Bug: oss-fuzz:39540
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/455497
Commit-Queue: John Stiles <johnstiles@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
This commit is contained in:
John Stiles 2021-10-04 10:19:28 -04:00 committed by SkCQ
parent 6389bfaa83
commit 8d2bd04df8
2 changed files with 8 additions and 1 deletions

View File

@ -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); }

View File

@ -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