clang/tests/rhbz_1657544/from_chars.cpp

16 lines
262 B
C++
Raw Normal View History

2019-02-01 15:04:19 +00:00
#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;
}