skia2/resources/sksl/errors/VectorIndexOutOfRange.rts
John Stiles c29e37ad4c Rename ES2 error tests 'T' through 'Z' to .rts.
Change-Id: I528d2b7a53748077f2dd7e7e04927d2a6b78ac8f
Bug: skia:13042
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/523429
Commit-Queue: John Stiles <johnstiles@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
Reviewed-by: Arman Uguray <armansito@google.com>
Commit-Queue: Arman Uguray <armansito@google.com>
2022-03-22 19:50:29 +00:00

69 lines
4.0 KiB
Plaintext

void half4_neg1() { half4 h; half v = h[-1]; }
void half4_0() { half4 h; half v = h[0]; }
void half4_1() { half4 h; half v = h[1]; }
void half4_2() { half4 h; half v = h[2]; }
void half4_3() { half4 h; half v = h[3]; }
void half4_4() { half4 h; half v = h[4]; }
void half4_huge() { half4 h; half v = h[1000000000]; }
void half3_neg1() { half3 h; half v = h[-1]; }
void half3_0() { half3 h; half v = h[0]; }
void half3_1() { half3 h; half v = h[1]; }
void half3_2() { half3 h; half v = h[2]; }
void half3_3() { half3 h; half v = h[3]; }
void half3_4() { half3 h; half v = h[4]; }
void half3_huge() { half3 h; half v = h[1000000000]; }
void half2_neg1() { half2 h; half v = h[-1]; }
void half2_0() { half2 h; half v = h[0]; }
void half2_1() { half2 h; half v = h[1]; }
void half2_2() { half2 h; half v = h[2]; }
void half2_3() { half2 h; half v = h[3]; }
void half2_4() { half2 h; half v = h[4]; }
void half2_huge() { half2 h; half v = h[1000000000]; }
void half2_neg1_constidx() { half2 h; const int INDEX = -1; half v = h[INDEX]; }
void half2_0_constidx() { half2 h; const int INDEX = 0; half v = h[INDEX]; }
void half2_1_constidx() { half2 h; const int INDEX = 1; half v = h[INDEX]; }
void half2_2_constidx() { half2 h; const int INDEX = 2; half v = h[INDEX]; }
void half2_huge_constidx() { half2 h; const int INDEX = 1000000000; half v = h[INDEX]; }
void half3_neg1_constidx() { half3 h; const int INDEX = -1; half v = h[INDEX]; }
void half3_0_constidx() { half3 h; const int INDEX = 0; half v = h[INDEX]; }
void half3_1_constidx() { half3 h; const int INDEX = 1; half v = h[INDEX]; }
void half3_2_constidx() { half3 h; const int INDEX = 2; half v = h[INDEX]; }
void half3_3_constidx() { half3 h; const int INDEX = 3; half v = h[INDEX]; }
void half3_huge_constidx() { half3 h; const int INDEX = 1000000000; half v = h[INDEX]; }
void half4_neg1_constidx() { half4 h; const int INDEX = -1; half v = h[INDEX]; }
void half4_0_constidx() { half4 h; const int INDEX = 0; half v = h[INDEX]; }
void half4_1_constidx() { half4 h; const int INDEX = 1; half v = h[INDEX]; }
void half4_2_constidx() { half4 h; const int INDEX = 2; half v = h[INDEX]; }
void half4_3_constidx() { half4 h; const int INDEX = 3; half v = h[INDEX]; }
void half4_4_constidx() { half4 h; const int INDEX = 4; half v = h[INDEX]; }
void half4_huge_constidx() { half4 h; const int INDEX = 1000000000; half v = h[INDEX]; }
/*%%*
index -1 out of range for 'half4'
index 4 out of range for 'half4'
index 1000000000 out of range for 'half4'
index -1 out of range for 'half3'
index 3 out of range for 'half3'
index 4 out of range for 'half3'
index 1000000000 out of range for 'half3'
index -1 out of range for 'half2'
index 2 out of range for 'half2'
index 3 out of range for 'half2'
index 4 out of range for 'half2'
index 1000000000 out of range for 'half2'
index -1 out of range for 'half2'
index 2 out of range for 'half2'
index 1000000000 out of range for 'half2'
index -1 out of range for 'half3'
index 3 out of range for 'half3'
index 1000000000 out of range for 'half3'
index -1 out of range for 'half4'
index 4 out of range for 'half4'
index 1000000000 out of range for 'half4'
*%%*/