1 /* { dg-do compile } */ 2 /* { dg-options "-pedantic-errors" } */ 3 4 static l; /* { dg-error "type defaults to" } */ 5 foo(a)6foo (a) /* { dg-error "return type defaults to" } */ 7 /* { dg-error "type of .a. defaults to .int." "type" { target *-*-* } .-1 } */ 8 { 9 auto p; /* { dg-error "type defaults to" } */ 10 typedef bar; /* { dg-error "type defaults to" } */ 11 } 12