From: Jason Liu Date: Thu, 14 Mar 2019 20:27:39 +0000 (+0000) Subject: Reland part of "Add AIX Target Info" X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d8fe413610338c120a5297733d8b8459d529431b;p=clang Reland part of "Add AIX Target Info" 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 --- diff --git a/test/Headers/max_align.c b/test/Headers/max_align.c new file mode 100644 index 0000000000..283a7a8770 --- /dev/null +++ b/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 + +_Static_assert(__BIGGEST_ALIGNMENT__ == _Alignof(max_align_t), "");