diff options
author | Arseny Kapoulkine <arseny.kapoulkine@gmail.com> | 2015-10-06 07:26:24 -0700 |
---|---|---|
committer | Arseny Kapoulkine <arseny.kapoulkine@gmail.com> | 2015-10-06 07:26:24 -0700 |
commit | 6e5163ba3e47cc95c3ce6f34a39643b973ca11f7 (patch) | |
tree | eefd9d62b9945fbeee16b0bfa95fd481071f1b64 /tests/test_header_only.cpp | |
parent | 299e0b07c992dfcbacac2f165cdbb39c4e49af02 (diff) |
tests: Add a copy of header-only test
This makes sure we get linking errors whenever a symbol is not marked as inline
in header-only mode.
Diffstat (limited to 'tests/test_header_only.cpp')
-rw-r--r-- | tests/test_header_only.cpp | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/tests/test_header_only.cpp b/tests/test_header_only.cpp deleted file mode 100644 index 17cafca..0000000 --- a/tests/test_header_only.cpp +++ /dev/null @@ -1,19 +0,0 @@ -#define PUGIXML_HEADER_ONLY -#define pugi pugih - -#include "common.hpp" - -// Check header guards -#include "../src/pugixml.hpp" -#include "../src/pugixml.hpp" - -TEST(header_only) -{ - xml_document doc; - CHECK(doc.load_string(STR("<node/>"))); - CHECK_STRING(doc.first_child().name(), STR("node")); - -#ifndef PUGIXML_NO_XPATH - CHECK(doc.first_child() == doc.select_node(STR("//*")).node()); -#endif -} |