Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/gcc.dg/pr35899.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
68:561a7518be6b | 111:04ced10e8804 |
---|---|
1 /* PR tree-optimization/35899 */ | |
2 /* { dg-do compile } */ | |
3 /* { dg-options "-std=gnu89 -O2" } */ | |
4 | |
5 int | |
6 foo (void) | |
7 { | |
8 int a = bar (); /* { dg-line bar_implicit_decl } */ | |
9 return a; | |
10 } | |
11 | |
12 void | |
13 bar (void) | |
14 /* { dg-warning "conflicting types for" "" { target *-*-* } .-1 } */ | |
15 /* { dg-message "note: previous implicit declaration" "" { target *-*-* } bar_implicit_decl } */ | |
16 { | |
17 } | |
18 |