File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed
libcxx/test/std/containers/associative/map/map.value_compare Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change 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
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}
You can’t perform that action at this time.
0 commit comments