aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/debug/typedef3.C
blob: 366c69a6838033c5cf961a4ff80e09b23b5aa5dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// PR debug/16261
// { dg-do compile }

namespace N
{
  struct A {};
  typedef A B;
}

void foo()
{
  struct C
  {
    C(N::B) {}
  };

  N::B b;
  C c(b);
}