187ecb89fSBen Langmuir // RUN: rm -rf %t 22c93cb2aSChandler Carruth // RUN: %clang_cc1 -ffreestanding -fsyntax-only -std=c++11 %s 387ecb89fSBen Langmuir // RUN: %clang_cc1 -ffreestanding -fsyntax-only -std=c++11 -fmodules -fmodules-cache-path=%t %s 4*20d4701bSRichard Smith // RUN: %clang_cc1 -ffreestanding -fsyntax-only -std=c++11 -fmodules -fmodules-cache-path=%t -fmodules-local-submodule-visibility %s 58acb4044SRichard Smith 67591a05dSAlp Toker // This test fails on systems with older OS X 10.9 SDK headers, see PR18322. 7428a93b8SNico Weber 88acb4044SRichard Smith #include <stdalign.h> 98acb4044SRichard Smith 108acb4044SRichard Smith #if defined alignas 118acb4044SRichard Smith #error alignas should not be defined in C++ 128acb4044SRichard Smith #endif 138acb4044SRichard Smith 148acb4044SRichard Smith #if defined alignof 158acb4044SRichard Smith #error alignof should not be defined in C++ 168acb4044SRichard Smith #endif 178acb4044SRichard Smith 188acb4044SRichard Smith static_assert(__alignas_is_defined, ""); 198acb4044SRichard Smith static_assert(__alignof_is_defined, ""); 2023628297SRichard Smith 2123628297SRichard Smith 2223628297SRichard Smith #include <stdint.h> 2323628297SRichard Smith 2423628297SRichard Smith #ifndef SIZE_MAX 2523628297SRichard Smith #error SIZE_MAX should be defined in C++ 2623628297SRichard Smith #endif 27