summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/CMakeLists.txt1
-rw-r--r--test/expect/gccxml.ReferenceType-xml.txt8
-rw-r--r--test/input/ReferenceType.cxx1
3 files changed, 10 insertions, 0 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index f0fe95d..b47f528 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -57,3 +57,4 @@ castxml_test_gccxml(CvQualifiedType)
castxml_test_gccxml(FundamentalType)
castxml_test_gccxml(Namespace)
castxml_test_gccxml(PointerType)
+castxml_test_gccxml(ReferenceType)
diff --git a/test/expect/gccxml.ReferenceType-xml.txt b/test/expect/gccxml.ReferenceType-xml.txt
new file mode 100644
index 0000000..ec38243
--- /dev/null
+++ b/test/expect/gccxml.ReferenceType-xml.txt
@@ -0,0 +1,8 @@
+^<\?xml version="1.0"\?>
+<GCC_XML[^>]*>
+ <Typedef id="_1" name="start" type="_2" context="_3" location="f1:1" file="f1" line="1"/>
+ <ReferenceType id="_2" type="_4"/>
+ <Namespace id="_3" name="::"/>
+ <FundamentalType id="_4" name="int"/>
+ <File id="f1" name=".*/test/input/ReferenceType.cxx"/>
+</GCC_XML>$
diff --git a/test/input/ReferenceType.cxx b/test/input/ReferenceType.cxx
new file mode 100644
index 0000000..6cfa692
--- /dev/null
+++ b/test/input/ReferenceType.cxx
@@ -0,0 +1 @@
+typedef int &start;