From 0ff773a46addd76f39f4e560aa6cd6f3fe02544f Mon Sep 17 00:00:00 2001 From: Christophe Riccio Date: Sat, 15 Nov 2014 21:59:28 +0100 Subject: [PATCH] Added force CXX98 test --- test/core/CMakeLists.txt | 1 + test/core/core_setup_force_cxx98.cpp | 39 ++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 test/core/core_setup_force_cxx98.cpp diff --git a/test/core/CMakeLists.txt b/test/core/CMakeLists.txt index acab64d3..e986841b 100644 --- a/test/core/CMakeLists.txt +++ b/test/core/CMakeLists.txt @@ -28,6 +28,7 @@ glmCreateTestGTC(core_func_packing) glmCreateTestGTC(core_func_trigonometric) glmCreateTestGTC(core_func_vector_relational) glmCreateTestGTC(core_func_swizzle) +glmCreateTestGTC(core_setup_force_cxx98) glmCreateTestGTC(core_setup_message) glmCreateTestGTC(core_setup_precision) diff --git a/test/core/core_setup_force_cxx98.cpp b/test/core/core_setup_force_cxx98.cpp new file mode 100644 index 00000000..e3a92e78 --- /dev/null +++ b/test/core/core_setup_force_cxx98.cpp @@ -0,0 +1,39 @@ +/////////////////////////////////////////////////////////////////////////////////// +/// OpenGL Mathematics (glm.g-truc.net) +/// +/// Copyright (c) 2005 - 2014 G-Truc Creation (www.g-truc.net) +/// Permission is hereby granted, free of charge, to any person obtaining a copy +/// of this software and associated documentation files (the "Software"), to deal +/// in the Software without restriction, including without limitation the rights +/// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +/// copies of the Software, and to permit persons to whom the Software is +/// furnished to do so, subject to the following conditions: +/// +/// The above copyright notice and this permission notice shall be included in +/// all copies or substantial portions of the Software. +/// +/// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +/// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +/// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +/// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +/// THE SOFTWARE. +/// +/// @ref test +/// @file test/core/core_setup_force_cxx98.cpp +/// @date 2014-11-15 / 2014-11-15 +/// @author Christophe Riccio +/////////////////////////////////////////////////////////////////////////////////// + +#define GLM_FORCE_PURE +#define GLM_FORCE_CXX98 +#include +#include + +int main() +{ + int Error = 0; + + return Error; +}