brintos

brintos / llvm-project-archived public Read only

0
0
Text · 945 B · 67eef7d Raw
28 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// test <cstdlib>10// std::aligned_alloc11 12// UNSUPPORTED: c++03, c++11, c++1413 14// ::aligned_alloc is provided by the C library, but it's marked as unavailable15// until macOS 10.1516// XFAIL: target={{.+}}-apple-macosx10.{{13|14}}17 18// ::aligned_alloc is not implemented on Windows19// XFAIL: target={{.+}}-windows-{{.+}}20 21// ::aligned_alloc is available starting with Android P (API 28)22// XFAIL: target={{.+}}-android{{(eabi)?(21|22|23|24|25|26|27)}}23 24#include <cstdlib>25#include <type_traits>26 27static_assert(std::is_same<decltype(std::aligned_alloc(1, 0)), void*>::value, "");28