float fp_contract_1(float a, float b, float c) {
#pragma STDC FP_CONTRACT ON
return a * b + c;
}
float fp_contract_2(float a, float b, float c) {
{
#pragma STDC FP_CONTRACT ON
}
return a * b + c;
}
class Foo {};
Foo operator+(Foo, Foo);
template <typename T>
T template_muladd(T a, T b, T c) {
#pragma STDC FP_CONTRACT ON
return a * b + c;
}
float fp_contract_3(float a, float b, float c) {
return template_muladd<float>(a, b, c);
}
template<typename T> class fp_contract_4 {
float method(float a, float b, float c) {
#pragma STDC FP_CONTRACT ON
return a * b + c;
}
};
template class fp_contract_4<int>;
#pragma STDC FP_CONTRACT ON
float fp_contract_5(float a, float b, float c) {
return a * b + c;
}
#pragma STDC FP_CONTRACT OFF
float fp_contract_6(float a, float b, float c) {
return a * b + c;
}
float fp_contract_7(float a, float b, float c) {
#pragma STDC FP_CONTRACT ON
return (a = 2 * b) - c;
}
float fp_contract_8(float a, float b, float c) {
#pragma STDC FP_CONTRACT ON
return a * b - c;
}
float fp_contract_9(float a, float b, float c) {
#pragma STDC FP_CONTRACT ON
return c - a * b;
}