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// <cstdalign>10 11// check that <cstdalign> is deprecated in C++17 and removed in C++2012// When built with modules, <cstdalign> 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 <cstdalign>23 24// expected-warning@cstdalign:* {{<cstdalign> is deprecated in C++17 and removed in C++20.}}25