summaryrefslogtreecommitdiffstats
path: root/clang/test
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test')
-rw-r--r--clang/test/Headers/max_align.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/clang/test/Headers/max_align.c b/clang/test/Headers/max_align.c
new file mode 100644
index 00000000000..283a7a87704
--- /dev/null
+++ b/clang/test/Headers/max_align.c
@@ -0,0 +1,12 @@
+// RUN: %clang_cc1 -fsyntax-only -std=c11 -verify %s
+// expected-no-diagnostics
+
+// XFAIL: windows-
+
+#ifndef __BIGGEST_ALIGNMENT__
+#error __BIGGEST_ALIGNMENT__ not defined
+#endif
+
+#include <stddef.h>
+
+_Static_assert(__BIGGEST_ALIGNMENT__ == _Alignof(max_align_t), "");
OpenPOWER on IntegriCloud