Skip to content

Commit 5bd3ee0

Browse files
[libcxx][test] Use long double test macro in strong_order.pass.cpp (llvm#106742)
1 parent d79c4c1 commit 5bd3ee0

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

libcxx/test/std/language.support/cmp/cmp.alg/strong_order.pass.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -454,12 +454,16 @@ int main(int, char**)
454454
test_1_2();
455455
test_1_3<float>();
456456
test_1_3<double>();
457-
// test_1_3<long double>(); // UNIMPLEMENTED
457+
#ifdef TEST_LONG_DOUBLE_IS_DOUBLE
458+
test_1_3<long double>(); // UNIMPLEMENTED when long double is a distinct type
459+
#endif
458460
test_1_4();
459461

460462
static_assert(test_1_3<float>());
461463
static_assert(test_1_3<double>());
462-
// static_assert(test_1_3<long double>()); // UNIMPLEMENTED
464+
#ifdef TEST_LONG_DOUBLE_IS_DOUBLE
465+
static_assert(test_1_3<long double>()); // UNIMPLEMENTED when long double is a distinct type
466+
#endif
463467
static_assert(test_1_4());
464468

465469
return 0;

0 commit comments

Comments
 (0)