summaryrefslogtreecommitdiff
path: root/tests/test_xpath_api.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_xpath_api.cpp')
-rw-r--r--tests/test_xpath_api.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/test_xpath_api.cpp b/tests/test_xpath_api.cpp
index b735f8c..d831712 100644
--- a/tests/test_xpath_api.cpp
+++ b/tests/test_xpath_api.cpp
@@ -130,6 +130,14 @@ TEST_XML(xpath_api_nodeset_copy, "<node><foo/><foo/></node>")
CHECK_STRING(copy4[0].node().name(), STR("foo"));
}
+TEST(xpath_api_nodeset_copy_empty)
+{
+ xpath_node_set set;
+ xpath_node_set set2 = set;
+ xpath_node_set set3;
+ set3 = set;
+}
+
TEST_XML(xpath_api_evaluate, "<node attr='3'/>")
{
xpath_query q(STR("node/@attr"));