summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/CMakeLists.txt2
-rw-r--r--test/expect/gccxml.Namespace-xml.txt5
-rw-r--r--test/input/Namespace.cxx1
3 files changed, 8 insertions, 0 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index 3bb3f1d..dd90307 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -50,3 +50,5 @@ castxml_test_cmd(gccxml-and-E --castxml-gccxml -E)
castxml_test_cmd(gccxml-twice --castxml-gccxml --castxml-gccxml)
castxml_test_cmd(o-missing -o)
castxml_test_cmd(start-missing --castxml-start)
+
+castxml_test_gccxml(Namespace)
diff --git a/test/expect/gccxml.Namespace-xml.txt b/test/expect/gccxml.Namespace-xml.txt
new file mode 100644
index 0000000..763161e
--- /dev/null
+++ b/test/expect/gccxml.Namespace-xml.txt
@@ -0,0 +1,5 @@
+^<\?xml version="1.0"\?>
+<GCC_XML[^>]*>
+ <Namespace id="_1" name="start" context="_2"/>
+ <Namespace id="_2" name="::"/>
+</GCC_XML>$
diff --git a/test/input/Namespace.cxx b/test/input/Namespace.cxx
new file mode 100644
index 0000000..a3102e6
--- /dev/null
+++ b/test/input/Namespace.cxx
@@ -0,0 +1 @@
+namespace start {}