aboutsummaryrefslogtreecommitdiffstats
path: root/meson/test cases/cmake/24 mixing languages/subprojects/cmTest/cmTest.c
diff options
context:
space:
mode:
Diffstat (limited to 'meson/test cases/cmake/24 mixing languages/subprojects/cmTest/cmTest.c')
-rw-r--r--meson/test cases/cmake/24 mixing languages/subprojects/cmTest/cmTest.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/meson/test cases/cmake/24 mixing languages/subprojects/cmTest/cmTest.c b/meson/test cases/cmake/24 mixing languages/subprojects/cmTest/cmTest.c
new file mode 100644
index 000000000..066d67671
--- /dev/null
+++ b/meson/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);
+}