summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/test_parse.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/test_parse.cpp b/tests/test_parse.cpp
index 9c94687..7d4958a 100644
--- a/tests/test_parse.cpp
+++ b/tests/test_parse.cpp
@@ -577,6 +577,7 @@ TEST(parse_declaration_error)
}
CHECK(doc.load(STR("<?xml version='1?>"), parse_minimal | parse_declaration).status == status_bad_attribute);
+ CHECK(doc.load(STR("<foo><?xml version='1'?></foo>"), parse_minimal | parse_declaration).status == status_bad_pi);
}
TEST(parse_empty)