Browse Source

Added force defines tests

Christophe Riccio 6 years ago
parent
commit
3ee3659adb

+ 7 - 0
test/core/CMakeLists.txt

@@ -2,8 +2,15 @@ glmCreateTestGTC(core_cpp_constexpr)
 glmCreateTestGTC(core_cpp_defaulted_ctor)
 glmCreateTestGTC(core_force_aligned_gentypes)
 glmCreateTestGTC(core_force_ctor_init)
+glmCreateTestGTC(core_force_cxx03)
+glmCreateTestGTC(core_force_cxx11)
+glmCreateTestGTC(core_force_cxx98)
+glmCreateTestGTC(core_force_arch_unknown)
+glmCreateTestGTC(core_force_compiler_unknown)
+glmCreateTestGTC(core_force_cxx_unknown)
 glmCreateTestGTC(core_force_explicit_ctor)
 glmCreateTestGTC(core_force_inline)
+glmCreateTestGTC(core_force_platform_unknown)
 glmCreateTestGTC(core_force_pure)
 glmCreateTestGTC(core_force_unrestricted_gentype)
 glmCreateTestGTC(core_force_xyzw_only)

+ 12 - 0
test/core/core_force_arch_unknown.cpp

@@ -0,0 +1,12 @@
+#define GLM_FORCE_ARCH_UNKNOWN
+
+#include <glm/glm.hpp>
+#include <glm/ext.hpp>
+
+int main()
+{
+	int Error = 0;
+
+	return Error;
+}
+

+ 12 - 0
test/core/core_force_compiler_unknown.cpp

@@ -0,0 +1,12 @@
+#define GLM_FORCE_COMPILER_UNKNOWN
+
+#include <glm/glm.hpp>
+#include <glm/ext.hpp>
+
+int main()
+{
+	int Error = 0;
+
+	return Error;
+}
+

+ 12 - 0
test/core/core_force_cxx03.cpp

@@ -0,0 +1,12 @@
+#define GLM_FORCE_CXX03
+
+#include <glm/glm.hpp>
+#include <glm/ext.hpp>
+
+int main()
+{
+	int Error = 0;
+
+	return Error;
+}
+

+ 12 - 0
test/core/core_force_cxx11.cpp

@@ -0,0 +1,12 @@
+#define GLM_FORCE_CXX11
+
+#include <glm/glm.hpp>
+#include <glm/ext.hpp>
+
+int main()
+{
+	int Error = 0;
+
+	return Error;
+}
+

+ 12 - 0
test/core/core_force_cxx98.cpp

@@ -0,0 +1,12 @@
+#define GLM_FORCE_CXX98
+
+#include <glm/glm.hpp>
+#include <glm/ext.hpp>
+
+int main()
+{
+	int Error = 0;
+
+	return Error;
+}
+

+ 12 - 0
test/core/core_force_cxx_unknown.cpp

@@ -0,0 +1,12 @@
+#define GLM_FORCE_CXX_UNKNOWN
+
+#include <glm/glm.hpp>
+#include <glm/ext.hpp>
+
+int main()
+{
+	int Error = 0;
+
+	return Error;
+}
+

+ 12 - 0
test/core/core_force_depth_zero_to_one.cpp

@@ -0,0 +1,12 @@
+#define GLM_FORCE_DEPTH_ZERO_TO_ONE
+
+#include <glm/glm.hpp>
+#include <glm/ext.hpp>
+
+int main()
+{
+	int Error = 0;
+
+	return Error;
+}
+

+ 12 - 0
test/core/core_force_left_handed.cpp

@@ -0,0 +1,12 @@
+#define GLM_FORCE_LEFT_HANDED
+
+#include <glm/glm.hpp>
+#include <glm/ext.hpp>
+
+int main()
+{
+	int Error = 0;
+
+	return Error;
+}
+

+ 12 - 0
test/core/core_force_platform_unknown.cpp

@@ -0,0 +1,12 @@
+#define GLM_FORCE_PLATFORM_UNKNOWN
+
+#include <glm/glm.hpp>
+#include <glm/ext.hpp>
+
+int main()
+{
+	int Error = 0;
+
+	return Error;
+}
+

+ 12 - 0
test/core/core_force_size_t_length.cpp

@@ -0,0 +1,12 @@
+#define GLM_FORCE_SIZE_T_LENGTH
+
+#include <glm/glm.hpp>
+#include <glm/ext.hpp>
+
+int main()
+{
+	int Error = 0;
+
+	return Error;
+}
+