aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/template/friend30.C
blob: 055fc8d89ec74b1a8d060893ca57031bdc9d799c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// PR c++/14930

template<typename T> class Point;

template<> class Point<double> {
  friend class Plane;
  double v;
};

struct Plane {
  double get(const Point<double>& p);
};

double Plane::get(const Point<double> &p) { return p.v; }