summaryrefslogtreecommitdiffstats
path: root/officecfg/qa/cppheader.cxx
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--officecfg/qa/cppheader.cxx36
1 files changed, 36 insertions, 0 deletions
diff --git a/officecfg/qa/cppheader.cxx b/officecfg/qa/cppheader.cxx
new file mode 100644
index 000000000..39f8b4856
--- /dev/null
+++ b/officecfg/qa/cppheader.cxx
@@ -0,0 +1,36 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ */
+
+#include <sal/types.h>
+#include <cppunit/TestAssert.h>
+#include <cppunit/TestFixture.h>
+#include <cppunit/extensions/HelperMacros.h>
+#include <cppunit/plugin/TestPlugIn.h>
+
+// Just verify that all the generated headers can be included (i.e., that all
+// the identifiers are valid and do not clash:
+#include <officecfg/officecfg_qa_allheaders.hxx>
+
+namespace {
+
+class Test: public CppUnit::TestFixture {
+ void test() {}
+
+ CPPUNIT_TEST_SUITE(Test);
+ CPPUNIT_TEST(test);
+ CPPUNIT_TEST_SUITE_END();
+};
+
+CPPUNIT_TEST_SUITE_REGISTRATION(Test);
+
+}
+
+CPPUNIT_PLUGIN_IMPLEMENT();
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */