skia2/resources/sksl/runtime_errors/LoopInitializerErrors.rte
John Stiles bfc9be0f77 Migrate SkSL test inputs to the resources/ directory.
This will allow us to load these inputs for unit testing in `dm`.

Change-Id: Id256ba7c30d3ec94b98048e47af44cf9efe580d5
Bug: skia:11009
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/357282
Commit-Queue: John Stiles <johnstiles@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
2021-01-22 18:57:29 +00:00

15 lines
544 B
Plaintext

// Expect 8 errors
void no_initializer() { int i = 0; for ( ; i < 1; i++) {} }
void init_not_decl() { int i; for (i = 0; i < 1; i++) {} }
void index_no_init() { for (int i; i < 1; i++) {} }
void bool_index() { for (bool i = false; i != true; i = !i) {} }
void vec_index() { for (float2 i = float2(0); i.x < 1; i.x++) {} }
void array_index() { for (int i[2] = int[2](0, 0); i[0] < 1; ++i[0]) {} }
uniform int u;
void uniform_init() { for (int i = u; i < 1; ++i) {} }
void param_init(int p) { for (int i = p; i < 1; ++i) {} }