Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/attr-alloc_align-2.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children | 1830386684a0 |
line wrap: on
line source
/* { dg-do compile } */ int i; void *f1 (int) __attribute__((alloc_align (1))); void *f2 (int, int, int) __attribute__((alloc_align (3))); void *f3 (void) __attribute__((alloc_align)); /* { dg-error "wrong number of arguments specified" } */ void *f4 (int, int) __attribute__((alloc_align (1, 2))); /* { dg-error "wrong number of arguments specified" } */ void *f5 (void) __attribute__((alloc_align (i))); /* { dg-warning "outside range" } */ void *f6 (int) __attribute__((alloc_align (0))); /* { dg-warning "outside range" } */ void *f7 (int) __attribute__((alloc_align (2))); /* { dg-warning "outside range" } */