summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/ext/dllexport3.C
blob: 206dfc92c94dc88d5089ade8eca894647019b4ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// PR c++/42870
// { dg-do compile { target i?86-*-cygwin *-*-mingw* } }
// { dg-final { scan-assembler "-export:\[\\\\\"\]*_ZN2SaD1Ev" } }

#define ATTRIBUTE __attribute__ ((dllexport))
class ATTRIBUTE Sa {
 public:
  Sa()
    {}
  ~Sa();
};
ATTRIBUTE Sa::~Sa()
{return;}

bool DllMain(void *a,void*b,int)
{
  Sa s;
  return true;
}