forked from OSchip/llvm-project
[libcxx] Fix the broken test after D82657.
Differential Revision: https://reviews.llvm.org/D86685
This commit is contained in:
parent
c5e6872ec6
commit
3f8a0ecdaa
|
@ -37,6 +37,8 @@ int main(int, char**) {
|
|||
SPtr<3> s3(nullptr, Deleter{}); // OK
|
||||
}
|
||||
// expected-error-re@memory:* 2 {{static_assert failed{{.*}} "default_delete cannot be instantiated for function types"}}
|
||||
// FIXME: suppress this bogus diagnostic, see https://reviews.llvm.org/D86685.
|
||||
// expected-error@memory:* 0+ {{no member named 'value' in}}
|
||||
{
|
||||
SPtr<4> s4(getFn<4>()); // expected-note {{requested here}}
|
||||
SPtr<5> s5(getFn<5>(), std::default_delete<FnType<5>>{}); // expected-note {{requested here}}
|
||||
|
|
Loading…
Reference in New Issue