diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-01-30 06:33:54 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-01-30 06:33:54 +0000 |
commit | 48cb74adac0acb5681ba12e9202adc1d9cb2d523 (patch) | |
tree | ff71634add9e40a7c5b180ec4a2cb99c5a1f93bb /test/Headers | |
parent | e6738d81680aa9bb94ab386d29d4118fed01673d (diff) |
C11: Provide the missing half of <stdalign.h>
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@173900 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Headers')
-rw-r--r-- | test/Headers/c11.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Headers/c11.c b/test/Headers/c11.c index 1a3d4d41fe..24a1c2a60d 100644 --- a/test/Headers/c11.c +++ b/test/Headers/c11.c @@ -10,3 +10,9 @@ int g(); noreturn int g(); int noreturn g(); int g(); + +#include <stdalign.h> +_Static_assert(__alignas_is_defined, ""); +_Static_assert(__alignof_is_defined, ""); +alignas(alignof(int)) char c[4]; +_Static_assert(__alignof(c) == 4, ""); |