From 9aa7a286ddb4bfa567d440adb1bab477ddf2dfd2 Mon Sep 17 00:00:00 2001 From: Brad King Date: Tue, 10 May 2016 13:08:11 -0400 Subject: test: Split GNU-float128-nostart test inputs Use explicit input source files for these tests so that we can later change the original test sources to cover more cases. --- test/CMakeLists.txt | 4 ---- test/expect/gccxml.any.GNU-float128-nostart.xml.txt | 2 +- test/expect/gccxml.c.GNU-float128-nostart.xml.txt | 2 +- test/input/GNU-float128-nostart.c | 1 + test/input/GNU-float128-nostart.cxx | 1 + 5 files changed, 4 insertions(+), 6 deletions(-) create mode 100644 test/input/GNU-float128-nostart.c create mode 100644 test/input/GNU-float128-nostart.cxx diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 575ab81..5aa3766 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -419,20 +419,16 @@ castxml_test_gccxml_broken(ReferenceType-to-Class-template) set(castxml_test_gccxml_extra_arguments --castxml-cc-gnu-c "(" $ --cc-define=__x86_64__ ")") castxml_test_gccxml_c(GNU-float128) -set(castxml_test_gccxml_custom_input GNU-float128) set(castxml_test_gccxml_custom_start "") castxml_test_gccxml_c(GNU-float128-nostart) unset(castxml_test_gccxml_custom_start) -unset(castxml_test_gccxml_custom_input) unset(castxml_test_gccxml_extra_arguments) set(castxml_test_gccxml_extra_arguments --castxml-cc-gnu "(" $ --cc-define=__x86_64__ ")") castxml_test_gccxml(GNU-float128) -set(castxml_test_gccxml_custom_input GNU-float128) set(castxml_test_gccxml_custom_start "") castxml_test_gccxml(GNU-float128-nostart) unset(castxml_test_gccxml_custom_start) -unset(castxml_test_gccxml_custom_input) unset(castxml_test_gccxml_extra_arguments) set(castxml_test_gccxml_extra_arguments --castxml-cc-gnu-c $) diff --git a/test/expect/gccxml.any.GNU-float128-nostart.xml.txt b/test/expect/gccxml.any.GNU-float128-nostart.xml.txt index 826d133..1ff90f7 100644 --- a/test/expect/gccxml.any.GNU-float128-nostart.xml.txt +++ b/test/expect/gccxml.any.GNU-float128-nostart.xml.txt @@ -1,5 +1,5 @@ ^<\?xml version="1.0"\?> ]*> .*.* - + $ diff --git a/test/expect/gccxml.c.GNU-float128-nostart.xml.txt b/test/expect/gccxml.c.GNU-float128-nostart.xml.txt index 58d80c4..7d81e8c 100644 --- a/test/expect/gccxml.c.GNU-float128-nostart.xml.txt +++ b/test/expect/gccxml.c.GNU-float128-nostart.xml.txt @@ -1,5 +1,5 @@ ^<\?xml version="1.0"\?> ]*> .*.* - + $ diff --git a/test/input/GNU-float128-nostart.c b/test/input/GNU-float128-nostart.c new file mode 100644 index 0000000..fbb07e1 --- /dev/null +++ b/test/input/GNU-float128-nostart.c @@ -0,0 +1 @@ +__float128 start(__float128); diff --git a/test/input/GNU-float128-nostart.cxx b/test/input/GNU-float128-nostart.cxx new file mode 100644 index 0000000..fbb07e1 --- /dev/null +++ b/test/input/GNU-float128-nostart.cxx @@ -0,0 +1 @@ +__float128 start(__float128); -- cgit v0.12