summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/depr/depr.c.headers/stdio_h.pass.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libcxx/test/std/depr/depr.c.headers/stdio_h.pass.cpp')
-rw-r--r--libcxx/test/std/depr/depr.c.headers/stdio_h.pass.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/libcxx/test/std/depr/depr.c.headers/stdio_h.pass.cpp b/libcxx/test/std/depr/depr.c.headers/stdio_h.pass.cpp
index b60279696c0..97ea0d41519 100644
--- a/libcxx/test/std/depr/depr.c.headers/stdio_h.pass.cpp
+++ b/libcxx/test/std/depr/depr.c.headers/stdio_h.pass.cpp
@@ -103,7 +103,7 @@
#pragma GCC diagnostic ignored "-Wdeprecated-declarations" // for tmpnam
#endif
-int main()
+int main(int, char**)
{
FILE* fp = 0;
fpos_t fpos = fpos_t();
@@ -165,4 +165,6 @@ int main()
static_assert((std::is_same<decltype(feof(fp)), int>::value), "");
static_assert((std::is_same<decltype(ferror(fp)), int>::value), "");
static_assert((std::is_same<decltype(perror("")), void>::value), "");
+
+ return 0;
}
OpenPOWER on IntegriCloud