Skip to content

Commit 616f835

Browse files
authored
[libc++] Move swap test to a .compile.pass.cpp (#143167)
1 parent 44b928e commit 616f835

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

libcxx/test/std/containers/sequences/forwardlist/forwardlist.spec/swap_noexcept.pass.cpp renamed to libcxx/test/std/containers/sequences/forwardlist/forwardlist.spec/swap_noexcept.compile.pass.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ struct some_alloc2 {
5252
typedef std::true_type is_always_equal;
5353
};
5454

55-
int main(int, char**) {
55+
void f() {
5656
{
5757
typedef std::forward_list<MoveOnly> C;
5858
static_assert(noexcept(swap(std::declval<C&>(), std::declval<C&>())), "");
@@ -83,6 +83,4 @@ int main(int, char**) {
8383
static_assert(noexcept(swap(std::declval<C&>(), std::declval<C&>())), "");
8484
}
8585
#endif
86-
87-
return 0;
8886
}

0 commit comments

Comments
 (0)