blob: 28f5da5eed53c3365f6f848866cfb2a263b39d1e (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
/* { dg-do compile } */
/* { dg-options "-std=gnu17 -fpermissive -Wno-implicit -Wimplicit-int" } */
static l; /* { dg-warning "type defaults to" } */
foo (a) /* { dg-warning "return type defaults to" } */
/* { dg-warning "type of .a. defaults to .int." "type" { target *-*-* } .-1 } */
{
auto p; /* { dg-warning "type defaults to" } */
typedef bar; /* { dg-warning "type defaults to" } */
}
|