annotate gcc/testsuite/gcc.dg/funcdef-var-1.c @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* Test ICE on defining function with a name previously declared as a
kono
parents:
diff changeset
2 nonfunction. Bug 28299 from Bernhard Fischer
kono
parents:
diff changeset
3 <aldot@gcc.gnu.org>. */
kono
parents:
diff changeset
4 /* { dg-do compile } */
kono
parents:
diff changeset
5 /* { dg-options "-Wmissing-prototypes" } */
kono
parents:
diff changeset
6
kono
parents:
diff changeset
7 extern __typeof(foo) foo __asm__(""); /* { dg-error "undeclared" } */
kono
parents:
diff changeset
8 /* { dg-message "note: previous declaration" "previous declaration" { target *-*-* } .-1 } */
kono
parents:
diff changeset
9 void *foo (void) {} /* { dg-error "redeclared as different kind of symbol" } */
kono
parents:
diff changeset
10 /* { dg-warning "no previous prototype" "no previous prototype" { target *-*-* } .-1 } */