summaryrefslogtreecommitdiff
path: root/test cases/objc/3 objc args/prog.m
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2017-12-19 21:10:52 -0800
committerDylan Baker <dylan@pnwbakers.com>2018-01-06 13:49:34 -0800
commit0ec7dd5ac53b0a6955ecce65c011a5d06631bd94 (patch)
tree7f4566fcd01c8ad27a4b78fb5eaf23409bf7dde0 /test cases/objc/3 objc args/prog.m
parent87742fd9f016873fcd9d91ef8bc4c3b1be925224 (diff)
downloadmeson-0ec7dd5ac53b0a6955ecce65c011a5d06631bd94.tar.gz
tests: Split objc and objc++ tests
This allows platforms that can compile one or the other (but not both) to run the tests that they can.
Diffstat (limited to 'test cases/objc/3 objc args/prog.m')
-rw-r--r--test cases/objc/3 objc args/prog.m11
1 files changed, 11 insertions, 0 deletions
diff --git a/test cases/objc/3 objc args/prog.m b/test cases/objc/3 objc args/prog.m
new file mode 100644
index 000000000..bfd686a86
--- /dev/null
+++ b/test cases/objc/3 objc args/prog.m
@@ -0,0 +1,11 @@
+#import<stdio.h>
+
+int main(int argc, char **argv)
+{
+#ifdef MESON_TEST
+ int x = 3;
+#endif
+
+ printf("x = %d\n", x);
+ return 0;
+}