2009-07-17 Richard Guenther <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / g++.dg / ext / dll-MI1.h
blob2f8b83669391b473750bd970725dae315c1bfd6d
1 // Class definitions for dllexport-MI1.C and dllimport-MI1.C
3 #ifdef BUILDING_MI_DLL
4 #define DLL_IMPEXP __attribute__ ((dllexport))
5 #else
6 #define DLL_IMPEXP __attribute__ ((dllimport))
7 #endif
10 #define D1_return 1
11 #define D2_return 2
13 class DLL_IMPEXP MBase
15 public:
16 virtual int vf() const = 0;
17 virtual ~MBase();
20 class DLL_IMPEXP D1 : virtual public MBase
22 public:
23 int vf() const;
26 class DLL_IMPEXP D2 : virtual public MBase
28 public:
29 D2 ();
30 D2 (D2 const&);
31 int vf() const;
34 class DLL_IMPEXP MI1 : public D1, public D2
36 public:
37 int vf() const;