summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.ns/type1.C
blob: a7d4c8152e0791593eaa2dfa10012e2b3e53fcf5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// { dg-do assemble  }
// Test that using an elaborated-type-specifier in a namespace to refer
// to a class outside the namespace does not cause its name to be considered
// declared in the namespace.

// Contributed by Jason Merrill <jason@cygnus.com>

struct A { };

int A;

namespace N {
  struct A *f ();
}

using namespace N;

struct A *a;