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>
13 lines
228 B
Plaintext
13 lines
228 B
Plaintext
int arrUnsized[];
|
|
int arrFloat[1.];
|
|
int arrBool[true];
|
|
|
|
int unsized_in_expression() { return int[](0)[0]; }
|
|
|
|
/*%%*
|
|
expected array dimension
|
|
array size must be an integer
|
|
array size must be an integer
|
|
missing index in '[]'
|
|
*%%*/
|