aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/t07.C
blob: 3cdb3dafdb293d208ffbf5d82ae9ad40018c9682 (plain)
1
2
3
4
5
6
7
8
9
10
// Build don't link: 

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

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