summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/depr/depr.c.headers/setjmp_h.pass.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libcxx/test/std/depr/depr.c.headers/setjmp_h.pass.cpp')
-rw-r--r--libcxx/test/std/depr/depr.c.headers/setjmp_h.pass.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/libcxx/test/std/depr/depr.c.headers/setjmp_h.pass.cpp b/libcxx/test/std/depr/depr.c.headers/setjmp_h.pass.cpp
index 3c8584b1b2f..1878f4f8470 100644
--- a/libcxx/test/std/depr/depr.c.headers/setjmp_h.pass.cpp
+++ b/libcxx/test/std/depr/depr.c.headers/setjmp_h.pass.cpp
@@ -15,10 +15,12 @@
#error setjmp not defined
#endif
-int main()
+int main(int, char**)
{
jmp_buf jb;
((void)jb); // Prevent unused warning
static_assert((std::is_same<decltype(longjmp(jb, 0)), void>::value),
"std::is_same<decltype(longjmp(jb, 0)), void>::value");
+
+ return 0;
}
OpenPOWER on IntegriCloud