summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/lookup/used-before-declaration.C
blob: b51d270c74abb2abc36bb44c3ef1db0897634cfa (plain)
1
2
3
4
5
// Copyroght (C) 2003 Free Software Foundation
// Origin: PR/12832, Jonathan Wakely <redi@gcc.gnu.org>

void f() { g(); }               // { dg-error "not declared" "" }
void g() { }