diff options
author | Brad King <brad.king@kitware.com> | 2014-03-18 15:45:35 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-03-24 15:37:20 (GMT) |
commit | ff2e71572682d0ccfffd40a19ff259bb0c1f723b (patch) | |
tree | b5998e75ae396365f22999604650aed724f08435 /test | |
parent | 95c7a3dea54a7c23bf5fd3a9a7fd5adfe1f45414 (diff) | |
download | CastXML-ff2e71572682d0ccfffd40a19ff259bb0c1f723b.zip CastXML-ff2e71572682d0ccfffd40a19ff259bb0c1f723b.tar.gz CastXML-ff2e71572682d0ccfffd40a19ff259bb0c1f723b.tar.bz2 |
test: Add case for multiple class forward declarations
Diffstat (limited to 'test')
-rw-r--r-- | test/CMakeLists.txt | 1 | ||||
-rw-r--r-- | test/expect/gccxml.Class-incomplete-twice-xml.txt | 7 | ||||
-rw-r--r-- | test/input/Class-incomplete-twice.cxx | 4 |
3 files changed, 12 insertions, 0 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 5bca07d..5d1e255 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -86,6 +86,7 @@ castxml_test_gccxml(Class-bases) castxml_test_gccxml(Class-forward) castxml_test_gccxml(Class-friends) castxml_test_gccxml(Class-incomplete) +castxml_test_gccxml(Class-incomplete-twice) castxml_test_gccxml(Class-member-template) castxml_test_gccxml(Class-template) castxml_test_gccxml(Class-template-bases) diff --git a/test/expect/gccxml.Class-incomplete-twice-xml.txt b/test/expect/gccxml.Class-incomplete-twice-xml.txt new file mode 100644 index 0000000..ece58ff --- /dev/null +++ b/test/expect/gccxml.Class-incomplete-twice-xml.txt @@ -0,0 +1,7 @@ +^<\?xml version="1.0"\?> +<GCC_XML[^>]*> + <Namespace id="_1" name="start" context="_2" members="_3"/> + <Class id="_3" name="A" context="_1" location="f1:2" file="f1" line="2" incomplete="1"/> + <Namespace id="_2" name="::"/> + <File id="f1" name=".*/test/input/Class-incomplete-twice.cxx"/> +</GCC_XML>$ diff --git a/test/input/Class-incomplete-twice.cxx b/test/input/Class-incomplete-twice.cxx new file mode 100644 index 0000000..700ef6a --- /dev/null +++ b/test/input/Class-incomplete-twice.cxx @@ -0,0 +1,4 @@ +namespace start { + class A; + class A; +} |