blob: dcbb015db0a1371c058b190cf7b10c2de4fc2b4c [file] [log] [blame]
Ben Clayton47dd3012023-04-26 18:27:53 +00001struct frexp_result_f32_1 {
2 float fract;
3 int exp;
4};
5struct frexp_result_f32 {
6 float f;
7};
8
9static frexp_result_f32 a = (frexp_result_f32)0;
Ben Clayton2d501c52024-01-17 01:27:37 +000010static const frexp_result_f32_1 c = {0.5f, 1};
Ben Clayton47dd3012023-04-26 18:27:53 +000011static frexp_result_f32_1 b = c;
12
13struct tint_symbol {
14 float4 value : SV_Target0;
15};
16
17float4 main_inner() {
18 return float4(a.f, b.fract, 0.0f, 0.0f);
19}
20
21tint_symbol main() {
Antonio Maiorano144ebed2024-01-30 16:30:15 +000022 float4 inner_result = main_inner();
Ben Clayton47dd3012023-04-26 18:27:53 +000023 tint_symbol wrapper_result = (tint_symbol)0;
24 wrapper_result.value = inner_result;
25 return wrapper_result;
26}