aboutsummaryrefslogtreecommitdiff
path: root/test/Sema/attr-aligned.c
blob: c7d65ee9ae8a08874ef32692461e60a28f3e181e (plain)
1
2
3
4
5
6
7
// RUN: clang-cc -triple i386-apple-darwin9 -fsyntax-only -verify %s

int x __attribute__((aligned(3))); // expected-error {{requested alignment is not a power of 2}}

// PR3254
short g0[3] __attribute__((aligned));
short g0_chk[__alignof__(g0) == 16 ? 1 : -1];