summaryrefslogtreecommitdiffstats
path: root/test/expect/gccxml.any.CXXLiteral.xml.txt
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-10-06 13:37:11 (GMT)
committerBrad King <brad.king@kitware.com>2016-10-06 13:40:34 (GMT)
commit96bafbccfdc0c3055d152db42de4780b5120c6e5 (patch)
treed0d4faf6bfca68173af3cbe34098f1e7e3f35111 /test/expect/gccxml.any.CXXLiteral.xml.txt
parente1ee6852c79eddafa2ce1f134c097decd27aaa69 (diff)
downloadCastXML-96bafbccfdc0c3055d152db42de4780b5120c6e5.zip
CastXML-96bafbccfdc0c3055d152db42de4780b5120c6e5.tar.gz
CastXML-96bafbccfdc0c3055d152db42de4780b5120c6e5.tar.bz2
Output: Avoid assertion failure on a FunctionDecl with no identifier
All C++98 function declarations have identifiers as names. Some C++11 function declarations, such as user defined literal operators, do not have identifiers. While we may implement support for these in a future non-gccxml output format, for now simply avoid an assertion failure by outputting such declarations as Unimplemented nodes. Issue: #76
Diffstat (limited to 'test/expect/gccxml.any.CXXLiteral.xml.txt')
-rw-r--r--test/expect/gccxml.any.CXXLiteral.xml.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/expect/gccxml.any.CXXLiteral.xml.txt b/test/expect/gccxml.any.CXXLiteral.xml.txt
new file mode 100644
index 0000000..7349496
--- /dev/null
+++ b/test/expect/gccxml.any.CXXLiteral.xml.txt
@@ -0,0 +1,6 @@
+^<\?xml version="1.0"\?>
+<GCC_XML[^>]*>
+ <Namespace id="_1" name="start" context="_2" members="_3"/>
+ <Unimplemented id="_3" kind="Function"/>
+ <Namespace id="_2" name="::"/>
+</GCC_XML>$