2014-07-29 Ed Smith-Rowland <3dw4rd@verizon.net>
[official-gcc.git] / gcc / testsuite / c-c++-common / pr50459.c
blob8d75228bbcf4f25da32fef9bb6fddbaf1bbd7c9d
1 /* PR c/50459 */
2 /* { dg-do compile } */
3 /* { dg-options "-Wall -Wextra" } */
5 enum { A = 128, B = 1 };
6 void *fn1 (void) __attribute__((assume_aligned (A)));
7 void *fn2 (void) __attribute__((assume_aligned (A, 4)));
8 void *fn5 (int) __attribute__((alloc_size (B)));
9 void *fn6 (int) __attribute__((alloc_align (B)));
10 void fn7 (const char *, ...) __attribute__ ((sentinel (B)));
11 int __attribute__((vector_size (A))) a;
12 int __attribute__((aligned (A))) foo;