From bd0bb7a0dd611f5eef3ea8f33a1cceb6c9cc52d7 Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 26 Feb 2014 15:58:09 -0500 Subject: test: Add case for a Variable as Class member --- test/CMakeLists.txt | 1 + test/expect/gccxml.Variable-in-Class-xml.txt | 19 +++++++++++++++++++ test/input/Variable-in-Class.cxx | 3 +++ 3 files changed, 23 insertions(+) create mode 100644 test/expect/gccxml.Variable-in-Class-xml.txt create mode 100644 test/input/Variable-in-Class.cxx diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index df6bbe9..62e3e4f 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -84,5 +84,6 @@ castxml_test_gccxml(PointerType) castxml_test_gccxml(ReferenceType) castxml_test_gccxml(Typedef-to-Class-template) castxml_test_gccxml(Variable) +castxml_test_gccxml(Variable-in-Class) castxml_test_gccxml(qualified-type-name) diff --git a/test/expect/gccxml.Variable-in-Class-xml.txt b/test/expect/gccxml.Variable-in-Class-xml.txt new file mode 100644 index 0000000..ed21fda --- /dev/null +++ b/test/expect/gccxml.Variable-in-Class-xml.txt @@ -0,0 +1,19 @@ +^<\?xml version="1.0"\?> +]*> + + + + + + + + + + + + + + + + +$ diff --git a/test/input/Variable-in-Class.cxx b/test/input/Variable-in-Class.cxx new file mode 100644 index 0000000..2aa9004 --- /dev/null +++ b/test/input/Variable-in-Class.cxx @@ -0,0 +1,3 @@ +class start { + static int static_field; +}; -- cgit v0.12