blob: 026e183153c96e55cb2290cdf01effab161601fa [file] [log] [blame]
// Check that for backends that generate builtin helpers, repeated use of the
// same builtin overload results in single helper being generated.
@compute @workgroup_size(1)
fn main() {
_ = degrees(vec4<f32>());
_ = degrees(vec4<f32>(1.));
_ = degrees(vec4<f32>(1., 2., 3., 4.));
_ = degrees(vec3<f32>());
_ = degrees(vec3<f32>(1.));
_ = degrees(vec3<f32>(1., 2., 3.));
_ = degrees(vec2<f32>());
_ = degrees(vec2<f32>(1.));
_ = degrees(vec2<f32>(1., 2.));
_ = degrees(1.);
_ = degrees(2.);
_ = degrees(3.);
}