diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/CMakeLists.txt | 1 | ||||
-rw-r--r-- | test/expect/gccxml.Function-Argument-decay-xml.txt | 17 | ||||
-rw-r--r-- | test/input/Function-Argument-decay.cxx | 1 |
3 files changed, 19 insertions, 0 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 6fc5cf8..e95af68 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -98,6 +98,7 @@ castxml_test_gccxml(Enumeration) castxml_test_gccxml(Enumeration-anonymous) castxml_test_gccxml(Field) castxml_test_gccxml(Function) +castxml_test_gccxml(Function-Argument-decay) castxml_test_gccxml(Function-Argument-default) castxml_test_gccxml(Function-template) castxml_test_gccxml(Function-throw) diff --git a/test/expect/gccxml.Function-Argument-decay-xml.txt b/test/expect/gccxml.Function-Argument-decay-xml.txt new file mode 100644 index 0000000..d295f6d --- /dev/null +++ b/test/expect/gccxml.Function-Argument-decay-xml.txt @@ -0,0 +1,17 @@ +^<\?xml version="1.0"\?> +<GCC_XML[^>]*> + <Function id="_1" name="start" returns="_2" context="_3" location="f1:1" file="f1" line="1"> + <Argument type="_4" location="f1:1" file="f1" line="1"/> + <Argument type="_4" location="f1:1" file="f1" line="1"/> + <Argument type="_5" location="f1:1" file="f1" line="1"/> + </Function> + <FundamentalType id="_2" name="void"/> + <PointerType id="_4" type="_6"/> + <PointerType id="_5" type="_7"/> + <Namespace id="_3" name="::"/> + <FundamentalType id="_6" name="int"/> + <FunctionType id="_7" returns="_6"> + <Argument type="_6"/> + </FunctionType> + <File id="f1" name=".*/test/input/Function-Argument-decay.cxx"/> +</GCC_XML>$ diff --git a/test/input/Function-Argument-decay.cxx b/test/input/Function-Argument-decay.cxx new file mode 100644 index 0000000..1b2e3d1 --- /dev/null +++ b/test/input/Function-Argument-decay.cxx @@ -0,0 +1 @@ +void start(int[2], int[], int(int)); |