Revert "[libc] Use best-fit binary trie to make malloc logarithmic" (#117065)
[llvm-project.git] / libcxx / test / std / utilities / charconv / charconv.to.chars / integral.bool.verify.cpp
blob630799b6738a2bda5653c0f5dedca6c7393c66c0
1 //===----------------------------------------------------------------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
9 // UNSUPPORTED: c++03, c++11, c++14
11 // <charconv>
13 // In
15 // to_chars_result to_chars(char* first, char* last, Integral value,
16 // int base = 10)
18 // Integral cannot be bool.
20 #include <charconv>
22 int main(int, char**)
24 using std::to_chars;
25 char buf[10];
26 bool lv = true;
28 to_chars(buf, buf + sizeof(buf), false); // expected-error {{call to deleted function}}
29 to_chars(buf, buf + sizeof(buf), lv, 16); // expected-error {{call to deleted function}}
31 return 0;