summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.ns/koenig6.C
blob: b5fa9c989963ba6adb3e3f90799354f7f4959815 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// { dg-do assemble  }
namespace A{
  struct X{};

  X* foo(X a);
  void bar(X*){}
}

int main()
{
  A::X x;
  bar(foo(x));
}