27 lines · cpp
1// RUN: rm -rf %t2// RUN: %clang_cc1 -ffreestanding -fsyntax-only -std=c++11 %s3// RUN: %clang_cc1 -ffreestanding -fsyntax-only -std=c++11 -fmodules -fmodules-cache-path=%t %s4// RUN: %clang_cc1 -ffreestanding -fsyntax-only -std=c++11 -fmodules -fmodules-cache-path=%t -fmodules-local-submodule-visibility %s5 6// This test fails on systems with older OS X 10.9 SDK headers, see PR18322.7 8#include <stdalign.h>9 10#if defined alignas11#error alignas should not be defined in C++12#endif13 14#if defined alignof15#error alignof should not be defined in C++16#endif17 18static_assert(__alignas_is_defined, "");19static_assert(__alignof_is_defined, "");20 21 22#include <stdint.h>23 24#ifndef SIZE_MAX25#error SIZE_MAX should be defined in C++26#endif27