Skip to content

Commit c4420b0

Browse files
committed
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 llvm-svn: 356197
1 parent 4af1c26 commit c4420b0

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

clang/test/Headers/max_align.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// RUN: %clang_cc1 -fsyntax-only -std=c11 -verify %s
2+
// expected-no-diagnostics
3+
4+
// XFAIL: windows-
5+
6+
#ifndef __BIGGEST_ALIGNMENT__
7+
#error __BIGGEST_ALIGNMENT__ not defined
8+
#endif
9+
10+
#include <stddef.h>
11+
12+
_Static_assert(__BIGGEST_ALIGNMENT__ == _Alignof(max_align_t), "");

0 commit comments

Comments
 (0)