From 5587f403b1555fa71ea88130852eb6e84df50368 Mon Sep 17 00:00:00 2001 From: Brad King Date: Thu, 6 Mar 2014 14:21:09 -0500 Subject: test: Add case for using declaration in derived class Cover a class that brings overloads from a base through a using declaration. --- test/CMakeLists.txt | 1 + test/expect/gccxml.using-declaration-class-xml.txt | 39 ++++++++++++++++++++++ test/input/using-declaration-class.cxx | 8 +++++ 3 files changed, 48 insertions(+) create mode 100644 test/expect/gccxml.using-declaration-class-xml.txt create mode 100644 test/input/using-declaration-class.cxx diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 6d04fcf..42abd2c 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -103,6 +103,7 @@ castxml_test_gccxml(Variable-in-Class) castxml_test_gccxml(Variable-init) castxml_test_gccxml(qualified-type-name) +castxml_test_gccxml(using-declaration-class) castxml_test_gccxml(using-declaration-ns) castxml_test_gccxml(using-declaration-start) castxml_test_gccxml(using-directive-ns) diff --git a/test/expect/gccxml.using-declaration-class-xml.txt b/test/expect/gccxml.using-declaration-class-xml.txt new file mode 100644 index 0000000..08d4188 --- /dev/null +++ b/test/expect/gccxml.using-declaration-class-xml.txt @@ -0,0 +1,39 @@ +^<\?xml version="1.0"\?> +]*> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +$ diff --git a/test/input/using-declaration-class.cxx b/test/input/using-declaration-class.cxx new file mode 100644 index 0000000..7b5ad6b --- /dev/null +++ b/test/input/using-declaration-class.cxx @@ -0,0 +1,8 @@ +class base { +protected: + int f(int); +}; +class start: public base { + using base::f; + int f(char); +}; -- cgit v0.12