summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.ns/ns12.C
blob: c5468914f110807ca8a93e2e0148028fb9364f5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// { dg-do run  }
namespace fred
{
  int barney();
  extern int wilma;
}

int fred::barney()
{
  return fred::wilma;
}

int fred::wilma;

int barney()
{
  return 1;
}

int main()
{
  return fred::barney();
}