summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/input.output/file.streams/fstreams/fstream.cons/path.pass.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libcxx/test/std/input.output/file.streams/fstreams/fstream.cons/path.pass.cpp')
-rw-r--r--libcxx/test/std/input.output/file.streams/fstreams/fstream.cons/path.pass.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/libcxx/test/std/input.output/file.streams/fstreams/fstream.cons/path.pass.cpp b/libcxx/test/std/input.output/file.streams/fstreams/fstream.cons/path.pass.cpp
index f63ae6bddbb..d86b4b6ccf8 100644
--- a/libcxx/test/std/input.output/file.streams/fstreams/fstream.cons/path.pass.cpp
+++ b/libcxx/test/std/input.output/file.streams/fstreams/fstream.cons/path.pass.cpp
@@ -23,7 +23,7 @@
namespace fs = std::filesystem;
-int main() {
+int main(int, char**) {
fs::path p = get_temp_file_name();
{
std::fstream fs(p, std::ios_base::in | std::ios_base::out |
@@ -45,4 +45,6 @@ int main() {
assert(x == 3.25);
}
std::remove(p.c_str());
+
+ return 0;
}
OpenPOWER on IntegriCloud