summaryrefslogtreecommitdiff
path: root/tests/test_cases/cflags/public/main_use_half3f.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_cases/cflags/public/main_use_half3f.cpp')
-rw-r--r--tests/test_cases/cflags/public/main_use_half3f.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/test_cases/cflags/public/main_use_half3f.cpp b/tests/test_cases/cflags/public/main_use_half3f.cpp
new file mode 100644
index 0000000..3e855cd
--- /dev/null
+++ b/tests/test_cases/cflags/public/main_use_half3f.cpp
@@ -0,0 +1,11 @@
+#include "half3f/half3f.hpp"
+#include <iostream>
+
+#ifdef HALF_PRECISION_DOUBLE
+#error should not be defined
+#endif
+
+int main() {
+ std::cout << half3f() << std::endl;
+ return 0;
+}