diff options
author | Brad King <brad.king@kitware.com> | 2017-08-23 17:56:42 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-08-23 18:43:42 (GMT) |
commit | 927c73942c659d924a43ac08c34c1b04fc807d11 (patch) | |
tree | b4a56fc1ab6ea054031639daaf8ac3a3887c5bdc /test | |
parent | c8ab4ecf08a90833439c893ea8d7949a69319532 (diff) | |
download | CastXML-927c73942c659d924a43ac08c34c1b04fc807d11.zip CastXML-927c73942c659d924a43ac08c34c1b04fc807d11.tar.gz CastXML-927c73942c659d924a43ac08c34c1b04fc807d11.tar.bz2 |
castxml: Use real `__float128` type with LLVM/Clang 3.9+
Since Clang 3.9 a real `__float128` type is available for some targets.
Use it instead of our simulation struct. This is needed to work with
the GCC 7 standard library which uses `__float128` types in expressions.
Fixes: #87
Diffstat (limited to 'test')
-rw-r--r-- | test/expect/castxml1.any.GNU-float128.xml.txt | 4 | ||||
-rw-r--r-- | test/expect/cmd.cc-gnu-c-tgt-i386-opt-E.stdout.txt | 4 | ||||
-rw-r--r-- | test/expect/cmd.cc-gnu-tgt-i386-opt-E.stdout.txt | 4 | ||||
-rw-r--r-- | test/expect/gccxml.any.GNU-float128.xml.txt | 4 |
4 files changed, 8 insertions, 8 deletions
diff --git a/test/expect/castxml1.any.GNU-float128.xml.txt b/test/expect/castxml1.any.GNU-float128.xml.txt index 8d41d58..12b8e3c 100644 --- a/test/expect/castxml1.any.GNU-float128.xml.txt +++ b/test/expect/castxml1.any.GNU-float128.xml.txt @@ -1,10 +1,10 @@ ^<\?xml version="1.0"\?> <CastXML[^>]*> <Namespace id="_1" name="start" context="_2" members="_3 _4 _5"/> - <Function id="_3" name="f" returns="_6" context="_1" location="f1:4" file="f1" line="4" mangled=""> + <Function id="_3" name="f" returns="_6" context="_1" location="f1:4" file="f1" line="4" mangled="[^"]*"> <Argument type="_6" location="f1:4" file="f1" line="4"/> </Function> - <Variable id="_4" name="v" type="_6" init="" context="_1" location="f1:5" file="f1" line="5" mangled="[^"]*"/> + <Variable id="_4" name="v" type="_6"( init="")? context="_1" location="f1:5" file="f1" line="5" mangled="[^"]*"/> <Variable id="_5" name="pa" type="_7" context="_1" location="f1:6" file="f1" line="6" mangled="[^"]*"/> <FundamentalType id="_6" name="__float128" size="128" align="128"/> <PointerType id="_7" type="_8" size="[0-9]+" align="[0-9]+"/> diff --git a/test/expect/cmd.cc-gnu-c-tgt-i386-opt-E.stdout.txt b/test/expect/cmd.cc-gnu-c-tgt-i386-opt-E.stdout.txt index aac6988..9ebdd11 100644 --- a/test/expect/cmd.cc-gnu-c-tgt-i386-opt-E.stdout.txt +++ b/test/expect/cmd.cc-gnu-c-tgt-i386-opt-E.stdout.txt @@ -7,6 +7,6 @@ #define __castxml__ [0-9]+ #define __castxml_clang_major__ [0-9]+ #define __castxml_clang_minor__ [0-9]+ -#define __castxml_clang_patchlevel__ [0-9]+ -#define __float128 __castxml__float128 +#define __castxml_clang_patchlevel__ [0-9]+( +#define __float128 __castxml__float128)? #define __i386__ 1$ diff --git a/test/expect/cmd.cc-gnu-tgt-i386-opt-E.stdout.txt b/test/expect/cmd.cc-gnu-tgt-i386-opt-E.stdout.txt index 2fbf8e5..54df9be 100644 --- a/test/expect/cmd.cc-gnu-tgt-i386-opt-E.stdout.txt +++ b/test/expect/cmd.cc-gnu-tgt-i386-opt-E.stdout.txt @@ -8,6 +8,6 @@ #define __castxml_clang_major__ [0-9]+ #define __castxml_clang_minor__ [0-9]+ #define __castxml_clang_patchlevel__ [0-9]+ -#define __cplusplus 199711L -#define __float128 __castxml__float128 +#define __cplusplus 199711L( +#define __float128 __castxml__float128)? #define __i386__ 1$ diff --git a/test/expect/gccxml.any.GNU-float128.xml.txt b/test/expect/gccxml.any.GNU-float128.xml.txt index 9873ab4..689a1e1 100644 --- a/test/expect/gccxml.any.GNU-float128.xml.txt +++ b/test/expect/gccxml.any.GNU-float128.xml.txt @@ -1,10 +1,10 @@ ^<\?xml version="1.0"\?> <GCC_XML[^>]*> <Namespace id="_1" name="start" context="_2" members="_3 _4 _5"/> - <Function id="_3" name="f" returns="_6" context="_1" location="f1:4" file="f1" line="4" mangled=""> + <Function id="_3" name="f" returns="_6" context="_1" location="f1:4" file="f1" line="4" mangled="[^"]*"> <Argument type="_6" location="f1:4" file="f1" line="4"/> </Function> - <Variable id="_4" name="v" type="_6" init="" context="_1" location="f1:5" file="f1" line="5" mangled="[^"]*"/> + <Variable id="_4" name="v" type="_6"( init="")? context="_1" location="f1:5" file="f1" line="5" mangled="[^"]*"/> <Variable id="_5" name="pa" type="_7" context="_1" location="f1:6" file="f1" line="6" mangled="[^"]*"/> <FundamentalType id="_6" name="__float128" size="128" align="128"/> <PointerType id="_7" type="_8" size="[0-9]+" align="[0-9]+"/> |