]> granicus.if.org Git - clang/commitdiff
Reland part of "Add AIX Target Info"
authorJason Liu <jasonliu.development@gmail.com>
Thu, 14 Mar 2019 20:27:39 +0000 (20:27 +0000)
committerJason Liu <jasonliu.development@gmail.com>
Thu, 14 Mar 2019 20:27:39 +0000 (20:27 +0000)
This patch reland the test case max_align.c which is failing at
Windows and PS4 platform in the previous commit.

Differential Revision: https://reviews.llvm.org/D59048

original llvm-svn: 356060

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@356197 91177308-0d34-0410-b5e6-96231b3b80d8

test/Headers/max_align.c [new file with mode: 0644]

diff --git a/test/Headers/max_align.c b/test/Headers/max_align.c
new file mode 100644 (file)
index 0000000..283a7a8
--- /dev/null
@@ -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), "");