Debian Codegraph @

gcc/testsuite/gcc.dg/pr121506.c

raw
1 /* PR c/121506 */
2 /* { dg-do compile } */
3
4 #include <stdarg.h>
5
6 struct A;
7 void foo (struct A *); /* { dg-message "previous declaration of 'foo' with type 'void\\\(struct A \\\*\\\)'" } */
8 void foo (va_list); /* { dg-error "conflicting types for 'foo'; have" } */