Skip to content

Commit 499e135

Browse files
authored
[libc++][test] Do not test Clang bug in is_constructible.pass.cpp (#105964)
A comment in `is_constructible.pass.cpp` suggests that Clang is non-conforming in accepting construction of `const int&` from `ExplicitTo<int&&>`. This PR changes the test to expect the standard-conforming behavior, which makes the test pass on MSVC.
1 parent b8f134f commit 499e135

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libcxx/test/std/utilities/meta/meta.unary/meta.unary.prop/is_constructible.pass.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,8 +228,8 @@ int main(int, char**)
228228
// But the rvalue to lvalue reference binding isn't allowed according to
229229
// [over.match.ref] despite Clang accepting it.
230230
test_is_constructible<int&, ExplicitTo<int&>>();
231-
#ifndef TEST_COMPILER_GCC
232-
test_is_constructible<const int&, ExplicitTo<int&&>>();
231+
#ifndef TEST_COMPILER_CLANG
232+
test_is_not_constructible<const int&, ExplicitTo<int&&>>();
233233
#endif
234234

235235
static_assert(std::is_constructible<int&&, ExplicitTo<int&&>>::value, "");

0 commit comments

Comments
 (0)