summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/t07.C
blob: d144cad7747e9db8efe89ec98de353437b35f572 (plain)
1
2
3
4
5
6
7
8
9
10
// { dg-do assemble  }

template <class A> class B {
  A a;
 public:
  const A& value () { return a; }
};
static B<int> b_int;

int foo () { return b_int.value(); }