Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.old-deja/g++.bugs/900211_01.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 // { dg-do assemble } |
2 // g++ 1.36.1 bug 900211_01 | |
3 | |
4 // g++ issues only warnings for calls to previously undeclared functions, | |
5 // however such calls are actually errors. | |
6 | |
7 // Cfront 2.0 passes this test. | |
8 | |
9 // keywords: undeclared, functions | |
10 | |
11 void global_function_0 () | |
12 { | |
13 global_function_1 (); /* { dg-error "3:'global_function_1' was not declared" } */ | |
14 } | |
15 | |
16 int main () { return 0; } |