aboutsummaryrefslogtreecommitdiff
path: root/test/Headers/cxx11.cpp
blob: 0b35a7c2bdfa19c5670a45be54e664f8c33abd53 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// RUN: rm -rf %t
// RUN: %clang_cc1 -ffreestanding -fsyntax-only -std=c++11 %s
// RUN: %clang_cc1 -ffreestanding -fsyntax-only -std=c++11 -fmodules -fmodules-cache-path=%t %s

// This test fails on systems with older OS X 10.9 SDK headers, see PR18322.

#include <stdalign.h>

#if defined alignas
#error alignas should not be defined in C++
#endif

#if defined alignof
#error alignof should not be defined in C++
#endif

static_assert(__alignas_is_defined, "");
static_assert(__alignof_is_defined, "");


#include <stdint.h>

#ifndef SIZE_MAX
#error SIZE_MAX should be defined in C++
#endif