From 616f83530f0215d077ad11d0a09faf62fa2daf5f Mon Sep 17 00:00:00 2001 From: Louis Dionne Date: Tue, 10 Jun 2025 15:22:42 -0400 Subject: [PATCH] [libc++] Move swap test to a .compile.pass.cpp (#143167) --- ...{swap_noexcept.pass.cpp => swap_noexcept.compile.pass.cpp} | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) rename libcxx/test/std/containers/sequences/forwardlist/forwardlist.spec/{swap_noexcept.pass.cpp => swap_noexcept.compile.pass.cpp} (98%) diff --git a/libcxx/test/std/containers/sequences/forwardlist/forwardlist.spec/swap_noexcept.pass.cpp b/libcxx/test/std/containers/sequences/forwardlist/forwardlist.spec/swap_noexcept.compile.pass.cpp similarity index 98% rename from libcxx/test/std/containers/sequences/forwardlist/forwardlist.spec/swap_noexcept.pass.cpp rename to libcxx/test/std/containers/sequences/forwardlist/forwardlist.spec/swap_noexcept.compile.pass.cpp index b83ec3c3c121..b50e67589471 100644 --- a/libcxx/test/std/containers/sequences/forwardlist/forwardlist.spec/swap_noexcept.pass.cpp +++ b/libcxx/test/std/containers/sequences/forwardlist/forwardlist.spec/swap_noexcept.compile.pass.cpp @@ -52,7 +52,7 @@ struct some_alloc2 { typedef std::true_type is_always_equal; }; -int main(int, char**) { +void f() { { typedef std::forward_list C; static_assert(noexcept(swap(std::declval(), std::declval())), ""); @@ -83,6 +83,4 @@ int main(int, char**) { static_assert(noexcept(swap(std::declval(), std::declval())), ""); } #endif - - return 0; }