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