summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/input.output/filesystems
diff options
context:
space:
mode:
Diffstat (limited to 'libcxx/test/std/input.output/filesystems')
-rw-r--r--libcxx/test/std/input.output/filesystems/class.directory_entry/directory_entry.cons/default.pass.cpp4
-rw-r--r--libcxx/test/std/input.output/filesystems/class.directory_entry/directory_entry.cons/default_const.pass.cpp4
-rw-r--r--libcxx/test/std/input.output/filesystems/class.directory_entry/directory_entry.obs/comparisons.pass.cpp4
-rw-r--r--libcxx/test/std/input.output/filesystems/class.directory_entry/directory_entry.obs/path.pass.cpp4
-rw-r--r--libcxx/test/std/input.output/filesystems/class.directory_iterator/directory_iterator.members/default_ctor.pass.cpp4
-rw-r--r--libcxx/test/std/input.output/filesystems/class.directory_iterator/types.pass.cpp4
-rw-r--r--libcxx/test/std/input.output/filesystems/class.file_status/file_status.cons.pass.cpp4
-rw-r--r--libcxx/test/std/input.output/filesystems/class.file_status/file_status.mods.pass.cpp4
-rw-r--r--libcxx/test/std/input.output/filesystems/class.file_status/file_status.obs.pass.cpp4
-rw-r--r--libcxx/test/std/input.output/filesystems/class.filesystem_error/filesystem_error.members.pass.cpp4
-rw-r--r--libcxx/test/std/input.output/filesystems/class.path/path.itr/iterator.pass.cpp4
-rw-r--r--libcxx/test/std/input.output/filesystems/class.path/path.member/path.append.pass.cpp4
-rw-r--r--libcxx/test/std/input.output/filesystems/class.path/path.member/path.assign/braced_init.pass.cpp4
-rw-r--r--libcxx/test/std/input.output/filesystems/class.path/path.member/path.assign/copy.pass.cpp4
-rw-r--r--libcxx/test/std/input.output/filesystems/class.path/path.member/path.assign/move.pass.cpp4
-rw-r--r--libcxx/test/std/input.output/filesystems/class.path/path.member/path.assign/source.pass.cpp4
-rw-r--r--libcxx/test/std/input.output/filesystems/class.path/path.member/path.compare.pass.cpp4
-rw-r--r--libcxx/test/std/input.output/filesystems/class.path/path.member/path.concat.pass.cpp4
-rw-r--r--libcxx/test/std/input.output/filesystems/class.path/path.member/path.construct/copy.pass.cpp4
-rw-r--r--libcxx/test/std/input.output/filesystems/class.path/path.member/path.construct/default.pass.cpp4
-rw-r--r--libcxx/test/std/input.output/filesystems/class.path/path.member/path.construct/move.pass.cpp4
-rw-r--r--libcxx/test/std/input.output/filesystems/class.path/path.member/path.construct/source.pass.cpp4
-rw-r--r--libcxx/test/std/input.output/filesystems/class.path/path.member/path.decompose/empty.fail.cpp4
-rw-r--r--libcxx/test/std/input.output/filesystems/class.path/path.member/path.decompose/path.decompose.pass.cpp4
-rw-r--r--libcxx/test/std/input.output/filesystems/class.path/path.member/path.gen/lexically_normal.pass.cpp2
-rw-r--r--libcxx/test/std/input.output/filesystems/class.path/path.member/path.gen/lexically_relative_and_proximate.pass.cpp2
-rw-r--r--libcxx/test/std/input.output/filesystems/class.path/path.member/path.generic.obs/generic_string_alloc.pass.cpp4
-rw-r--r--libcxx/test/std/input.output/filesystems/class.path/path.member/path.generic.obs/named_overloads.pass.cpp4
-rw-r--r--libcxx/test/std/input.output/filesystems/class.path/path.member/path.modifiers/clear.pass.cpp4
-rw-r--r--libcxx/test/std/input.output/filesystems/class.path/path.member/path.modifiers/make_preferred.pass.cpp4
-rw-r--r--libcxx/test/std/input.output/filesystems/class.path/path.member/path.modifiers/remove_filename.pass.cpp4
-rw-r--r--libcxx/test/std/input.output/filesystems/class.path/path.member/path.modifiers/replace_extension.pass.cpp4
-rw-r--r--libcxx/test/std/input.output/filesystems/class.path/path.member/path.modifiers/replace_filename.pass.cpp4
-rw-r--r--libcxx/test/std/input.output/filesystems/class.path/path.member/path.modifiers/swap.pass.cpp4
-rw-r--r--libcxx/test/std/input.output/filesystems/class.path/path.member/path.native.obs/c_str.pass.cpp4
-rw-r--r--libcxx/test/std/input.output/filesystems/class.path/path.member/path.native.obs/named_overloads.pass.cpp4
-rw-r--r--libcxx/test/std/input.output/filesystems/class.path/path.member/path.native.obs/native.pass.cpp4
-rw-r--r--libcxx/test/std/input.output/filesystems/class.path/path.member/path.native.obs/operator_string.pass.cpp4
-rw-r--r--libcxx/test/std/input.output/filesystems/class.path/path.member/path.native.obs/string_alloc.pass.cpp4
-rw-r--r--libcxx/test/std/input.output/filesystems/class.path/path.member/path.query/tested_in_path_decompose.pass.cpp4
-rw-r--r--libcxx/test/std/input.output/filesystems/class.path/path.nonmember/append_op.fail.cpp4
-rw-r--r--libcxx/test/std/input.output/filesystems/class.path/path.nonmember/append_op.pass.cpp4
-rw-r--r--libcxx/test/std/input.output/filesystems/class.path/path.nonmember/comparison_ops.fail.cpp4
-rw-r--r--libcxx/test/std/input.output/filesystems/class.path/path.nonmember/comparison_ops_tested_elsewhere.pass.cpp4
-rw-r--r--libcxx/test/std/input.output/filesystems/class.path/path.nonmember/hash_value_tested_elswhere.pass.cpp4
-rw-r--r--libcxx/test/std/input.output/filesystems/class.path/path.nonmember/path.factory.pass.cpp4
-rw-r--r--libcxx/test/std/input.output/filesystems/class.path/path.nonmember/path.io.pass.cpp4
-rw-r--r--libcxx/test/std/input.output/filesystems/class.path/path.nonmember/path.io.unicode_bug.pass.cpp4
-rw-r--r--libcxx/test/std/input.output/filesystems/class.path/path.nonmember/swap.pass.cpp4
-rw-r--r--libcxx/test/std/input.output/filesystems/class.path/synop.pass.cpp4
-rw-r--r--libcxx/test/std/input.output/filesystems/fs.enum/enum.copy_options.pass.cpp4
-rw-r--r--libcxx/test/std/input.output/filesystems/fs.enum/enum.directory_options.pass.cpp4
-rw-r--r--libcxx/test/std/input.output/filesystems/fs.enum/enum.file_type.pass.cpp4
-rw-r--r--libcxx/test/std/input.output/filesystems/fs.enum/enum.path.format.pass.cpp4
-rw-r--r--libcxx/test/std/input.output/filesystems/fs.enum/enum.perm_options.pass.cpp4
-rw-r--r--libcxx/test/std/input.output/filesystems/fs.enum/enum.perms.pass.cpp4
-rw-r--r--libcxx/test/std/input.output/filesystems/fs.error.report/tested_elsewhere.pass.cpp4
-rw-r--r--libcxx/test/std/input.output/filesystems/fs.filesystem.synopsis/file_time_type.pass.cpp4
-rw-r--r--libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.weakly_canonical/weakly_canonical.pass.cpp2
-rw-r--r--libcxx/test/std/input.output/filesystems/fs.req.macros/feature_macro.pass.cpp4
-rw-r--r--libcxx/test/std/input.output/filesystems/fs.req.namespace/namespace.fail.cpp4
-rw-r--r--libcxx/test/std/input.output/filesystems/fs.req.namespace/namespace.pass.cpp4
62 files changed, 180 insertions, 62 deletions
diff --git a/libcxx/test/std/input.output/filesystems/class.directory_entry/directory_entry.cons/default.pass.cpp b/libcxx/test/std/input.output/filesystems/class.directory_entry/directory_entry.cons/default.pass.cpp
index 106eb033fd5..1cb88a3510f 100644
--- a/libcxx/test/std/input.output/filesystems/class.directory_entry/directory_entry.cons/default.pass.cpp
+++ b/libcxx/test/std/input.output/filesystems/class.directory_entry/directory_entry.cons/default.pass.cpp
@@ -18,7 +18,7 @@
#include <type_traits>
#include <cassert>
-int main() {
+int main(int, char**) {
using namespace fs;
// Default
{
@@ -27,4 +27,6 @@ int main() {
directory_entry e;
assert(e.path() == path());
}
+
+ return 0;
}
diff --git a/libcxx/test/std/input.output/filesystems/class.directory_entry/directory_entry.cons/default_const.pass.cpp b/libcxx/test/std/input.output/filesystems/class.directory_entry/directory_entry.cons/default_const.pass.cpp
index 8562312432f..0f681531a09 100644
--- a/libcxx/test/std/input.output/filesystems/class.directory_entry/directory_entry.cons/default_const.pass.cpp
+++ b/libcxx/test/std/input.output/filesystems/class.directory_entry/directory_entry.cons/default_const.pass.cpp
@@ -19,7 +19,7 @@
#include <type_traits>
#include <cassert>
-int main() {
+int main(int, char**) {
using namespace fs;
// Default
{
@@ -28,4 +28,6 @@ int main() {
const directory_entry e;
assert(e.path() == path());
}
+
+ return 0;
}
diff --git a/libcxx/test/std/input.output/filesystems/class.directory_entry/directory_entry.obs/comparisons.pass.cpp b/libcxx/test/std/input.output/filesystems/class.directory_entry/directory_entry.obs/comparisons.pass.cpp
index 10e8c63b6d0..12158349ef8 100644
--- a/libcxx/test/std/input.output/filesystems/class.directory_entry/directory_entry.obs/comparisons.pass.cpp
+++ b/libcxx/test/std/input.output/filesystems/class.directory_entry/directory_entry.obs/comparisons.pass.cpp
@@ -74,7 +74,9 @@ void test_comparisons_simple() {
}
}
-int main() {
+int main(int, char**) {
test_comparison_signatures();
test_comparisons_simple();
+
+ return 0;
}
diff --git a/libcxx/test/std/input.output/filesystems/class.directory_entry/directory_entry.obs/path.pass.cpp b/libcxx/test/std/input.output/filesystems/class.directory_entry/directory_entry.obs/path.pass.cpp
index 185b0ef4a24..28bd2752ec0 100644
--- a/libcxx/test/std/input.output/filesystems/class.directory_entry/directory_entry.obs/path.pass.cpp
+++ b/libcxx/test/std/input.output/filesystems/class.directory_entry/directory_entry.obs/path.pass.cpp
@@ -81,7 +81,9 @@ void test_path_conversion() {
}
}
-int main() {
+int main(int, char**) {
test_path_method();
test_path_conversion();
+
+ return 0;
}
diff --git a/libcxx/test/std/input.output/filesystems/class.directory_iterator/directory_iterator.members/default_ctor.pass.cpp b/libcxx/test/std/input.output/filesystems/class.directory_iterator/directory_iterator.members/default_ctor.pass.cpp
index c318bdb33f6..9f60ec28674 100644
--- a/libcxx/test/std/input.output/filesystems/class.directory_iterator/directory_iterator.members/default_ctor.pass.cpp
+++ b/libcxx/test/std/input.output/filesystems/class.directory_iterator/directory_iterator.members/default_ctor.pass.cpp
@@ -22,7 +22,7 @@
#include "test_macros.h"
-int main() {
+int main(int, char**) {
{
static_assert(std::is_nothrow_default_constructible<fs::directory_iterator>::value, "");
}
@@ -31,4 +31,6 @@ int main() {
const fs::directory_iterator d2;
assert(d1 == d2);
}
+
+ return 0;
}
diff --git a/libcxx/test/std/input.output/filesystems/class.directory_iterator/types.pass.cpp b/libcxx/test/std/input.output/filesystems/class.directory_iterator/types.pass.cpp
index bac6939035c..3932be0216b 100644
--- a/libcxx/test/std/input.output/filesystems/class.directory_iterator/types.pass.cpp
+++ b/libcxx/test/std/input.output/filesystems/class.directory_iterator/types.pass.cpp
@@ -25,7 +25,7 @@
#include "test_macros.h"
-int main() {
+int main(int, char**) {
using namespace fs;
using D = directory_iterator;
ASSERT_SAME_TYPE(D::value_type, directory_entry);
@@ -33,4 +33,6 @@ int main() {
ASSERT_SAME_TYPE(D::pointer, const directory_entry*);
ASSERT_SAME_TYPE(D::reference, const directory_entry&);
ASSERT_SAME_TYPE(D::iterator_category, std::input_iterator_tag);
+
+ return 0;
}
diff --git a/libcxx/test/std/input.output/filesystems/class.file_status/file_status.cons.pass.cpp b/libcxx/test/std/input.output/filesystems/class.file_status/file_status.cons.pass.cpp
index 53c619bd8e9..74fdaaf2084 100644
--- a/libcxx/test/std/input.output/filesystems/class.file_status/file_status.cons.pass.cpp
+++ b/libcxx/test/std/input.output/filesystems/class.file_status/file_status.cons.pass.cpp
@@ -22,7 +22,7 @@
#include "test_convertible.hpp"
-int main() {
+int main(int, char**) {
using namespace fs;
// Default ctor
{
@@ -56,4 +56,6 @@ int main() {
assert(f.type() == file_type::regular);
assert(f.permissions() == perms::owner_read);
}
+
+ return 0;
}
diff --git a/libcxx/test/std/input.output/filesystems/class.file_status/file_status.mods.pass.cpp b/libcxx/test/std/input.output/filesystems/class.file_status/file_status.mods.pass.cpp
index 38573beaca8..0ee9f709ba4 100644
--- a/libcxx/test/std/input.output/filesystems/class.file_status/file_status.mods.pass.cpp
+++ b/libcxx/test/std/input.output/filesystems/class.file_status/file_status.mods.pass.cpp
@@ -20,7 +20,7 @@
#include <cassert>
-int main() {
+int main(int, char**) {
using namespace fs;
file_status st;
@@ -45,4 +45,6 @@ int main() {
st.permissions(perms::owner_read);
assert(st.permissions() == perms::owner_read);
}
+
+ return 0;
}
diff --git a/libcxx/test/std/input.output/filesystems/class.file_status/file_status.obs.pass.cpp b/libcxx/test/std/input.output/filesystems/class.file_status/file_status.obs.pass.cpp
index 676ceea8dcc..ec4863139f4 100644
--- a/libcxx/test/std/input.output/filesystems/class.file_status/file_status.obs.pass.cpp
+++ b/libcxx/test/std/input.output/filesystems/class.file_status/file_status.obs.pass.cpp
@@ -20,7 +20,7 @@
#include <cassert>
-int main() {
+int main(int, char**) {
using namespace fs;
const file_status st(file_type::regular, perms::owner_read);
@@ -41,4 +41,6 @@ int main() {
"operation must return perms");
assert(st.permissions() == perms::owner_read);
}
+
+ return 0;
}
diff --git a/libcxx/test/std/input.output/filesystems/class.filesystem_error/filesystem_error.members.pass.cpp b/libcxx/test/std/input.output/filesystems/class.filesystem_error/filesystem_error.members.pass.cpp
index 075a4137d3a..d9d1a03332d 100644
--- a/libcxx/test/std/input.output/filesystems/class.filesystem_error/filesystem_error.members.pass.cpp
+++ b/libcxx/test/std/input.output/filesystems/class.filesystem_error/filesystem_error.members.pass.cpp
@@ -94,8 +94,10 @@ void test_signatures()
}
}
-int main() {
+int main(int, char**) {
static_assert(std::is_base_of<std::system_error, fs::filesystem_error>::value, "");
test_constructors();
test_signatures();
+
+ return 0;
}
diff --git a/libcxx/test/std/input.output/filesystems/class.path/path.itr/iterator.pass.cpp b/libcxx/test/std/input.output/filesystems/class.path/path.itr/iterator.pass.cpp
index de1e413be24..558206d7082 100644
--- a/libcxx/test/std/input.output/filesystems/class.path/path.itr/iterator.pass.cpp
+++ b/libcxx/test/std/input.output/filesystems/class.path/path.itr/iterator.pass.cpp
@@ -97,8 +97,10 @@ void checkBeginEndBasic() {
}
-int main() {
+int main(int, char**) {
using namespace fs;
checkIteratorConcepts();
checkBeginEndBasic(); // See path.decompose.pass.cpp for more tests.
+
+ return 0;
}
diff --git a/libcxx/test/std/input.output/filesystems/class.path/path.member/path.append.pass.cpp b/libcxx/test/std/input.output/filesystems/class.path/path.member/path.append.pass.cpp
index fb74c8e1946..2f468e59554 100644
--- a/libcxx/test/std/input.output/filesystems/class.path/path.member/path.append.pass.cpp
+++ b/libcxx/test/std/input.output/filesystems/class.path/path.member/path.append.pass.cpp
@@ -311,7 +311,7 @@ void test_sfinae()
}
}
-int main()
+int main(int, char**)
{
using namespace fs;
for (auto const & TC : Cases) {
@@ -335,4 +335,6 @@ int main()
doAppendSourceAllocTest<wchar_t>(TC);
}
test_sfinae();
+
+ return 0;
}
diff --git a/libcxx/test/std/input.output/filesystems/class.path/path.member/path.assign/braced_init.pass.cpp b/libcxx/test/std/input.output/filesystems/class.path/path.member/path.assign/braced_init.pass.cpp
index eb45c0981d4..aff89f27bd3 100644
--- a/libcxx/test/std/input.output/filesystems/class.path/path.member/path.assign/braced_init.pass.cpp
+++ b/libcxx/test/std/input.output/filesystems/class.path/path.member/path.assign/braced_init.pass.cpp
@@ -22,9 +22,11 @@
#include "count_new.hpp"
-int main() {
+int main(int, char**) {
using namespace fs;
path p("abc");
p = {};
assert(p.native() == "");
+
+ return 0;
}
diff --git a/libcxx/test/std/input.output/filesystems/class.path/path.member/path.assign/copy.pass.cpp b/libcxx/test/std/input.output/filesystems/class.path/path.member/path.assign/copy.pass.cpp
index 04b8f63cbdd..9265c70f6f4 100644
--- a/libcxx/test/std/input.output/filesystems/class.path/path.member/path.assign/copy.pass.cpp
+++ b/libcxx/test/std/input.output/filesystems/class.path/path.member/path.assign/copy.pass.cpp
@@ -21,7 +21,7 @@
#include "test_macros.h"
-int main() {
+int main(int, char**) {
using namespace fs;
static_assert(std::is_copy_assignable<path>::value, "");
static_assert(!std::is_nothrow_copy_assignable<path>::value, "should not be noexcept");
@@ -32,4 +32,6 @@ int main() {
assert(p.native() == s);
assert(p2.native() == s);
assert(&pref == &p2);
+
+ return 0;
}
diff --git a/libcxx/test/std/input.output/filesystems/class.path/path.member/path.assign/move.pass.cpp b/libcxx/test/std/input.output/filesystems/class.path/path.member/path.assign/move.pass.cpp
index 12422c68e42..5e5fb1e0e06 100644
--- a/libcxx/test/std/input.output/filesystems/class.path/path.member/path.assign/move.pass.cpp
+++ b/libcxx/test/std/input.output/filesystems/class.path/path.member/path.assign/move.pass.cpp
@@ -22,7 +22,7 @@
#include "count_new.hpp"
-int main() {
+int main(int, char**) {
using namespace fs;
static_assert(std::is_nothrow_move_assignable<path>::value, "");
assert(globalMemCounter.checkOutstandingNewEq(0));
@@ -38,4 +38,6 @@ int main() {
assert(p.native() != s); // Testing moved from state
assert(&pref == &p2);
}
+
+ return 0;
}
diff --git a/libcxx/test/std/input.output/filesystems/class.path/path.member/path.assign/source.pass.cpp b/libcxx/test/std/input.output/filesystems/class.path/path.member/path.assign/source.pass.cpp
index edc0b263844..9c23e3b3ebf 100644
--- a/libcxx/test/std/input.output/filesystems/class.path/path.member/path.assign/source.pass.cpp
+++ b/libcxx/test/std/input.output/filesystems/class.path/path.member/path.assign/source.pass.cpp
@@ -228,7 +228,7 @@ void RunStringMoveTest(const char* Expect) {
}
}
-int main() {
+int main(int, char**) {
for (auto const& MS : PathList) {
RunTestCase<char>(MS);
RunTestCase<wchar_t>(MS);
@@ -237,4 +237,6 @@ int main() {
RunStringMoveTest(MS);
}
test_sfinae();
+
+ return 0;
}
diff --git a/libcxx/test/std/input.output/filesystems/class.path/path.member/path.compare.pass.cpp b/libcxx/test/std/input.output/filesystems/class.path/path.member/path.compare.pass.cpp
index 41efb7513fa..165e62fe4fe 100644
--- a/libcxx/test/std/input.output/filesystems/class.path/path.member/path.compare.pass.cpp
+++ b/libcxx/test/std/input.output/filesystems/class.path/path.member/path.compare.pass.cpp
@@ -184,7 +184,9 @@ void test_compare_elements() {
}
}
-int main() {
+int main(int, char**) {
test_compare_basic();
test_compare_elements();
+
+ return 0;
}
diff --git a/libcxx/test/std/input.output/filesystems/class.path/path.member/path.concat.pass.cpp b/libcxx/test/std/input.output/filesystems/class.path/path.member/path.concat.pass.cpp
index 842d70543a0..b074e831e15 100644
--- a/libcxx/test/std/input.output/filesystems/class.path/path.member/path.concat.pass.cpp
+++ b/libcxx/test/std/input.output/filesystems/class.path/path.member/path.concat.pass.cpp
@@ -325,7 +325,7 @@ void test_sfinae() {
}
}
-int main()
+int main(int, char**)
{
using namespace fs;
for (auto const & TC : Cases) {
@@ -384,4 +384,6 @@ int main()
doConcatECharTest<char32_t>(TC);
}
test_sfinae();
+
+ return 0;
}
diff --git a/libcxx/test/std/input.output/filesystems/class.path/path.member/path.construct/copy.pass.cpp b/libcxx/test/std/input.output/filesystems/class.path/path.member/path.construct/copy.pass.cpp
index 789789779a4..1490c0b9fed 100644
--- a/libcxx/test/std/input.output/filesystems/class.path/path.member/path.construct/copy.pass.cpp
+++ b/libcxx/test/std/input.output/filesystems/class.path/path.member/path.construct/copy.pass.cpp
@@ -21,7 +21,7 @@
#include "test_macros.h"
-int main() {
+int main(int, char**) {
using namespace fs;
static_assert(std::is_copy_constructible<path>::value, "");
static_assert(!std::is_nothrow_copy_constructible<path>::value, "should not be noexcept");
@@ -30,4 +30,6 @@ int main() {
path p2(p);
assert(p.native() == s);
assert(p2.native() == s);
+
+ return 0;
}
diff --git a/libcxx/test/std/input.output/filesystems/class.path/path.member/path.construct/default.pass.cpp b/libcxx/test/std/input.output/filesystems/class.path/path.member/path.construct/default.pass.cpp
index 203c0e5ee61..b31728da1f9 100644
--- a/libcxx/test/std/input.output/filesystems/class.path/path.member/path.construct/default.pass.cpp
+++ b/libcxx/test/std/input.output/filesystems/class.path/path.member/path.construct/default.pass.cpp
@@ -21,9 +21,11 @@
#include "test_macros.h"
-int main() {
+int main(int, char**) {
using namespace fs;
static_assert(std::is_nothrow_default_constructible<path>::value, "");
const path p;
assert(p.empty());
+
+ return 0;
}
diff --git a/libcxx/test/std/input.output/filesystems/class.path/path.member/path.construct/move.pass.cpp b/libcxx/test/std/input.output/filesystems/class.path/path.member/path.construct/move.pass.cpp
index 4382de14170..494a77c3c86 100644
--- a/libcxx/test/std/input.output/filesystems/class.path/path.member/path.construct/move.pass.cpp
+++ b/libcxx/test/std/input.output/filesystems/class.path/path.member/path.construct/move.pass.cpp
@@ -22,7 +22,7 @@
#include "count_new.hpp"
-int main() {
+int main(int, char**) {
using namespace fs;
static_assert(std::is_nothrow_move_constructible<path>::value, "");
assert(globalMemCounter.checkOutstandingNewEq(0));
@@ -36,4 +36,6 @@ int main() {
assert(p2.native() == s);
assert(p.native() != s); // Testing moved from state
}
+
+ return 0;
}
diff --git a/libcxx/test/std/input.output/filesystems/class.path/path.member/path.construct/source.pass.cpp b/libcxx/test/std/input.output/filesystems/class.path/path.member/path.construct/source.pass.cpp
index b10d3aa88cd..bcb9986cec9 100644
--- a/libcxx/test/std/input.output/filesystems/class.path/path.member/path.construct/source.pass.cpp
+++ b/libcxx/test/std/input.output/filesystems/class.path/path.member/path.construct/source.pass.cpp
@@ -117,7 +117,7 @@ void test_sfinae() {
}
}
-int main() {
+int main(int, char**) {
for (auto const& MS : PathList) {
RunTestCase<char>(MS);
RunTestCase<wchar_t>(MS);
@@ -125,4 +125,6 @@ int main() {
RunTestCase<char32_t>(MS);
}
test_sfinae();
+
+ return 0;
}
diff --git a/libcxx/test/std/input.output/filesystems/class.path/path.member/path.decompose/empty.fail.cpp b/libcxx/test/std/input.output/filesystems/class.path/path.member/path.decompose/empty.fail.cpp
index 481ffcde60f..5248f67515a 100644
--- a/libcxx/test/std/input.output/filesystems/class.path/path.member/path.decompose/empty.fail.cpp
+++ b/libcxx/test/std/input.output/filesystems/class.path/path.member/path.decompose/empty.fail.cpp
@@ -20,8 +20,10 @@
#include "test_macros.h"
-int main ()
+int main(int, char**)
{
fs::path c;
c.empty(); // expected-error {{ignoring return value of function declared with 'nodiscard' attribute}}
+
+ return 0;
}
diff --git a/libcxx/test/std/input.output/filesystems/class.path/path.member/path.decompose/path.decompose.pass.cpp b/libcxx/test/std/input.output/filesystems/class.path/path.member/path.decompose/path.decompose.pass.cpp
index aa511cdf014..be9cefb76a8 100644
--- a/libcxx/test/std/input.output/filesystems/class.path/path.member/path.decompose/path.decompose.pass.cpp
+++ b/libcxx/test/std/input.output/filesystems/class.path/path.member/path.decompose/path.decompose.pass.cpp
@@ -208,8 +208,10 @@ void decompFilenameTest()
}
}
-int main()
+int main(int, char**)
{
decompPathTest();
decompFilenameTest();
+
+ return 0;
}
diff --git a/libcxx/test/std/input.output/filesystems/class.path/path.member/path.gen/lexically_normal.pass.cpp b/libcxx/test/std/input.output/filesystems/class.path/path.member/path.gen/lexically_normal.pass.cpp
index 4d295eec5e6..f1e616542e9 100644
--- a/libcxx/test/std/input.output/filesystems/class.path/path.member/path.gen/lexically_normal.pass.cpp
+++ b/libcxx/test/std/input.output/filesystems/class.path/path.member/path.gen/lexically_normal.pass.cpp
@@ -26,7 +26,7 @@
#include "filesystem_test_helper.hpp"
-int main() {
+int main(int, char**) {
// clang-format off
struct {
std::string input;
diff --git a/libcxx/test/std/input.output/filesystems/class.path/path.member/path.gen/lexically_relative_and_proximate.pass.cpp b/libcxx/test/std/input.output/filesystems/class.path/path.member/path.gen/lexically_relative_and_proximate.pass.cpp
index 96fa1597b02..7e31956ee50 100644
--- a/libcxx/test/std/input.output/filesystems/class.path/path.member/path.gen/lexically_relative_and_proximate.pass.cpp
+++ b/libcxx/test/std/input.output/filesystems/class.path/path.member/path.gen/lexically_relative_and_proximate.pass.cpp
@@ -27,7 +27,7 @@
#include "filesystem_test_helper.hpp"
-int main() {
+int main(int, char**) {
// clang-format off
struct {
std::string input;
diff --git a/libcxx/test/std/input.output/filesystems/class.path/path.member/path.generic.obs/generic_string_alloc.pass.cpp b/libcxx/test/std/input.output/filesystems/class.path/path.member/path.generic.obs/generic_string_alloc.pass.cpp
index 7cb81ca0008..707a7010ffb 100644
--- a/libcxx/test/std/input.output/filesystems/class.path/path.member/path.generic.obs/generic_string_alloc.pass.cpp
+++ b/libcxx/test/std/input.output/filesystems/class.path/path.member/path.generic.obs/generic_string_alloc.pass.cpp
@@ -33,7 +33,7 @@ MultiStringType longString = MKSTR("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQR
// generic_string<C, T, A> forwards to string<C, T, A>. Tests for
// string<C, T, A>() are in "path.native.op/string_alloc.pass.cpp".
// generic_string is minimally tested here.
-int main()
+int main(int, char**)
{
using namespace fs;
using CharT = wchar_t;
@@ -51,4 +51,6 @@ int main()
assert(Alloc::alloc_count > 0);
assert(Alloc::outstanding_alloc() == 1);
}
+
+ return 0;
}
diff --git a/libcxx/test/std/input.output/filesystems/class.path/path.member/path.generic.obs/named_overloads.pass.cpp b/libcxx/test/std/input.output/filesystems/class.path/path.member/path.generic.obs/named_overloads.pass.cpp
index 2e33769cdb3..04ae673ac48 100644
--- a/libcxx/test/std/input.output/filesystems/class.path/path.member/path.generic.obs/named_overloads.pass.cpp
+++ b/libcxx/test/std/input.output/filesystems/class.path/path.member/path.generic.obs/named_overloads.pass.cpp
@@ -31,7 +31,7 @@
MultiStringType longString = MKSTR("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/123456789/abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ");
-int main()
+int main(int, char**)
{
using namespace fs;
auto const& MS = longString;
@@ -57,4 +57,6 @@ int main()
std::u32string s = p.generic_u32string();
assert(s == (const char32_t*)MS);
}
+
+ return 0;
}
diff --git a/libcxx/test/std/input.output/filesystems/class.path/path.member/path.modifiers/clear.pass.cpp b/libcxx/test/std/input.output/filesystems/class.path/path.member/path.modifiers/clear.pass.cpp
index a224dddfa97..01538539faf 100644
--- a/libcxx/test/std/input.output/filesystems/class.path/path.member/path.modifiers/clear.pass.cpp
+++ b/libcxx/test/std/input.output/filesystems/class.path/path.member/path.modifiers/clear.pass.cpp
@@ -24,7 +24,7 @@
#include "filesystem_test_helper.hpp"
-int main() {
+int main(int, char**) {
using namespace fs;
{
path p;
@@ -40,4 +40,6 @@ int main() {
p2.clear();
assert(p2.empty());
}
+
+ return 0;
}
diff --git a/libcxx/test/std/input.output/filesystems/class.path/path.member/path.modifiers/make_preferred.pass.cpp b/libcxx/test/std/input.output/filesystems/class.path/path.member/path.modifiers/make_preferred.pass.cpp
index 43393aba5da..4530ef87554 100644
--- a/libcxx/test/std/input.output/filesystems/class.path/path.member/path.modifiers/make_preferred.pass.cpp
+++ b/libcxx/test/std/input.output/filesystems/class.path/path.member/path.modifiers/make_preferred.pass.cpp
@@ -39,7 +39,7 @@ const MakePreferredTestcase TestCases[] =
, {"\\foo\\/bar\\/baz\\"}
};
-int main()
+int main(int, char**)
{
// This operation is an identity operation on linux.
using namespace fs;
@@ -50,4 +50,6 @@ int main()
assert(p.native() == TC.value);
assert(&Ref == &p);
}
+
+ return 0;
}
diff --git a/libcxx/test/std/input.output/filesystems/class.path/path.member/path.modifiers/remove_filename.pass.cpp b/libcxx/test/std/input.output/filesystems/class.path/path.member/path.modifiers/remove_filename.pass.cpp
index 42191379dbb..7cb562c227f 100644
--- a/libcxx/test/std/input.output/filesystems/class.path/path.member/path.modifiers/remove_filename.pass.cpp
+++ b/libcxx/test/std/input.output/filesystems/class.path/path.member/path.modifiers/remove_filename.pass.cpp
@@ -57,7 +57,7 @@ const RemoveFilenameTestcase TestCases[] =
, {"bar/../baz/./file.txt", "bar/../baz/./"}
};
-int main()
+int main(int, char**)
{
using namespace fs;
for (auto const & TC : TestCases) {
@@ -69,4 +69,6 @@ int main()
assert(&Ref == &p);
assert(!p.has_filename());
}
+
+ return 0;
}
diff --git a/libcxx/test/std/input.output/filesystems/class.path/path.member/path.modifiers/replace_extension.pass.cpp b/libcxx/test/std/input.output/filesystems/class.path/path.member/path.modifiers/replace_extension.pass.cpp
index 70040c48ae5..6fec420baa0 100644
--- a/libcxx/test/std/input.output/filesystems/class.path/path.member/path.modifiers/replace_extension.pass.cpp
+++ b/libcxx/test/std/input.output/filesystems/class.path/path.member/path.modifiers/replace_extension.pass.cpp
@@ -51,7 +51,7 @@ const ReplaceExtensionTestcase NoArgCases[] =
, {"foo..cpp", "foo.", ""}
};
-int main()
+int main(int, char**)
{
using namespace fs;
for (auto const & TC : TestCases) {
@@ -68,4 +68,6 @@ int main()
assert(p == TC.expect);
assert(&Ref == &p);
}
+
+ return 0;
}
diff --git a/libcxx/test/std/input.output/filesystems/class.path/path.member/path.modifiers/replace_filename.pass.cpp b/libcxx/test/std/input.output/filesystems/class.path/path.member/path.modifiers/replace_filename.pass.cpp
index 3635352210b..8142e790731 100644
--- a/libcxx/test/std/input.output/filesystems/class.path/path.member/path.modifiers/replace_filename.pass.cpp
+++ b/libcxx/test/std/input.output/filesystems/class.path/path.member/path.modifiers/replace_filename.pass.cpp
@@ -47,7 +47,7 @@ const ReplaceFilenameTestcase TestCases[] =
, {"/foo\\baz/bong", "/foo\\baz/bar", "bar"}
};
-int main()
+int main(int, char**)
{
using namespace fs;
for (auto const & TC : TestCases) {
@@ -67,4 +67,6 @@ int main()
ASSERT_EQ(p, p2);
}
}
+
+ return 0;
}
diff --git a/libcxx/test/std/input.output/filesystems/class.path/path.member/path.modifiers/swap.pass.cpp b/libcxx/test/std/input.output/filesystems/class.path/path.member/path.modifiers/swap.pass.cpp
index ac623dbfcc5..2e9dac5e438 100644
--- a/libcxx/test/std/input.output/filesystems/class.path/path.member/path.modifiers/swap.pass.cpp
+++ b/libcxx/test/std/input.output/filesystems/class.path/path.member/path.modifiers/swap.pass.cpp
@@ -41,7 +41,7 @@ const SwapTestcase TestCases[] =
#undef LONG_STR1
#undef LONG_STR2
-int main()
+int main(int, char**)
{
using namespace fs;
{
@@ -76,4 +76,6 @@ int main()
}
assert(p1 == Val);
}
+
+ return 0;
}
diff --git a/libcxx/test/std/input.output/filesystems/class.path/path.member/path.native.obs/c_str.pass.cpp b/libcxx/test/std/input.output/filesystems/class.path/path.member/path.native.obs/c_str.pass.cpp
index 3f2fac696da..8b35ee8c80a 100644
--- a/libcxx/test/std/input.output/filesystems/class.path/path.member/path.native.obs/c_str.pass.cpp
+++ b/libcxx/test/std/input.output/filesystems/class.path/path.member/path.native.obs/c_str.pass.cpp
@@ -23,7 +23,7 @@
#include "filesystem_test_helper.hpp"
-int main()
+int main(int, char**)
{
using namespace fs;
const char* const value = "hello world";
@@ -38,4 +38,6 @@ int main()
assert(p.c_str() == str_value);
assert(p.native().c_str() == p.c_str());
}
+
+ return 0;
}
diff --git a/libcxx/test/std/input.output/filesystems/class.path/path.member/path.native.obs/named_overloads.pass.cpp b/libcxx/test/std/input.output/filesystems/class.path/path.member/path.native.obs/named_overloads.pass.cpp
index 0d747b18895..c06de9795e3 100644
--- a/libcxx/test/std/input.output/filesystems/class.path/path.member/path.native.obs/named_overloads.pass.cpp
+++ b/libcxx/test/std/input.output/filesystems/class.path/path.member/path.native.obs/named_overloads.pass.cpp
@@ -32,7 +32,7 @@
MultiStringType longString = MKSTR("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/123456789/abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ");
-int main()
+int main(int, char**)
{
using namespace fs;
auto const& MS = longString;
@@ -58,4 +58,6 @@ int main()
std::u32string s = p.u32string();
assert(s == (const char32_t*)MS);
}
+
+ return 0;
}
diff --git a/libcxx/test/std/input.output/filesystems/class.path/path.member/path.native.obs/native.pass.cpp b/libcxx/test/std/input.output/filesystems/class.path/path.member/path.native.obs/native.pass.cpp
index 14feaf13e8e..3b88b5d6c64 100644
--- a/libcxx/test/std/input.output/filesystems/class.path/path.member/path.native.obs/native.pass.cpp
+++ b/libcxx/test/std/input.output/filesystems/class.path/path.member/path.native.obs/native.pass.cpp
@@ -22,7 +22,7 @@
#include "filesystem_test_helper.hpp"
-int main()
+int main(int, char**)
{
using namespace fs;
const char* const value = "hello world";
@@ -35,4 +35,6 @@ int main()
path p(value);
assert(p.native() == value);
}
+
+ return 0;
}
diff --git a/libcxx/test/std/input.output/filesystems/class.path/path.member/path.native.obs/operator_string.pass.cpp b/libcxx/test/std/input.output/filesystems/class.path/path.member/path.native.obs/operator_string.pass.cpp
index 53fdcc16034..9f0069051fd 100644
--- a/libcxx/test/std/input.output/filesystems/class.path/path.member/path.native.obs/operator_string.pass.cpp
+++ b/libcxx/test/std/input.output/filesystems/class.path/path.member/path.native.obs/operator_string.pass.cpp
@@ -23,7 +23,7 @@
#include "filesystem_test_helper.hpp"
-int main()
+int main(int, char**)
{
using namespace fs;
using string_type = path::string_type;
@@ -42,4 +42,6 @@ int main()
assert(s == value);
assert(p == value);
}
+
+ return 0;
}
diff --git a/libcxx/test/std/input.output/filesystems/class.path/path.member/path.native.obs/string_alloc.pass.cpp b/libcxx/test/std/input.output/filesystems/class.path/path.member/path.native.obs/string_alloc.pass.cpp
index 86453f8d0b9..4ace380b873 100644
--- a/libcxx/test/std/input.output/filesystems/class.path/path.member/path.native.obs/string_alloc.pass.cpp
+++ b/libcxx/test/std/input.output/filesystems/class.path/path.member/path.native.obs/string_alloc.pass.cpp
@@ -116,7 +116,7 @@ void doLongStringTest(MultiStringType const& MS) {
/////////////////////////////////////////////////////////////////////////////
}
-int main()
+int main(int, char**)
{
using namespace fs;
{
@@ -133,4 +133,6 @@ int main()
doLongStringTest<char16_t>(S);
doLongStringTest<char32_t>(S);
}
+
+ return 0;
}
diff --git a/libcxx/test/std/input.output/filesystems/class.path/path.member/path.query/tested_in_path_decompose.pass.cpp b/libcxx/test/std/input.output/filesystems/class.path/path.member/path.query/tested_in_path_decompose.pass.cpp
index d825788506b..32c37e7f7a5 100644
--- a/libcxx/test/std/input.output/filesystems/class.path/path.member/path.query/tested_in_path_decompose.pass.cpp
+++ b/libcxx/test/std/input.output/filesystems/class.path/path.member/path.query/tested_in_path_decompose.pass.cpp
@@ -28,4 +28,6 @@
// bool is_relative() const;
// tested in path.decompose
-int main() {}
+int main(int, char**) {
+ return 0;
+}
diff --git a/libcxx/test/std/input.output/filesystems/class.path/path.nonmember/append_op.fail.cpp b/libcxx/test/std/input.output/filesystems/class.path/path.nonmember/append_op.fail.cpp
index 7b5082c8f8d..bcc4758f45f 100644
--- a/libcxx/test/std/input.output/filesystems/class.path/path.nonmember/append_op.fail.cpp
+++ b/libcxx/test/std/input.output/filesystems/class.path/path.nonmember/append_op.fail.cpp
@@ -20,7 +20,9 @@ struct ConvToPath {
}
};
-int main() {
+int main(int, char**) {
ConvToPath LHS, RHS;
(void)(LHS / RHS); // expected-error {{invalid operands to binary expression}}
+
+ return 0;
} \ No newline at end of file
diff --git a/libcxx/test/std/input.output/filesystems/class.path/path.nonmember/append_op.pass.cpp b/libcxx/test/std/input.output/filesystems/class.path/path.nonmember/append_op.pass.cpp
index 2c7042e9b7b..67af37686df 100644
--- a/libcxx/test/std/input.output/filesystems/class.path/path.nonmember/append_op.pass.cpp
+++ b/libcxx/test/std/input.output/filesystems/class.path/path.nonmember/append_op.pass.cpp
@@ -20,7 +20,7 @@
#include "filesystem_test_helper.hpp"
// This is mainly tested via the member append functions.
-int main()
+int main(int, char**)
{
using namespace fs;
path p1("abc");
@@ -30,4 +30,6 @@ int main()
path p4 = p1 / "def";
assert(p4 == "abc/def");
+
+ return 0;
}
diff --git a/libcxx/test/std/input.output/filesystems/class.path/path.nonmember/comparison_ops.fail.cpp b/libcxx/test/std/input.output/filesystems/class.path/path.nonmember/comparison_ops.fail.cpp
index 287e315237b..8f1732186d8 100644
--- a/libcxx/test/std/input.output/filesystems/class.path/path.nonmember/comparison_ops.fail.cpp
+++ b/libcxx/test/std/input.output/filesystems/class.path/path.nonmember/comparison_ops.fail.cpp
@@ -21,7 +21,7 @@ struct ConvToPath {
}
};
-int main() {
+int main(int, char**) {
ConvToPath LHS, RHS;
(void)(LHS == RHS); // expected-error {{invalid operands to binary expression}}
(void)(LHS != RHS); // expected-error {{invalid operands to binary expression}}
@@ -29,4 +29,6 @@ int main() {
(void)(LHS <= RHS); // expected-error {{invalid operands to binary expression}}
(void)(LHS > RHS); // expected-error {{invalid operands to binary expression}}
(void)(LHS >= RHS); // expected-error {{invalid operands to binary expression}}
+
+ return 0;
} \ No newline at end of file
diff --git a/libcxx/test/std/input.output/filesystems/class.path/path.nonmember/comparison_ops_tested_elsewhere.pass.cpp b/libcxx/test/std/input.output/filesystems/class.path/path.nonmember/comparison_ops_tested_elsewhere.pass.cpp
index 3728db5f224..c61a5a0254c 100644
--- a/libcxx/test/std/input.output/filesystems/class.path/path.nonmember/comparison_ops_tested_elsewhere.pass.cpp
+++ b/libcxx/test/std/input.output/filesystems/class.path/path.nonmember/comparison_ops_tested_elsewhere.pass.cpp
@@ -10,4 +10,6 @@
// The comparison operators are tested as part of [path.compare]
// in class.path/path.members/path.compare.pass.cpp
-int main() {}
+int main(int, char**) {
+ return 0;
+}
diff --git a/libcxx/test/std/input.output/filesystems/class.path/path.nonmember/hash_value_tested_elswhere.pass.cpp b/libcxx/test/std/input.output/filesystems/class.path/path.nonmember/hash_value_tested_elswhere.pass.cpp
index 6cf310be88b..49d28daf98f 100644
--- a/libcxx/test/std/input.output/filesystems/class.path/path.nonmember/hash_value_tested_elswhere.pass.cpp
+++ b/libcxx/test/std/input.output/filesystems/class.path/path.nonmember/hash_value_tested_elswhere.pass.cpp
@@ -10,4 +10,6 @@
// The "hash_value" function is tested as part of [path.compare]
// in class.path/path.members/path.compare.pass.cpp
-int main() {}
+int main(int, char**) {
+ return 0;
+}
diff --git a/libcxx/test/std/input.output/filesystems/class.path/path.nonmember/path.factory.pass.cpp b/libcxx/test/std/input.output/filesystems/class.path/path.nonmember/path.factory.pass.cpp
index 54d0799d92a..557849ca8e6 100644
--- a/libcxx/test/std/input.output/filesystems/class.path/path.nonmember/path.factory.pass.cpp
+++ b/libcxx/test/std/input.output/filesystems/class.path/path.nonmember/path.factory.pass.cpp
@@ -25,7 +25,7 @@
#include "filesystem_test_helper.hpp"
-int main()
+int main(int, char**)
{
using namespace fs;
const char* In1 = "abcd/efg";
@@ -48,4 +48,6 @@ int main()
path p = fs::u8path(In3, In3End);
assert(p == In1);
}
+
+ return 0;
}
diff --git a/libcxx/test/std/input.output/filesystems/class.path/path.nonmember/path.io.pass.cpp b/libcxx/test/std/input.output/filesystems/class.path/path.nonmember/path.io.pass.cpp
index 375e45da8e6..31eea925a5d 100644
--- a/libcxx/test/std/input.output/filesystems/class.path/path.nonmember/path.io.pass.cpp
+++ b/libcxx/test/std/input.output/filesystems/class.path/path.nonmember/path.io.pass.cpp
@@ -88,10 +88,12 @@ void test_LWG2989() {
static_assert(!is_istreamable<decltype(std::wcin), std::string>::value, "");
}
-int main() {
+int main(int, char**) {
doIOTest<char>();
doIOTest<wchar_t>();
//doIOTest<char16_t>();
//doIOTest<char32_t>();
test_LWG2989();
+
+ return 0;
}
diff --git a/libcxx/test/std/input.output/filesystems/class.path/path.nonmember/path.io.unicode_bug.pass.cpp b/libcxx/test/std/input.output/filesystems/class.path/path.nonmember/path.io.unicode_bug.pass.cpp
index 2072a9450fb..c5bb6bf120f 100644
--- a/libcxx/test/std/input.output/filesystems/class.path/path.nonmember/path.io.unicode_bug.pass.cpp
+++ b/libcxx/test/std/input.output/filesystems/class.path/path.nonmember/path.io.unicode_bug.pass.cpp
@@ -62,7 +62,9 @@ void doIOTest() {
}
-int main() {
+int main(int, char**) {
doIOTest<char16_t>();
doIOTest<char32_t>();
+
+ return 0;
}
diff --git a/libcxx/test/std/input.output/filesystems/class.path/path.nonmember/swap.pass.cpp b/libcxx/test/std/input.output/filesystems/class.path/path.nonmember/swap.pass.cpp
index 66d854f00b2..51bb03e9f7c 100644
--- a/libcxx/test/std/input.output/filesystems/class.path/path.nonmember/swap.pass.cpp
+++ b/libcxx/test/std/input.output/filesystems/class.path/path.nonmember/swap.pass.cpp
@@ -22,7 +22,7 @@
// NOTE: this is tested in path.members/path.modifiers via the member swap.
-int main()
+int main(int, char**)
{
using namespace fs;
const char* value1 = "foo/bar/baz";
@@ -45,4 +45,6 @@ int main()
assert(p1.native() == value1);
assert(p2.native() == value2);
}
+
+ return 0;
}
diff --git a/libcxx/test/std/input.output/filesystems/class.path/synop.pass.cpp b/libcxx/test/std/input.output/filesystems/class.path/synop.pass.cpp
index 9b91651e08f..8aa186e32ae 100644
--- a/libcxx/test/std/input.output/filesystems/class.path/synop.pass.cpp
+++ b/libcxx/test/std/input.output/filesystems/class.path/synop.pass.cpp
@@ -23,7 +23,7 @@
#include "test_macros.h"
-int main() {
+int main(int, char**) {
using namespace fs;
ASSERT_SAME_TYPE(path::value_type, char);
ASSERT_SAME_TYPE(path::string_type, std::basic_string<path::value_type>);
@@ -34,4 +34,6 @@ int main() {
const char* dummy = &path::preferred_separator;
((void)dummy);
}
+
+ return 0;
}
diff --git a/libcxx/test/std/input.output/filesystems/fs.enum/enum.copy_options.pass.cpp b/libcxx/test/std/input.output/filesystems/fs.enum/enum.copy_options.pass.cpp
index 25f63a92b33..b949960df11 100644
--- a/libcxx/test/std/input.output/filesystems/fs.enum/enum.copy_options.pass.cpp
+++ b/libcxx/test/std/input.output/filesystems/fs.enum/enum.copy_options.pass.cpp
@@ -22,7 +22,7 @@
constexpr fs::copy_options ME(int val) { return static_cast<fs::copy_options>(val); }
-int main() {
+int main(int, char**) {
typedef fs::copy_options E;
static_assert(std::is_enum<E>::value, "");
@@ -59,4 +59,6 @@ int main() {
E::create_symlinks == ME(128) &&
E::create_hard_links == ME(256),
"Expected enumeration values do not match");
+
+ return 0;
}
diff --git a/libcxx/test/std/input.output/filesystems/fs.enum/enum.directory_options.pass.cpp b/libcxx/test/std/input.output/filesystems/fs.enum/enum.directory_options.pass.cpp
index 54574f720f5..43b0945978e 100644
--- a/libcxx/test/std/input.output/filesystems/fs.enum/enum.directory_options.pass.cpp
+++ b/libcxx/test/std/input.output/filesystems/fs.enum/enum.directory_options.pass.cpp
@@ -23,7 +23,7 @@
constexpr fs::directory_options ME(int val) { return static_cast<fs::directory_options>(val); }
-int main() {
+int main(int, char**) {
typedef fs::directory_options E;
static_assert(std::is_enum<E>::value, "");
@@ -41,4 +41,6 @@ int main() {
E::skip_permission_denied == ME(2),
"Expected enumeration values do not match");
+
+ return 0;
}
diff --git a/libcxx/test/std/input.output/filesystems/fs.enum/enum.file_type.pass.cpp b/libcxx/test/std/input.output/filesystems/fs.enum/enum.file_type.pass.cpp
index d2162d08383..c1f16079a5d 100644
--- a/libcxx/test/std/input.output/filesystems/fs.enum/enum.file_type.pass.cpp
+++ b/libcxx/test/std/input.output/filesystems/fs.enum/enum.file_type.pass.cpp
@@ -21,7 +21,7 @@
constexpr fs::file_type ME(int val) { return static_cast<fs::file_type>(val); }
-int main() {
+int main(int, char**) {
typedef fs::file_type E;
static_assert(std::is_enum<E>::value, "");
@@ -43,4 +43,6 @@ int main() {
E::socket == ME(7) &&
E::unknown == ME(8),
"Expected enumeration values do not match");
+
+ return 0;
}
diff --git a/libcxx/test/std/input.output/filesystems/fs.enum/enum.path.format.pass.cpp b/libcxx/test/std/input.output/filesystems/fs.enum/enum.path.format.pass.cpp
index fc11e8a9c1f..d60225d4ff6 100644
--- a/libcxx/test/std/input.output/filesystems/fs.enum/enum.path.format.pass.cpp
+++ b/libcxx/test/std/input.output/filesystems/fs.enum/enum.path.format.pass.cpp
@@ -19,7 +19,7 @@
#include "test_macros.h"
-int main() {
+int main(int, char**) {
typedef fs::path::format E;
static_assert(std::is_enum<E>::value, "");
@@ -34,4 +34,6 @@ int main() {
E::auto_format != E::generic_format &&
E::native_format != E::generic_format,
"Expected enumeration values are not unique");
+
+ return 0;
}
diff --git a/libcxx/test/std/input.output/filesystems/fs.enum/enum.perm_options.pass.cpp b/libcxx/test/std/input.output/filesystems/fs.enum/enum.perm_options.pass.cpp
index 117c35875e0..1fd353d041f 100644
--- a/libcxx/test/std/input.output/filesystems/fs.enum/enum.perm_options.pass.cpp
+++ b/libcxx/test/std/input.output/filesystems/fs.enum/enum.perm_options.pass.cpp
@@ -25,7 +25,7 @@ constexpr fs::perm_options ME(int val) {
return static_cast<fs::perm_options>(val);
}
-int main() {
+int main(int, char**) {
typedef fs::perm_options E;
static_assert(std::is_enum<E>::value, "");
@@ -44,4 +44,6 @@ int main() {
E::remove == ME(4) &&
E::nofollow == ME(8),
"Expected enumeration values do not match");
+
+ return 0;
}
diff --git a/libcxx/test/std/input.output/filesystems/fs.enum/enum.perms.pass.cpp b/libcxx/test/std/input.output/filesystems/fs.enum/enum.perms.pass.cpp
index e043c87e5c1..93b5278fdd4 100644
--- a/libcxx/test/std/input.output/filesystems/fs.enum/enum.perms.pass.cpp
+++ b/libcxx/test/std/input.output/filesystems/fs.enum/enum.perms.pass.cpp
@@ -23,7 +23,7 @@
constexpr fs::perms ME(int val) { return static_cast<fs::perms>(val); }
-int main() {
+int main(int, char**) {
typedef fs::perms E;
static_assert(std::is_enum<E>::value, "");
@@ -60,4 +60,6 @@ int main() {
E::mask == ME(07777) &&
E::unknown == ME(0xFFFF),
"Expected enumeration values do not match");
+
+ return 0;
}
diff --git a/libcxx/test/std/input.output/filesystems/fs.error.report/tested_elsewhere.pass.cpp b/libcxx/test/std/input.output/filesystems/fs.error.report/tested_elsewhere.pass.cpp
index f77636c8475..1f764da05d6 100644
--- a/libcxx/test/std/input.output/filesystems/fs.error.report/tested_elsewhere.pass.cpp
+++ b/libcxx/test/std/input.output/filesystems/fs.error.report/tested_elsewhere.pass.cpp
@@ -6,6 +6,8 @@
//
//===----------------------------------------------------------------------===//
-int main()
+int main(int, char**)
{
+
+ return 0;
}
diff --git a/libcxx/test/std/input.output/filesystems/fs.filesystem.synopsis/file_time_type.pass.cpp b/libcxx/test/std/input.output/filesystems/fs.filesystem.synopsis/file_time_type.pass.cpp
index 6606c9a27cf..e88ef1d12c4 100644
--- a/libcxx/test/std/input.output/filesystems/fs.filesystem.synopsis/file_time_type.pass.cpp
+++ b/libcxx/test/std/input.output/filesystems/fs.filesystem.synopsis/file_time_type.pass.cpp
@@ -39,7 +39,9 @@ void test_time_point_resolution_and_range() {
ASSERT_SAME_TYPE(Period, std::nano);
}
-int main() {
+int main(int, char**) {
test_trivial_clock();
test_time_point_resolution_and_range();
+
+ return 0;
}
diff --git a/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.weakly_canonical/weakly_canonical.pass.cpp b/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.weakly_canonical/weakly_canonical.pass.cpp
index c655490acf8..94a8e13bc08 100644
--- a/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.weakly_canonical/weakly_canonical.pass.cpp
+++ b/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.weakly_canonical/weakly_canonical.pass.cpp
@@ -25,7 +25,7 @@
#include "filesystem_test_helper.hpp"
-int main() {
+int main(int, char**) {
// clang-format off
struct {
std::string input;
diff --git a/libcxx/test/std/input.output/filesystems/fs.req.macros/feature_macro.pass.cpp b/libcxx/test/std/input.output/filesystems/fs.req.macros/feature_macro.pass.cpp
index aa1933cc6b1..dad1868bee3 100644
--- a/libcxx/test/std/input.output/filesystems/fs.req.macros/feature_macro.pass.cpp
+++ b/libcxx/test/std/input.output/filesystems/fs.req.macros/feature_macro.pass.cpp
@@ -25,4 +25,6 @@
#endif
#endif
-int main() { }
+int main(int, char**) {
+ return 0;
+}
diff --git a/libcxx/test/std/input.output/filesystems/fs.req.namespace/namespace.fail.cpp b/libcxx/test/std/input.output/filesystems/fs.req.namespace/namespace.fail.cpp
index e3030995de1..641621e7338 100644
--- a/libcxx/test/std/input.output/filesystems/fs.req.namespace/namespace.fail.cpp
+++ b/libcxx/test/std/input.output/filesystems/fs.req.namespace/namespace.fail.cpp
@@ -23,6 +23,8 @@ using namespace std::filesystem;
// expected-error@-5 {{expected namespace name}}
#endif
-int main() {
+int main(int, char**) {
+
+ return 0;
}
diff --git a/libcxx/test/std/input.output/filesystems/fs.req.namespace/namespace.pass.cpp b/libcxx/test/std/input.output/filesystems/fs.req.namespace/namespace.pass.cpp
index 96ba646ffbe..65864336901 100644
--- a/libcxx/test/std/input.output/filesystems/fs.req.namespace/namespace.pass.cpp
+++ b/libcxx/test/std/input.output/filesystems/fs.req.namespace/namespace.pass.cpp
@@ -17,9 +17,11 @@
using namespace std::filesystem;
-int main() {
+int main(int, char**) {
static_assert(std::is_same<
path,
std::filesystem::path
>::value, "");
+
+ return 0;
}
OpenPOWER on IntegriCloud