From 0ec7dd5ac53b0a6955ecce65c011a5d06631bd94 Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Tue, 19 Dec 2017 21:10:52 -0800 Subject: 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. --- test cases/objcpp/2 objc++ args/prog.mm | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 test cases/objcpp/2 objc++ args/prog.mm (limited to 'test cases/objcpp/2 objc++ args/prog.mm') diff --git a/test cases/objcpp/2 objc++ args/prog.mm b/test cases/objcpp/2 objc++ args/prog.mm new file mode 100644 index 000000000..3decaf230 --- /dev/null +++ b/test cases/objcpp/2 objc++ args/prog.mm @@ -0,0 +1,16 @@ +#import + +class TestClass +{ +}; + +int main(int argc, char **argv) +{ +#ifdef MESON_OBJCPP_TEST +int x = 1; +#endif + + printf("x = %x\n", x); + + return 0; +} -- cgit v1.2.3