2018-02-09 Sebastian Perta <sebastian.perta@renesas.com>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.bugs / 900211_01.C
blob08a5c0ed1bf847605958b411a686ff36a00da341
1 // { dg-do assemble  }
2 // g++ 1.36.1 bug 900211_01
4 // g++ issues only warnings for calls to previously undeclared functions,
5 // however such calls are actually errors.
7 // Cfront 2.0 passes this test.
9 // keywords: undeclared, functions
11 void global_function_0 ()
13   global_function_1 ();         /* { dg-error "3:'global_function_1' was not declared" } */
16 int main () { return 0; }