2022-01-14 10:16:24 +00:00
|
|
|
bug/tint/1369.wgsl:3:3 warning: code is unreachable
|
|
|
|
return true;
|
|
|
|
^^^^^^
|
|
|
|
|
|
|
|
bug/tint/1369.wgsl:9:9 warning: code is unreachable
|
|
|
|
var also_unreachable : bool;
|
|
|
|
^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
fn call_discard() -> bool {
|
|
|
|
discard;
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2022-01-19 22:46:57 +00:00
|
|
|
@stage(fragment)
|
2022-01-14 10:16:24 +00:00
|
|
|
fn f() {
|
|
|
|
var v = call_discard();
|
|
|
|
var also_unreachable : bool;
|
|
|
|
}
|