1beeab415c
This is useful because it will allow these tests to be supported in Android CTS, where only Runtime Effects are API-accessible. This CL updates the C++ test harness so that .rts files in the error/ directory are found, and tweaks error tests as necessary to make them Runtime Effect-compatible. For instance, Runtime Effects enforce the parameters on main(), which adds extra errors that we don't want. And some error tests require ES3 (e.g. array constructors) and so those tests remain as .sksl files. In this CL, only tests beginning with A are updated. The remaining tests will be updated in followup CLs. Change-Id: I70b064df4f0b3ed02d6bc8cc9add7ee844a78691 Bug: skia:13042 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/522424 Auto-Submit: John Stiles <johnstiles@google.com> Reviewed-by: Ethan Nicholas <ethannicholas@google.com>
16 lines
522 B
Plaintext
16 lines
522 B
Plaintext
void array_plus_int () { int a[123]; +a; }
|
|
void array_plus_int4 () { int4 a[123]; +a; }
|
|
void array_plus_float () { float a[123]; +a; }
|
|
void array_plus_half3 () { half3 a[123]; +a; }
|
|
void array_plus_bool2 () { bool2 a[123]; +a; }
|
|
void array_plus_half4x4() { half4x4 a[123]; +a; }
|
|
|
|
/*%%*
|
|
'+' cannot operate on 'int[123]'
|
|
'+' cannot operate on 'int4[123]'
|
|
'+' cannot operate on 'float[123]'
|
|
'+' cannot operate on 'half3[123]'
|
|
'+' cannot operate on 'bool2[123]'
|
|
'+' cannot operate on 'half4x4[123]'
|
|
*%%*/
|