aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/attr-assume_aligned-2.c
blob: 9ab558945b374ffdf0bcc3c20576419229e96ade (plain)
1
2
3
4
5
6
7
8
/* { dg-do compile } */

int i;
void *f1 (void) __attribute__((assume_aligned (32)));
void *f2 (void) __attribute__((assume_aligned (16, 4)));
void *f3 (void) __attribute__((assume_aligned)); /* { dg-error "wrong number of arguments specified" } */
void *f4 (void) __attribute__((assume_aligned (32, 16, 8))); /* { dg-error "wrong number of arguments specified" } */
void *f5 (void) __attribute__((assume_aligned (i))); /* { dg-warning "integer constant" } */