Chandler Carruth | dea47a5 | 2013-09-20 21:12:25 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -ffreestanding -fsyntax-only -std=c++11 %s |
| 2 | // RUN: %clang_cc1 -ffreestanding -fsyntax-only -std=c++11 -fmodules %s |
Richard Smith | 9f6e910 | 2013-02-21 02:17:58 +0000 | [diff] [blame] | 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, ""); |
Richard Smith | 32b5013 | 2013-04-12 22:11:07 +0000 | [diff] [blame] | 16 | |
| 17 | |
| 18 | #include <stdint.h> |
| 19 | |
| 20 | #ifndef SIZE_MAX |
| 21 | #error SIZE_MAX should be defined in C++ |
| 22 | #endif |