aboutsummaryrefslogtreecommitdiffstats
path: root/bindings/cpp/test/headers/test_headers.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2025-01-21 11:48:14 -0500
committerDavid Robillard <d@drobilla.net>2025-01-21 11:48:14 -0500
commit51aae63069fb93a9994cae72f8c28cee06f92362 (patch)
treef708c503a72d2c4bf06856d81cf49286b02b10b7 /bindings/cpp/test/headers/test_headers.cpp
parent8c8c268bf2166b9049b51cde89a3330462771249 (diff)
downloadpugl-51aae63069fb93a9994cae72f8c28cee06f92362.tar.gz
pugl-51aae63069fb93a9994cae72f8c28cee06f92362.tar.bz2
pugl-51aae63069fb93a9994cae72f8c28cee06f92362.zip
Add header warning tests
Diffstat (limited to 'bindings/cpp/test/headers/test_headers.cpp')
-rw-r--r--bindings/cpp/test/headers/test_headers.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/bindings/cpp/test/headers/test_headers.cpp b/bindings/cpp/test/headers/test_headers.cpp
new file mode 100644
index 0000000..a28f537
--- /dev/null
+++ b/bindings/cpp/test/headers/test_headers.cpp
@@ -0,0 +1,20 @@
+// Copyright 2022-2025 David Robillard <d@drobilla.net>
+// SPDX-License-Identifier: ISC
+
+#include <pugl/cairo.hpp> // IWYU pragma: keep
+#include <pugl/gl.hpp> // IWYU pragma: keep
+#include <pugl/pugl.hpp> // IWYU pragma: keep
+#include <pugl/stub.hpp> // IWYU pragma: keep
+
+#ifdef PUGL_TEST_VULKAN
+# include <pugl/vulkan.hpp> // IWYU pragma: keep
+#endif
+
+#ifdef __GNUC__
+__attribute__((const))
+#endif
+int
+main()
+{
+ return 0;
+}