summaryrefslogtreecommitdiff
path: root/tests/test_cases/cflags/public/half3f.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_cases/cflags/public/half3f.cpp')
-rw-r--r--tests/test_cases/cflags/public/half3f.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/test_cases/cflags/public/half3f.cpp b/tests/test_cases/cflags/public/half3f.cpp
new file mode 100644
index 0000000..88b6d55
--- /dev/null
+++ b/tests/test_cases/cflags/public/half3f.cpp
@@ -0,0 +1,7 @@
+#include "half3/half3.hpp"
+
+#ifndef HALF_PRECISION_DOUBLE
+#error should be defined
+#endif
+
+float half3f() { return static_cast<float>(half3()); }