summaryrefslogtreecommitdiffstats
path: root/test cases/cmake/24 mixing languages/subprojects/cmTest/cmTest.c
diff options
context:
space:
mode:
Diffstat (limited to 'test cases/cmake/24 mixing languages/subprojects/cmTest/cmTest.c')
-rw-r--r--test cases/cmake/24 mixing languages/subprojects/cmTest/cmTest.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/test cases/cmake/24 mixing languages/subprojects/cmTest/cmTest.c b/test cases/cmake/24 mixing languages/subprojects/cmTest/cmTest.c
new file mode 100644
index 0000000..066d676
--- /dev/null
+++ b/test cases/cmake/24 mixing languages/subprojects/cmTest/cmTest.c
@@ -0,0 +1,13 @@
+#include "cmTest.h"
+#include <stdio.h>
+
+#if SOME_MAGIC_DEFINE != 42
+#error "SOME_MAGIC_DEFINE != 42"
+#endif
+
+int foo(int x);
+
+int doStuff(void) {
+ printf("Hello World\n");
+ return foo(42);
+}