summaryrefslogtreecommitdiff
path: root/tests/cxx-test.cpp
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2017-05-19 11:53:24 +0100
committerEmmanuele Bassi <ebassi@gnome.org>2017-05-19 17:23:44 +0100
commit4819027c6e072c2e9e45228f8afd5d0767545026 (patch)
tree9e72e4b9e85143b6e207ab9224ec8da8f2ca9e28 /tests/cxx-test.cpp
parent89fddbe462d7d7d75c005b48dd9990e6fe1be61b (diff)
downloadpango-4819027c6e072c2e9e45228f8afd5d0767545026.tar.gz
tests: Use the appropriate extension for the C++ test
While `.C` is a valid GCC extension for C++ files, it only works for case sensitive file systems. Let's use `.cpp`, like the rest of the planet does.
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;
+}