summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/Wimplicit-int-1.c
blob: 0c89caf8c479b39347c7696f52ea31b5d9671303 (plain)
1
2
3
4
5
6
7
8
9
10
11
/* { dg-do compile } */
/* { dg-options "" } */

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 *-*-* } 6 } */
{
  auto p; /* { dg-warning "type defaults to" } */
  typedef bar; /* { dg-warning "type defaults to" } */
}