summaryrefslogtreecommitdiff
path: root/tests/cxx-test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cxx-test.cpp')
-rw-r--r--tests/cxx-test.cpp29
1 files changed, 29 insertions, 0 deletions
diff --git a/tests/cxx-test.cpp b/tests/cxx-test.cpp
new file mode 100644
index 00000000..643bc710
--- /dev/null
+++ b/tests/cxx-test.cpp
@@ -0,0 +1,29 @@
+/* This test makes sure that all Pango headers can be included
+ * and compiled in a C++ program.
+ */
+#define PANGO_ENABLE_ENGINE
+#define PANGO_ENABLE_BACKEND
+
+#include <pango/pango.h>
+
+#ifdef HAVE_WIN32
+#include <pango/pangowin32.h>
+#endif
+
+#ifdef HAVE_XFT
+#include <pango/pangoxft.h>
+#endif
+
+#ifdef HAVE_FREETYPE
+#include <pango/pangoft2.h>
+#endif
+
+#ifdef HAVE_CAIRO
+#include <pango/pangocairo.h>
+#endif
+
+int
+main ()
+{
+ return 0;
+}