blob: 41bdc76fdaecb21ac0260208fa800cc7fd734d8f [file] [log] [blame]
Richard Smith9f6e9102013-02-21 02:17:58 +00001// RUN: %clang -fsyntax-only -std=c++11 %s
Richard Smith4a3c6c62013-04-04 02:55:24 +00002// RUN: %clang -fsyntax-only -std=c++11 -fmodules %s
Richard Smith9f6e9102013-02-21 02:17:58 +00003
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
14static_assert(__alignas_is_defined, "");
15static_assert(__alignof_is_defined, "");