blob: 5b0ec0b79ccb06ebdfb44e6181a208b09473a987 [file] [log] [blame]
Chandler Carruth2c93cb22013-09-20 21:12:25 +00001// RUN: %clang_cc1 -ffreestanding -fsyntax-only -std=c++11 %s
Alp Toker7591a052014-04-19 19:07:19 +00002// RUN: %clang_cc1 -ffreestanding -fsyntax-only -std=c++11 -fmodules %s
Richard Smith8acb4042013-02-21 02:17:58 +00003
Alp Toker7591a052014-04-19 19:07:19 +00004// This test fails on systems with older OS X 10.9 SDK headers, see PR18322.
Nico Weber428a93b2013-12-24 20:48:13 +00005
Richard Smith8acb4042013-02-21 02:17:58 +00006#include <stdalign.h>
7
8#if defined alignas
9#error alignas should not be defined in C++
10#endif
11
12#if defined alignof
13#error alignof should not be defined in C++
14#endif
15
16static_assert(__alignas_is_defined, "");
17static_assert(__alignof_is_defined, "");
Richard Smith23628292013-04-12 22:11:07 +000018
19
20#include <stdint.h>
21
22#ifndef SIZE_MAX
23#error SIZE_MAX should be defined in C++
24#endif