ad0224d6cadc086db0f44b8324134427d150a91f
1 /* C99 6.5.2.2 Function calls.
2 Test structure passing and return values involving decimal floating
14 } nums
= { 1.0dl
, 'a', 2.0dd
, 'b', 3.0df
};
17 d32_field (struct example s
)
23 d64_field (struct example s
)
29 d128_field (struct example s
)
35 dummy1_field (struct example s
)
41 dummy2_field (struct example s
)
47 ptr_d32_field (struct example
*s
)
53 ptr_d64_field (struct example
*s
)
59 ptr_d128_field (struct example
*s
)
65 ptr_dummy1_field (struct example
*s
)
71 ptr_dummy2_field (struct example
*s
)
80 if (d32_field (nums
) != 3.0df
) FAILURE
81 if (d64_field (nums
) != 2.0dd
) FAILURE
82 if (d128_field (nums
) != 1.0dl
) FAILURE
83 if (dummy1_field (nums
) != 'a') FAILURE
84 if (dummy2_field (nums
) != 'b') FAILURE
86 if (ptr_d32_field (&nums
) != 3.0df
) FAILURE
87 if (ptr_d64_field (&nums
) != 2.0dd
) FAILURE
88 if (ptr_d128_field (&nums
) != 1.0dl
) FAILURE
89 if (ptr_dummy1_field (&nums
) != 'a') FAILURE
90 if (ptr_dummy2_field (&nums
) != 'b') FAILURE