aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/12-flt.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/12-flt.c')
-rw-r--r--test/12-flt.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/12-flt.c b/test/12-flt.c
index 36f4e90..5077026 100644
--- a/test/12-flt.c
+++ b/test/12-flt.c
@@ -40,6 +40,11 @@ double nummod(double a, double b) {
return m;
}
+double branch(double a) {
+ if (a + 1.1) return 0.0;
+ return -a;
+}
+
int main() {
NAN/=0.0;
assert(_(1.0) < _(2.0));