brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1013 B · 900ca0e Raw
25 lines · cpp
1//===----------------------------------------------------------------------===//2//3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.4// See https://llvm.org/LICENSE.txt for license information.5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception6//7//===----------------------------------------------------------------------===//8 9// <ccomplex>10 11// check that <ccomplex> is deprecated in C++17 and removed in C++2012// When built with modules, <ccomplex> should be omitted.13 14// UNSUPPORTED: c++03, c++11, c++1415// UNSUPPORTED: clang-modules-build16 17// FIXME: using `#warning` causes diagnostics from system headers which include deprecated headers. This can only be18// enabled again once https://github.com/llvm/llvm-project/pull/168041 (or a similar feature) has landed, since that19// allows suppression in system headers.20// XFAIL: *21 22#include <ccomplex>23 24// expected-warning@ccomplex:* {{<ccomplex> is deprecated in C++17 and removed in C++20. Include <complex> instead.}}25