[RISCV] Fix mgather -> riscv.masked.strided.load combine not extending indices (...
[llvm-project.git] / libcxx / test / std / language.support / support.runtime / cstdlib.aligned_alloc.compile.pass.cpp
blob1c3c546f415b86b4051ed5b1b24b0328e6c28fff
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-exception
6 //
7 //===----------------------------------------------------------------------===//
9 // test <cstdlib>
10 // std::aligned_alloc
12 // UNSUPPORTED: c++03, c++11, c++14
14 // ::aligned_alloc is provided by the C library, but it's marked as unavailable
15 // until macOS 10.15
16 // XFAIL: stdlib=apple-libc++ && target={{.+}}-apple-macosx10.{{9|10|11|12|13|14}}
18 // ::aligned_alloc is not implemented on Windows
19 // XFAIL: target={{.+}}-windows-{{.+}}
21 // ::aligned_alloc is available starting with Android P (API 28)
22 // XFAIL: target={{.+}}-android{{(eabi)?(21|22|23|24|25|26|27)}}
24 #include <cstdlib>
25 #include <type_traits>
27 static_assert(std::is_same<decltype(std::aligned_alloc(1, 0)), void*>::value, "");