summaryrefslogtreecommitdiff
path: root/tests/cxx-test.C
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cxx-test.C')
-rw-r--r--tests/cxx-test.C29
1 files changed, 29 insertions, 0 deletions
diff --git a/tests/cxx-test.C b/tests/cxx-test.C
new file mode 100644
index 00000000..7142152b
--- /dev/null
+++ b/tests/cxx-test.C
@@ -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_X
+#include <pango/pangox.h>
+#endif
+
+#ifdef HAVE_XFT
+#include <pango/pangoxft.h>
+#endif
+
+#ifdef HAVE_FREETYPE
+#include <pango/pangoft2.h>
+#endif
+
+#ifdef HAVE_WIN32
+#include <pango/pangowin32.h>
+#endif
+
+int
+main ()
+{
+ return 0;
+}