summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/debug/using2.C
blob: 94f0deae78c9b353869b5861d768e5a705888a1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// PR c++/22489

namespace N { }

struct T
{
  T () { }
};

void
bar ()
{
  struct U : public T
  {
    void baz ()
    {
      using namespace N;
    }
  } u;
  u.baz();
}