Skip to content

Commit 381bd9b

Browse files
pass map.value_compare/types.pass.cpp
1 parent f20cfeb commit 381bd9b

File tree

1 file changed

+2
-9
lines changed
  • libcxx/test/std/containers/associative/map/map.value_compare

1 file changed

+2
-9
lines changed

libcxx/test/std/containers/associative/map/map.value_compare/types.pass.cpp

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
// <map>
1010

11-
// class value_compare // constexpr since C++26
11+
// class value_compare
1212

1313
// REQUIRES: c++03 || c++11 || c++14
1414

@@ -17,21 +17,14 @@
1717

1818
#include "test_macros.h"
1919

20-
TEST_CONSTEXPR_CXX26 bool test() {
20+
int main(int, char**) {
2121
typedef std::map<int, std::string> map_type;
2222
typedef map_type::value_compare value_compare;
2323
typedef map_type::value_type value_type;
2424

2525
ASSERT_SAME_TYPE(value_compare::result_type, bool);
2626
ASSERT_SAME_TYPE(value_compare::first_argument_type, value_type);
2727
ASSERT_SAME_TYPE(value_compare::second_argument_type, value_type);
28-
return true;
29-
}
3028

31-
int main(int, char**) {
32-
assert(test());
33-
#if TEST_STD_VER >= 26
34-
static_assert(test());
35-
#endif
3629
return 0;
3730
}

0 commit comments

Comments
 (0)