aboutsummaryrefslogtreecommitdiffstats
path: root/test/cpp/test_build.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/cpp/test_build.cpp')
-rw-r--r--test/cpp/test_build.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/cpp/test_build.cpp b/test/cpp/test_build.cpp
new file mode 100644
index 0000000..4fd2dac
--- /dev/null
+++ b/test/cpp/test_build.cpp
@@ -0,0 +1,20 @@
+// Copyright 2020 David Robillard <d@drobilla.net>
+// SPDX-License-Identifier: ISC
+
+/*
+ Tests that C++ headers compile without any warnings.
+*/
+
+#define PUGL_DISABLE_DEPRECATED
+
+#include "pugl/cairo.hpp" // IWYU pragma: keep
+#include "pugl/gl.hpp" // IWYU pragma: keep
+#include "pugl/pugl.h" // IWYU pragma: keep
+#include "pugl/pugl.hpp" // IWYU pragma: keep
+#include "pugl/stub.hpp" // IWYU pragma: keep
+
+int
+main()
+{
+ return 0;
+}