aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/rfg13.C
blob: 77560b338651384e4b0312b69b8971d92a91d2c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
// Bug: g++ does overloading on a function-by-function basis.

void
f ()
{
  void (*fp)(void);
  {
    extern void g ();
  }
  fp = g;	/* ERROR - no 'g' in scope */
}