Richard Smith | 9f6e910 | 2013-02-21 02:17:58 +0000 | [diff] [blame] | 1 | // RUN: %clang -fsyntax-only -std=c++11 %s |
Richard Smith | 4a3c6c6 | 2013-04-04 02:55:24 +0000 | [diff] [blame] | 2 | // RUN: %clang -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, ""); |