brintos

brintos / llvm-project-archived public Read only

0
0
Text · 917 B · e7290aa Raw
34 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 <stdalign.h>10//11// Even though <stdalign.h> is not provided by libc++,12// we still test that using it with libc++ on the search path will work.13 14// TODO: GCC doesn't provide a proper <stdalign.h> for C++ until 15.15// UNSUPPORTED: gcc16 17#include <stdalign.h>18 19#ifndef __alignas_is_defined20#  error __alignas_is_defined not defined21#endif22 23#ifndef __alignof_is_defined24#  error __alignof_is_defined not defined25#endif26 27#ifdef alignas28#  error alignas should not be defined29#endif30 31#ifdef alignof32#  error alignof should not be defined33#endif34