clang/tests/rhbz_1657544/from_chars.cpp
Tom Stellard 50d4f87e06 12.0.0 Release
Related: rhbz#1928132
2021-05-10 17:56:28 -07:00

16 lines
262 B
C++

#include <charconv>
#include <iostream>
#include <cstring>
using namespace std;
int main(int argc, char **argv)
{
size_t r=0;
const char *begin = argv[1];
const char *end = begin + strlen(begin);
from_chars(begin, end, r);
cout << r << '\n';
return 0;
}