summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-12-10 14:59:02 (GMT)
committerBrad King <brad.king@kitware.com>2015-12-10 15:03:29 (GMT)
commit2a87046db10851ff1b8e101ecc345657ce663c76 (patch)
tree85d6706fcb763f9f5386a1c780869292e524e824 /test
parent96b5c2d10b2f6712a55be56ad58190ca19707634 (diff)
downloadCastXML-2a87046db10851ff1b8e101ecc345657ce663c76.zip
CastXML-2a87046db10851ff1b8e101ecc345657ce663c76.tar.gz
CastXML-2a87046db10851ff1b8e101ecc345657ce663c76.tar.bz2
Output: Skip Typedef elements that refer to rvalue references
The gccxml output format may contain only C++98 constructs.
Diffstat (limited to 'test')
-rw-r--r--test/expect/gccxml.any.RValueReferenceType.xml.txt6
-rw-r--r--test/input/RValueReferenceType.cxx4
2 files changed, 5 insertions, 5 deletions
diff --git a/test/expect/gccxml.any.RValueReferenceType.xml.txt b/test/expect/gccxml.any.RValueReferenceType.xml.txt
index 6899e98..763161e 100644
--- a/test/expect/gccxml.any.RValueReferenceType.xml.txt
+++ b/test/expect/gccxml.any.RValueReferenceType.xml.txt
@@ -1,7 +1,5 @@
^<\?xml version="1.0"\?>
<GCC_XML[^>]*>
- <Typedef id="_1" name="start" type="_2" context="_3" location="f1:1" file="f1" line="1"/>
- <Unimplemented id="_2" type_class="RValueReference"/>
- <Namespace id="_3" name="::"/>
- <File id="f1" name=".*/test/input/RValueReferenceType.cxx"/>
+ <Namespace id="_1" name="start" context="_2"/>
+ <Namespace id="_2" name="::"/>
</GCC_XML>$
diff --git a/test/input/RValueReferenceType.cxx b/test/input/RValueReferenceType.cxx
index 44f0232..35f2861 100644
--- a/test/input/RValueReferenceType.cxx
+++ b/test/input/RValueReferenceType.cxx
@@ -1 +1,3 @@
-typedef int&& start;
+namespace start {
+ typedef int&& type;
+}