From 3733978d9c7768baaeb6199c05bc98939c15c8cd Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Fri, 22 Feb 2019 13:48:09 -0800 Subject: Implement __builtin_nanf for empty string literals --- tests/builtin-nanf.c | 1 + tests/builtin-nanf.qbe | 1 + 2 files changed, 2 insertions(+) create mode 100644 tests/builtin-nanf.c create mode 100644 tests/builtin-nanf.qbe (limited to 'tests') diff --git a/tests/builtin-nanf.c b/tests/builtin-nanf.c new file mode 100644 index 0000000..d239a46 --- /dev/null +++ b/tests/builtin-nanf.c @@ -0,0 +1 @@ +float x = __builtin_nanf(""); diff --git a/tests/builtin-nanf.qbe b/tests/builtin-nanf.qbe new file mode 100644 index 0000000..5fd7ac2 --- /dev/null +++ b/tests/builtin-nanf.qbe @@ -0,0 +1 @@ +export data $x = align 4 { s s_nan, } -- cgit v1.2.3