blob: 70f5d3c1808d74c4e5e9e7bb8bb22f98fb5a07cf [file] [log] [blame]
//===----------------------------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
// UNSUPPORTED: c++03
// REQUIRES: with_system_cxx_lib=macosx10.9 || \
// REQUIRES: with_system_cxx_lib=macosx10.10 || \
// REQUIRES: with_system_cxx_lib=macosx10.11 || \
// REQUIRES: with_system_cxx_lib=macosx10.12 || \
// REQUIRES: with_system_cxx_lib=macosx10.13 || \
// REQUIRES: with_system_cxx_lib=macosx10.14
// Test the availability markup on std::to_chars.
#include <charconv>
int main(int, char**)
{
char buf[100];
int int_value = 33;
long long_value = 33;
int base = 2;
std::to_chars(buf, buf + 100, int_value); // expected-error{{is unavailable: introduced in}}
std::to_chars(buf, buf + 100, int_value, base); // expected-error{{is unavailable: introduced in}}
std::to_chars(buf, buf + 100, long_value); // expected-error{{is unavailable: introduced in}}
std::to_chars(buf, buf + 100, long_value, base); // expected-error{{is unavailable: introduced in}}
}