mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-26 01:56:06 +00:00
[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.
This commit is contained in:
parent
b8f134faba
commit
499e13514a
@ -228,8 +228,8 @@ int main(int, char**)
|
||||
// But the rvalue to lvalue reference binding isn't allowed according to
|
||||
// [over.match.ref] despite Clang accepting it.
|
||||
test_is_constructible<int&, ExplicitTo<int&>>();
|
||||
#ifndef TEST_COMPILER_GCC
|
||||
test_is_constructible<const int&, ExplicitTo<int&&>>();
|
||||
#ifndef TEST_COMPILER_CLANG
|
||||
test_is_not_constructible<const int&, ExplicitTo<int&&>>();
|
||||
#endif
|
||||
|
||||
static_assert(std::is_constructible<int&&, ExplicitTo<int&&>>::value, "");
|
||||
|
Loading…
x
Reference in New Issue
Block a user