summaryrefslogtreecommitdiffstats
path: root/Tests/CMakeCommands/target_compile_definitions/consumer.c
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/CMakeCommands/target_compile_definitions/consumer.c')
-rw-r--r--Tests/CMakeCommands/target_compile_definitions/consumer.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/Tests/CMakeCommands/target_compile_definitions/consumer.c b/Tests/CMakeCommands/target_compile_definitions/consumer.c
index bacd4c4..bb65e01 100644
--- a/Tests/CMakeCommands/target_compile_definitions/consumer.c
+++ b/Tests/CMakeCommands/target_compile_definitions/consumer.c
@@ -35,6 +35,10 @@
# endif
#endif
+#if !LANG_IS_C_OR_CXX
+# error Expected LANG_IS_C_OR_CXX
+#endif
+
void consumer_c()
{
}