diff options
author | Roger Ferrer Ibanez <roger.ferreribanez@arm.com> | 2016-11-14 10:44:26 +0000 |
---|---|---|
committer | Roger Ferrer Ibanez <roger.ferreribanez@arm.com> | 2016-11-14 10:44:26 +0000 |
commit | 84c152a130ff95e52846dddd2cc6ad1c31648160 (patch) | |
tree | 983f440031c3cbd0dbca231037cb36fc2b08311a /libcxx/test/std/strings/string.conversions/stol.pass.cpp | |
parent | 3d8482a88d5a3a43ef251e642b352fb1e4505335 (diff) | |
download | bcm5719-llvm-84c152a130ff95e52846dddd2cc6ad1c31648160.tar.gz bcm5719-llvm-84c152a130ff95e52846dddd2cc6ad1c31648160.zip |
Update tests for strings conversions under libcpp-no-exceptions
Differential Revision: https://reviews.llvm.org/D26139
llvm-svn: 286812
Diffstat (limited to 'libcxx/test/std/strings/string.conversions/stol.pass.cpp')
-rw-r--r-- | libcxx/test/std/strings/string.conversions/stol.pass.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libcxx/test/std/strings/string.conversions/stol.pass.cpp b/libcxx/test/std/strings/string.conversions/stol.pass.cpp index 2ca2c01cfb8..457cf0a7699 100644 --- a/libcxx/test/std/strings/string.conversions/stol.pass.cpp +++ b/libcxx/test/std/strings/string.conversions/stol.pass.cpp @@ -7,7 +7,6 @@ // //===----------------------------------------------------------------------===// // -// XFAIL: libcpp-no-exceptions // XFAIL: with_system_cxx_lib=x86_64-apple-darwin11 // XFAIL: with_system_cxx_lib=x86_64-apple-darwin12 @@ -19,6 +18,8 @@ #include <string> #include <cassert> +#include "test_macros.h" + int main() { assert(std::stol("0") == 0); @@ -35,6 +36,7 @@ int main() idx = 0; assert(std::stol(L"10g", &idx, 16) == 16); assert(idx == 2); +#ifndef TEST_HAS_NO_EXCEPTIONS idx = 0; try { @@ -109,4 +111,5 @@ int main() { assert(idx == 0); } +#endif } |