diff options
| author | Jason Liu <jasonliu.development@gmail.com> | 2019-03-14 20:27:39 +0000 |
|---|---|---|
| committer | Jason Liu <jasonliu.development@gmail.com> | 2019-03-14 20:27:39 +0000 |
| commit | c4420b00f1028d674935d8515f9af29619f2651e (patch) | |
| tree | 7e68f7f7472159d16216f6d177e139ce797e94bf /clang | |
| parent | 4af1c265025e003d25ac419b38d736d9bbf68b3c (diff) | |
| download | bcm5719-llvm-c4420b00f1028d674935d8515f9af29619f2651e.tar.gz bcm5719-llvm-c4420b00f1028d674935d8515f9af29619f2651e.zip | |
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
Diffstat (limited to 'clang')
| -rw-r--r-- | clang/test/Headers/max_align.c | 12 |
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), ""); |

