summaryrefslogtreecommitdiffstats
path: root/test/Headers/cxx11.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/Headers/cxx11.cpp')
-rw-r--r--test/Headers/cxx11.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/Headers/cxx11.cpp b/test/Headers/cxx11.cpp
new file mode 100644
index 0000000..41bdc76
--- /dev/null
+++ b/test/Headers/cxx11.cpp
@@ -0,0 +1,15 @@
+// RUN: %clang -fsyntax-only -std=c++11 %s
+// RUN: %clang -fsyntax-only -std=c++11 -fmodules %s
+
+#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, "");
OpenPOWER on IntegriCloud