PR tree-optimization/81303
[official-gcc.git] / gcc / testsuite / gcc.dg / attr-alloc_align-2.c
blob3dc7a219839c18ce52339516acf2050e9ba3bd94
1 /* { dg-do compile } */
3 int i;
4 void *f1 (int) __attribute__((alloc_align (1)));
5 void *f2 (int, int, int) __attribute__((alloc_align (3)));
6 void *f3 (void) __attribute__((alloc_align)); /* { dg-error "wrong number of arguments specified" } */
7 void *f4 (int, int) __attribute__((alloc_align (1, 2))); /* { dg-error "wrong number of arguments specified" } */
8 void *f5 (void) __attribute__((alloc_align (i))); /* { dg-warning "outside range" } */
9 void *f6 (int) __attribute__((alloc_align (0))); /* { dg-warning "outside range" } */
10 void *f7 (int) __attribute__((alloc_align (2))); /* { dg-warning "outside range" } */