llvm-project/clang/test/Headers/max_align.c

13 lines
269 B
C
Raw Normal View History

// 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), "");