1b843bdcb7
Removed error tests which no longer test anything: - UseWithoutInitialize...: we no longer track variable use-before-init. - InlineDivideByZero: we no longer constant-fold the result of an inlined function call into its parent statement. - Unreachable: we no longer report unreachable statements. And fixed some minor test-case issues: - StaticSwitchConditionalBreak: we still check this, but the function was being dead-stripped before this check could run. Renamed to main. - OssFuzzXxxxx: these cases no longer report errors, but they are still valuable as regression tests; moved to `shared/`. Change-Id: Iade3cff821dc998cacfd02f62d3ac4625e48904c Reviewed-on: https://skia-review.googlesource.com/c/skia/+/387820 Auto-Submit: John Stiles <johnstiles@google.com> Reviewed-by: Brian Osman <brianosman@google.com> Commit-Queue: Brian Osman <brianosman@google.com>
11 lines
210 B
Plaintext
11 lines
210 B
Plaintext
void main() {
|
|
const int x = 1;
|
|
@switch (x) {
|
|
case 1:
|
|
sk_FragColor = half4(1);
|
|
if (sqrt(0) < sqrt(1)) break;
|
|
default:
|
|
sk_FragColor = half4(0);
|
|
}
|
|
}
|