1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
|
//===----------------------------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
// test <stdalign.h>
//
// Even though <stdalign.h> is not provided by libc++,
// we still test that using it with libc++ on the search path will work.
// TODO: GCC doesn't provide a proper <stdalign.h> for C++ until 15.
// UNSUPPORTED: gcc
#include <stdalign.h>
#ifndef __alignas_is_defined
# error __alignas_is_defined not defined
#endif
#ifndef __alignof_is_defined
# error __alignof_is_defined not defined
#endif
#ifdef alignas
# error alignas should not be defined
#endif
#ifdef alignof
# error alignof should not be defined
#endif
|