1// RUN: %clang_cc1 -ffreestanding -fsyntax-only -std=c++11 %s 2// RUN: %clang_cc1 -ffreestanding -fsyntax-only -std=c++11 -fmodules %s 3 4// This test fails on systems with older OS X 10.9 SDK headers, see PR18322. 5 6#include <stdalign.h> 7 8#if defined alignas 9#error alignas should not be defined in C++ 10#endif 11 12#if defined alignof 13#error alignof should not be defined in C++ 14#endif 15 16static_assert(__alignas_is_defined, ""); 17static_assert(__alignof_is_defined, ""); 18 19 20#include <stdint.h> 21 22#ifndef SIZE_MAX 23#error SIZE_MAX should be defined in C++ 24#endif 25