Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/Wold-style-definition-1.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
/* Test for warning about old-style function definition. */ /* Origin: Andreas Jaeger <aj@suse.de> */ /* { dg-do compile } */ /* { dg-options "-Wold-style-definition -std=gnu89" } */ void bar (a) int a; { } /* { dg-warning "old-style function definition" } */ void bar1 () {} /* { dg-warning "old-style function definition" } */ extern void bar2 (void); void bar2 () {} /* { dg-warning "old-style function definition" } */ extern void bar3 (int); void bar3 (a) {} /* { dg-warning "old-style function definition" } */ void bar4 (a) {} /* { dg-warning "old-style function definition" } */ void bar5 (int a) {} void bar6 (void) {}