skia2/resources/sksl/errors/ArrayNegation.sksl
John Stiles 319d75d6f6 Add error test for unary-negating and unary-plussing arrays.
At present, we only detect four errors here. We should detect six.

Change-Id: I226854ab930a273695c42cf2f7bdb1d5cd97e50b
Bug: oss-fuzz:39998
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/459882
Auto-Submit: John Stiles <johnstiles@google.com>
Commit-Queue: John Stiles <johnstiles@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
Reviewed-by: Ethan Nicholas <ethannicholas@google.com>
2021-10-18 14:30:36 +00:00

7 lines
312 B
Plaintext

void array_negate_int () { int a[123]; -a; }
void array_negate_int4 () { int4 a[123]; -a; }
void array_negate_float () { float a[123]; -a; }
void array_negate_half3 () { half3 a[123]; -a; }
void array_negate_bool2 () { bool2 a[123]; -a; }
void array_negate_half4x4() { half4x4 a[123]; -a; }