2
0
mirror of https://github.com/boostorg/nowide.git synced 2026-02-02 09:02:10 +00:00
Files
nowide/test/cmake_test/main.cpp
Flamefire b98cdaa47a Include 'Remove uneccessary cast in test_swap
The cast is actually wrong as the return value of  is  already.'
2022-07-13 11:25:19 +00:00

19 lines
421 B
C++

//
// Copyright (c) 2019-2021 Alexander Grund
//
// Distributed under the Boost Software License, Version 1.0.
// https://www.boost.org/LICENSE_1_0.txt
#include <nowide/args.hpp>
#include <nowide/convert.hpp>
int main(int argc, char** argv, char** env)
{
nowide::args _(argc, argv, env);
if(argc < 1)
return 1;
if(nowide::narrow(nowide::widen(argv[0])) != argv[0])
return 1;
return 0;
}