summaryrefslogtreecommitdiff
path: root/regress/usr.bin/rtld/testlib/construct.cc
blob: 91602493093513e7bd794358ec005b3211a8ee4b (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
// $NetBSD: construct.cc,v 1.2 2003/09/03 20:53:16 drochner Exp $

// check constructor / destructor calls

#include <iostream>

using namespace std;

class mist {
public:
	mist(void);
	~mist();
};

mist::mist(void)
{
	cout << "constructor" << endl;
}

mist::~mist()
{
	cout << "destructor" << endl;
}

static mist construct;