From e3dc9a7af6f8f88ff7503bc3a70178e47802868d Mon Sep 17 00:00:00 2001 From: Mariusz Ceier Date: Mon, 15 Dec 2014 11:33:53 +0100 Subject: tests: C++ compilation test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This test includes one of wayland headers, which produced error with C++ compiler. C compiler can't be used for this test, because it issues only a warning[1] and only when wayland headers are not installed in system headers path (/usr/include). [1] wayland-server-protocol.h:201:2: warning: implicit declaration of function ‘wl_resource_post_event’ [daniels: Merged in Marek's follow-up to check for a C++ compiler.] Signed-off-by: Mariusz Ceier Signed-off-by: Marek Chalupa Reviewed-by: Daniel Stone --- tests/cpp-compile-test.cpp | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 tests/cpp-compile-test.cpp (limited to 'tests/cpp-compile-test.cpp') diff --git a/tests/cpp-compile-test.cpp b/tests/cpp-compile-test.cpp new file mode 100644 index 0000000..1e84e63 --- /dev/null +++ b/tests/cpp-compile-test.cpp @@ -0,0 +1,5 @@ +/* This source should compile fine with C++ compiler */ +#include "wayland-server-protocol.h" + +int main() { return 0; } + -- cgit v1.2.3-70-g09d2