aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/builtin-nanf.c1
-rw-r--r--tests/builtin-nanf.qbe1
2 files changed, 2 insertions, 0 deletions
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, }