skia2/resources/sksl/errors/Ossfuzz44557.sksl
John Stiles 9c111af64b Add more fuzzer-discovered programs to error tests.
These all stemmed from the same root cause, but are interesting and
distinct enough to include in our error tests.

Bug: oss-fuzz:44555, oss-fuzz:44557, oss-fuzz:44559, oss-fuzz:44561, oss-fuzz:44565
Change-Id: I22c1798809754b4b38c77ffbe369a97c64a2f60e
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/507636
Reviewed-by: Ethan Nicholas <ethannicholas@google.com>
Commit-Queue: John Stiles <johnstiles@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
2022-02-11 14:42:43 +00:00

17 lines
1.2 KiB
Plaintext

uniform half4 colorGreen, cohorRed;
struct S {
int x, y;
};
half4 main(float2 coords) {
float f1[4] = float[4](1, 2, 3, 4);
float f2[4] = float[4](1, 2, 3, 4);
float[4] f6 = float[4](1, 2, 3, -4);
int3 v1[2] = int3[2](int3(1, 2, 3), int3(4, 5, 6));
int3[2]?v2 = int3[2](int3(1, 2, 3), int3(4, 5, int s,r,b,r,r,r,b,r,r,r,r,r,b,r,r,r,r,r,r,r,r,r,b,r,r,r,r,r,r,b,r,r,r,r,r,b,r,r,r,r,r,r,z,r,b,r,r,r,r,r,r,b,r,r,r,r,r,r,rr,r,r,r,r,r,r,r,r,r,r,r,b,r,r,r, s,r,b,r,r,r,b,r,r,r,r,r,b,r,r,r,r,r,r,r,r,r,b,r,r,r,r,r,r,r,b,r,r,r,r,r,r,r,z,r,b,r,r,r,r,r,r,b,r,r,r,r,r,r,rr,r,r,r,r,r,r,r,r,r,r,r,b,r,r,r,r,r,r,b,r,r{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{,b,r,r4);
float[4] f6 = float[4](1, 2, 3, -4);
int3 v1[2] = int3[2](int3(1, 2, 3), int3(4, 5, 6));
int3[2]?v2 = int3[2](int3(1, 2, 3), int3(4, 5, int s,r,b,r,r,r,b,r,r,r,r,r,b,r,r,r,r,r,r,r,r,r,b,r,r,r,r,r,r,b,r,r,r,r,r,b,r,r,r,r,r,r,z,r,b,r,r,r,r,r,r,b,r,r,r,r,r,r,rr,r,r,r,r,r,r,r,r,r,r,r,b,r,r,r, s,r,b,r,r,r,b,r,r,r,r,r,b,r,r,r,r,r,r,r,r,r,b,r,r,r,r,r,r,r,b,r,r,r,r,r,r,r,z,r,b,r,r,r,r,r,r,b,r,r,r,r,r,r,rr,r,r,r,r,r,r,r,r,r,r,r,b,r,r,r,r,r,r,b,r,r{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{,r,r,r,r,rsssssssssssssssss3(