diff options
Diffstat (limited to 'libcxx/test/std/numerics/c.math')
-rw-r--r-- | libcxx/test/std/numerics/c.math/cmath.pass.cpp | 4 | ||||
-rw-r--r-- | libcxx/test/std/numerics/c.math/ctgmath.pass.cpp | 4 | ||||
-rw-r--r-- | libcxx/test/std/numerics/c.math/tgmath_h.pass.cpp | 4 |
3 files changed, 9 insertions, 3 deletions
diff --git a/libcxx/test/std/numerics/c.math/cmath.pass.cpp b/libcxx/test/std/numerics/c.math/cmath.pass.cpp index fa904864387..3f9a5f557cc 100644 --- a/libcxx/test/std/numerics/c.math/cmath.pass.cpp +++ b/libcxx/test/std/numerics/c.math/cmath.pass.cpp @@ -1514,7 +1514,7 @@ void test_trunc() assert(std::trunc(1) == 1); } -int main() +int main(int, char**) { test_abs(); test_acos(); @@ -1586,4 +1586,6 @@ int main() test_scalbn(); test_tgamma(); test_trunc(); + + return 0; } diff --git a/libcxx/test/std/numerics/c.math/ctgmath.pass.cpp b/libcxx/test/std/numerics/c.math/ctgmath.pass.cpp index c2ea8e8755d..4cba6031aaf 100644 --- a/libcxx/test/std/numerics/c.math/ctgmath.pass.cpp +++ b/libcxx/test/std/numerics/c.math/ctgmath.pass.cpp @@ -10,10 +10,12 @@ #include <ctgmath> -int main() +int main(int, char**) { std::complex<double> cd; (void)cd; double x = std::sin(0); ((void)x); // Prevent unused warning + + return 0; } diff --git a/libcxx/test/std/numerics/c.math/tgmath_h.pass.cpp b/libcxx/test/std/numerics/c.math/tgmath_h.pass.cpp index c58827cb4af..3fab28b0425 100644 --- a/libcxx/test/std/numerics/c.math/tgmath_h.pass.cpp +++ b/libcxx/test/std/numerics/c.math/tgmath_h.pass.cpp @@ -10,6 +10,8 @@ #include <tgmath.h> -int main() +int main(int, char**) { + + return 0; } |