diff options
Diffstat (limited to 'libcxx/test/std/utilities/function.objects/refwrap/refwrap.const')
3 files changed, 9 insertions, 3 deletions
diff --git a/libcxx/test/std/utilities/function.objects/refwrap/refwrap.const/copy_ctor.pass.cpp b/libcxx/test/std/utilities/function.objects/refwrap/refwrap.const/copy_ctor.pass.cpp index 64726b53ef8..355047d98ce 100644 --- a/libcxx/test/std/utilities/function.objects/refwrap/refwrap.const/copy_ctor.pass.cpp +++ b/libcxx/test/std/utilities/function.objects/refwrap/refwrap.const/copy_ctor.pass.cpp @@ -30,7 +30,7 @@ test(T& t) void f() {} -int main() +int main(int, char**) { void (*fp)() = f; test(fp); @@ -41,4 +41,6 @@ int main() test(i); const int j = 0; test(j); + + return 0; } diff --git a/libcxx/test/std/utilities/function.objects/refwrap/refwrap.const/type_ctor.fail.cpp b/libcxx/test/std/utilities/function.objects/refwrap/refwrap.const/type_ctor.fail.cpp index f7a6670b431..f02a9974d7d 100644 --- a/libcxx/test/std/utilities/function.objects/refwrap/refwrap.const/type_ctor.fail.cpp +++ b/libcxx/test/std/utilities/function.objects/refwrap/refwrap.const/type_ctor.fail.cpp @@ -17,7 +17,9 @@ #include <functional> #include <cassert> -int main() +int main(int, char**) { std::reference_wrapper<const int> r(3); + + return 0; } diff --git a/libcxx/test/std/utilities/function.objects/refwrap/refwrap.const/type_ctor.pass.cpp b/libcxx/test/std/utilities/function.objects/refwrap/refwrap.const/type_ctor.pass.cpp index 2cbb1a010f1..a43d0fd2510 100644 --- a/libcxx/test/std/utilities/function.objects/refwrap/refwrap.const/type_ctor.pass.cpp +++ b/libcxx/test/std/utilities/function.objects/refwrap/refwrap.const/type_ctor.pass.cpp @@ -29,7 +29,7 @@ test(T& t) void f() {} -int main() +int main(int, char**) { void (*fp)() = f; test(fp); @@ -40,4 +40,6 @@ int main() test(i); const int j = 0; test(j); + + return 0; } |