rt_gccstream/gcc/testsuite/gcc.dg/attr-alloc_size-2.c

5 lines
107 B
C

/* { dg-do compile } */
char *foo() __attribute__((alloc_size(1))); /* { dg-warning "outside range" } */