Skip to content

Commit 3cb270b

Browse files
committed
Fix CI
1 parent 2b671b5 commit 3cb270b

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

libcxx/test/std/utilities/variant/variant.relops/relops_bool_conv.verify.cpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@
4141

4242
#include "test_macros.h"
4343

44-
44+
#if TEST_STD_VER >= 26
45+
// expected-no-diagnostics
46+
#else
4547
struct MyBoolExplicit {
4648
bool value;
4749
constexpr explicit MyBoolExplicit(bool v) : value(v) {}
@@ -71,7 +73,7 @@ inline constexpr MyBoolExplicit operator>=(const ComparesToMyBoolExplicit& LHS,
7173
}
7274

7375

74-
int main(int, char**) {
76+
void test() {
7577
using V = std::variant<int, ComparesToMyBoolExplicit>;
7678
V v1(42);
7779
V v2(101);
@@ -83,6 +85,6 @@ int main(int, char**) {
8385
(void)(v1 <= v2); // expected-note {{here}}
8486
(void)(v1 > v2); // expected-note {{here}}
8587
(void)(v1 >= v2); // expected-note {{here}}
86-
87-
return 0;
8888
}
89+
90+
#endif

0 commit comments

Comments
 (0)