summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/Wmissing-parameter-type-no.c
blob: 45e5e42c0daa4fa0729ac6ac78b3abb23648e16b (plain)
1
2
3
4
5
6
7
/* Test that we can disable -Wmissing-parameter-type */
/* { dg-do compile } */
/* { dg-options "-Wall -Wextra -Wno-missing-parameter-type -std=gnu89" } */

int foo(bar) { return bar;} /* { dg-bogus "type of 'bar' defaults to 'int'" } */