summaryrefslogtreecommitdiffstats
path: root/Tests/CMakeCommands/target_compile_options/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/CMakeCommands/target_compile_options/main.cpp')
-rw-r--r--Tests/CMakeCommands/target_compile_options/main.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/Tests/CMakeCommands/target_compile_options/main.cpp b/Tests/CMakeCommands/target_compile_options/main.cpp
index 829a25e..edefdf2 100644
--- a/Tests/CMakeCommands/target_compile_options/main.cpp
+++ b/Tests/CMakeCommands/target_compile_options/main.cpp
@@ -15,6 +15,18 @@
#endif
+#ifdef DO_CLANG_TESTS
+
+# ifndef MY_PRIVATE_DEFINE
+# error Expected MY_PRIVATE_DEFINE
+# endif
+
+# ifdef MY_PUBLIC_DEFINE
+# error Unexpected MY_PUBLIC_DEFINE
+# endif
+
+#endif
+
int main()
{
return 0;