summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/parse/parse4.C
blob: 9df1754ab4705d9988c05198584a3cc874f7ecac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/* PR c++/88 */
/* { dg-do compile } */

class Hvec
{
public:
  Hvec(double x, double y, double z);
  ~Hvec();
};


class Camera1
{
public:
  Camera1(const Hvec &basepos=Hvec(0.0,0.0,0.0));
  ~Camera1();
};

class Camera2
{
public:
  Camera2(const Hvec &basepos);
  inline Camera2() { Camera2(Hvec(0.0,0.0,0.0)); }
  ~Camera2();
};