blob: 8d1a7d7685374e60aa37e6edfabce6a28c076dae [file] [log] [blame] [edit]
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;
^^^^^^^^^^^^^^^^
#include <metal_stdlib>
using namespace metal;
bool call_discard() {
discard_fragment();
return true;
}
fragment void f() {
bool v = call_discard();
bool also_unreachable = false;
return;
}