HomePhabricator

[libcxx] Fix deprecation warning by suppressing deprecated around…

Authored by zoecarver on May 23 2020, 2:32 PM.

Description

[libcxx] Fix deprecation warning by suppressing deprecated around __test_has_construct.

In C++17 some tests started failing after a521532aa16df2c06c91488f2a4e787586f0a611. This fixes those errors by suppressing the deprecation warning when calling construct in __test_has_construct. This is the same solution as __has_destroy_test already uses.

Reviewers: ldionne, #libc!

Subscribers: dexonsmith, libcxx-commits

Tags: #libc

Differential Revision: https://reviews.llvm.org/D80481