Home | History | Annotate | Download | only in Headers
      1 // RUN: %clang -ffreestanding -fsyntax-only -std=c++11 %s
      2 // RUN: %clang -ffreestanding -fsyntax-only -std=c++11 -fmodules %s
      3 
      4 #include <stdalign.h>
      5 
      6 #if defined alignas
      7 #error alignas should not be defined in C++
      8 #endif
      9 
     10 #if defined alignof
     11 #error alignof should not be defined in C++
     12 #endif
     13 
     14 static_assert(__alignas_is_defined, "");
     15 static_assert(__alignof_is_defined, "");
     16 
     17 
     18 #include <stdint.h>
     19 
     20 #ifndef SIZE_MAX
     21 #error SIZE_MAX should be defined in C++
     22 #endif
     23