diff options
Diffstat (limited to 'tests/test_cases/cflags/public/test_use_half3f.cpp')
-rw-r--r-- | tests/test_cases/cflags/public/test_use_half3f.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/test_cases/cflags/public/test_use_half3f.cpp b/tests/test_cases/cflags/public/test_use_half3f.cpp new file mode 100644 index 0000000..078e69c --- /dev/null +++ b/tests/test_cases/cflags/public/test_use_half3f.cpp @@ -0,0 +1,10 @@ +#include "half3f/half3f.hpp" + +#ifdef HALF_PRECISION_DOUBLE +#error should not be defined +#endif + +int main() { + auto result = half3f(); + return result > 1 and result < 2 ? 0 : 1; +} |