[libc++] Fix build failures after merging <charconv>
authorZhihao Yuan <zy@miator.net>
Wed, 1 Aug 2018 05:21:26 +0000 (05:21 +0000)
committerZhihao Yuan <zy@miator.net>
Wed, 1 Aug 2018 05:21:26 +0000 (05:21 +0000)
Summary:
- fix a stupid unit test typo
- add <charconv> symbols to Linux abilist

Reviewers: EricWF

Subscribers: christof, ldionne, cfe-commits

Differential Revision: https://reviews.llvm.org/D50130

llvm-svn: 338486

libcxx/lib/abi/x86_64-unknown-linux-gnu.v1.abilist
libcxx/test/std/utilities/charconv/charconv.from.chars/integral.pass.cpp
libcxx/test/support/charconv_test_helpers.h

index c883a59..833342c 100644 (file)
 {'name': '_ZNSt3__15wclogE', 'is_defined': True, 'type': 'OBJECT', 'size': 160}
 {'name': '_ZNSt3__15wcoutE', 'is_defined': True, 'type': 'OBJECT', 'size': 160}
 {'name': '_ZNSt3__16__clocEv', 'is_defined': True, 'type': 'FUNC'}
+{'name': '_ZNSt3__16__itoa8__u64toaEmPc', 'is_defined': True, 'type': 'FUNC'}
+{'name': '_ZNSt3__16__itoa8__u32toaEjPc', 'is_defined': True, 'type': 'FUNC'}
 {'name': '_ZNSt3__16__sortIRNS_6__lessIaaEEPaEEvT0_S5_T_', 'is_defined': True, 'type': 'FUNC'}
 {'name': '_ZNSt3__16__sortIRNS_6__lessIccEEPcEEvT0_S5_T_', 'is_defined': True, 'type': 'FUNC'}
 {'name': '_ZNSt3__16__sortIRNS_6__lessIddEEPdEEvT0_S5_T_', 'is_defined': True, 'type': 'FUNC'}
index e5a93b4..3fc533a 100644 (file)
@@ -37,6 +37,7 @@ struct test_basics : roundtrip_test_base<T>
             using xl = std::numeric_limits<T>;
 
             test(1, b);
+            test(-1, b);
             test(xl::lowest(), b);
             test((xl::max)(), b);
             test((xl::max)() / 2, b);
index df1b00a..1560fa7 100644 (file)
@@ -178,7 +178,7 @@ struct roundtrip_test_base
             {
                 assert(x == 0xc);
                 assert(r2.ptr == buf);
-                assert(r.ec == std::errc::invalid_argument);
+                assert(r2.ec == std::errc::invalid_argument);
             }
             else
             {