From ddec418a8f27e62ae9f37cd03d28a42eeaa1527f Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Thu, 5 Jun 2014 13:16:56 +0200 Subject: Features: Add compiler version support to WriteCompilerDetectionHeader. --- Tests/Module/WriteCompilerDetectionHeader/main.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'Tests/Module/WriteCompilerDetectionHeader/main.cpp') diff --git a/Tests/Module/WriteCompilerDetectionHeader/main.cpp b/Tests/Module/WriteCompilerDetectionHeader/main.cpp index 8b4ea52f47..b807ad5eb0 100644 --- a/Tests/Module/WriteCompilerDetectionHeader/main.cpp +++ b/Tests/Module/WriteCompilerDetectionHeader/main.cpp @@ -13,6 +13,18 @@ #error cxx_variadic_templates expected availability did not match. #endif +#if !CHECK(VERSION_MAJOR) +#error Compiler major version did not match. +#endif + +#if !CHECK(VERSION_MINOR) +#error Compiler minor version did not match. +#endif + +#if !CHECK(VERSION_PATCH) +#error Compiler patch version did not match. +#endif + int main() { return 0; -- cgit v1.2.1