blob: 1a4b6400e09599a252a8ad3c4ca94a5fca59d43a [file] [log] [blame]
Chandler Carruthdea47a52013-09-20 21:12:25 +00001// RUN: %clang_cc1 -ffreestanding -fsyntax-only -std=c++11 %s
2// RUN: %clang_cc1 -ffreestanding -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, "");
Richard Smith32b50132013-04-12 22:11:07 +000016
17
18#include <stdint.h>
19
20#ifndef SIZE_MAX
21#error SIZE_MAX should be defined in C++
22#endif