Skip analyzer strndup test on hppa*-*-hpux*
[official-gcc.git] / gcc / testsuite / gcc.dg / gnu23-stdarg-1.c
blob0a78b2214987dd79ce5cd0689c42cfb0cfcc3ebe
1 /* Test variadic functions with no named parameters do not accept GNU
2 attributes before '...'. */
3 /* { dg-do compile } */
4 /* { dg-options "-std=gnu23" } */
6 int f (__attribute__(()) ...); /* { dg-error "expected" } */
7 int g (int (__attribute__(()) ...)); /* { dg-error "expected" } */
8 int h (__attribute__(()) ...) { return 0; } /* { dg-error "expected" } */