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