Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / gcc.dg / c99-func-4.c
blob10ec19566f8762ae0e918ef97b3cad02efa41822
1 /* Test for C99 __func__: of type const char []. */
2 /* Origin: Joseph Myers <jsm28@cam.ac.uk> */
3 /* { dg-do compile } */
4 /* { dg-options "-std=iso9899:1999 -pedantic-errors" } */
6 void
7 foo (void)
9 char *p = __func__; /* { dg-error "discards" "__func__ pointer to const" } */