a456175a07
This was (crudely) automated with shell scripts: http://go/paste/5484300603490304 Change-Id: Ic9e1c93112772d303d1158eb26d995f27b439eba Bug: skia:12665 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/505637 Reviewed-by: Brian Osman <brianosman@google.com> Commit-Queue: John Stiles <johnstiles@google.com> Auto-Submit: John Stiles <johnstiles@google.com>
14 lines
434 B
Plaintext
14 lines
434 B
Plaintext
// Ensure eliminated branch of static if / ternary is still checked for errors.
|
|
|
|
void error_in_dead_else_body() { if (true) {} else x = 5; }
|
|
void error_in_dead_if_body() { if (false) x = 5; }
|
|
void error_in_dead_ternary_true_expr() { true ? 5 : x; }
|
|
void error_in_dead_ternary_false_expr() { false ? x : 5; }
|
|
|
|
/*%%*
|
|
unknown identifier 'x'
|
|
unknown identifier 'x'
|
|
unknown identifier 'x'
|
|
unknown identifier 'x'
|
|
*%%*/
|