blob: 4a7c5ee95f0713d98fedd12fee37e86913914762 [file] [log] [blame]
const slen = 4;
const ulen = 4u;
@fragment
fn main() {
var signed_literal : array<f32, 4>;
var unsigned_literal : array<f32, 4u>;
var signed_constant : array<f32, slen>;
var unsigned_constant : array<f32, ulen>;
var shr_const_expr : array<f32, 1<<2>;
// Ensure that the types are compatible.
unsigned_literal = signed_literal;
signed_constant = signed_literal;
unsigned_constant = signed_literal;
shr_const_expr = signed_literal;
}