diff options
Diffstat (limited to 'test/cpp/test_inline_objcpp.mm')
-rw-r--r-- | test/cpp/test_inline_objcpp.mm | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/test/cpp/test_inline_objcpp.mm b/test/cpp/test_inline_objcpp.mm new file mode 100644 index 0000000..b4d65c6 --- /dev/null +++ b/test/cpp/test_inline_objcpp.mm @@ -0,0 +1,38 @@ +// Copyright 2021 David Robillard <d@drobilla.net> +// SPDX-License-Identifier: ISC + +// Tests that the implementation compiles as included ObjC++ + +#if defined(__clang__) +# pragma clang diagnostic push +# pragma clang diagnostic ignored "-Wzero-as-null-pointer-constant" +# pragma clang diagnostic ignored "-Wold-style-cast" +#endif + +#include "../../src/common.c" // IWYU pragma: keep +#include "../../src/internal.c" // IWYU pragma: keep +#include "../../src/mac.h" // IWYU pragma: keep +#include "../../src/mac.m" // IWYU pragma: keep +#include "../../src/mac_stub.m" // IWYU pragma: keep + +#if defined(WITH_CAIRO) +# include "../../src/mac_cairo.m" // IWYU pragma: keep +#endif + +#if defined(WITH_OPENGL) +# include "../../src/mac_gl.m" // IWYU pragma: keep +#endif + +#if defined(WITH_VULKAN) +# include "../../src/mac_vulkan.m" // IWYU pragma: keep +#endif + +#if defined(__clang__) +# pragma clang diagnostic pop +#endif + +int +main(void) +{ + return 0; +} |