summaryrefslogtreecommitdiffstats
path: root/Tests/CompileOptions/main.cpp
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-06-03 14:40:56 (GMT)
committerBrad King <brad.king@kitware.com>2021-06-07 17:39:21 (GMT)
commit8f68bcad8fafddc82b73b69f21e122ece8603a8f (patch)
tree6989359100a0b17e3e293f17c9327e86e0790e92 /Tests/CompileOptions/main.cpp
parentccc83ce1623a90c9354a940370ed8c06d2fea30b (diff)
downloadCMake-8f68bcad8fafddc82b73b69f21e122ece8603a8f.zip
CMake-8f68bcad8fafddc82b73b69f21e122ece8603a8f.tar.gz
CMake-8f68bcad8fafddc82b73b69f21e122ece8603a8f.tar.bz2
Tests: Add cases verifying flag ordering rules
Diffstat (limited to 'Tests/CompileOptions/main.cpp')
-rw-r--r--Tests/CompileOptions/main.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/Tests/CompileOptions/main.cpp b/Tests/CompileOptions/main.cpp
index ebc1017..23ce197 100644
--- a/Tests/CompileOptions/main.cpp
+++ b/Tests/CompileOptions/main.cpp
@@ -37,6 +37,24 @@
# endif
#endif
+#ifdef DO_FLAG_TESTS
+# if FLAG_A != 2
+# error "FLAG_A is not 2"
+# endif
+# if FLAG_B != 2
+# error "FLAG_B is not 2"
+# endif
+# if FLAG_C != 2
+# error "FLAG_C is not 2"
+# endif
+# if FLAG_D != 2
+# error "FLAG_D is not 2"
+# endif
+# if defined(FLAG_E) && FLAG_E != 2
+# error "FLAG_E is not 2"
+# endif
+#endif
+
#include <string.h>
int main()