summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/ext/dll-MI1.h
blob: 2f8b83669391b473750bd970725dae315c1bfd6d (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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// Class definitions for dllexport-MI1.C and dllimport-MI1.C

#ifdef BUILDING_MI_DLL
#define  DLL_IMPEXP __attribute__ ((dllexport))
#else
#define  DLL_IMPEXP __attribute__ ((dllimport))
#endif


#define D1_return 1
#define D2_return 2

class DLL_IMPEXP MBase
{
public:
  virtual int vf() const = 0;
  virtual ~MBase();
};

class DLL_IMPEXP D1 : virtual public MBase
{
public:
  int vf() const;
};

class DLL_IMPEXP D2 : virtual public MBase
{
public:
  D2 ();
  D2 (D2 const&);
  int vf() const;
};

class DLL_IMPEXP MI1 : public D1, public D2
{
public:
  int vf() const;
};