[libcxx] Fix the broken test after D82657.

Differential Revision: https://reviews.llvm.org/D86685
This commit is contained in:
Haojian Wu 2020-08-27 20:43:20 +02:00
parent c5e6872ec6
commit 3f8a0ecdaa
1 changed files with 2 additions and 0 deletions

View File

@ -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}}