repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
PR tree-optimization/86415 - strlen() not folded for substrings within constant arrays
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
ext
/
dllexport3.C
blob
206dfc92c94dc88d5089ade8eca894647019b4ce
1
// PR c++/42870
2
// { dg-do compile { target i?86-*-cygwin *-*-mingw* } }
3
// { dg-final { scan-assembler "-export:\[\\\\\"\]*_ZN2SaD1Ev" } }
4
5
#define ATTRIBUTE __attribute__ ((dllexport))
6
class ATTRIBUTE Sa {
7
public:
8
Sa()
9
{}
10
~Sa();
11
};
12
ATTRIBUTE Sa::~Sa()
13
{return;}
14
15
bool DllMain(void *a,void*b,int)
16
{
17
Sa s;
18
return true;
19
}