aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-pe/pr19803.d
blob: 1fc6daf17f6fabe48de65e8e906cfcb8f51dc8b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ld: -shared --out-implib dx.dll.a --gc-sections
#objdump: --syms
#notarget: mcore-* arm-epoc-pe
#
# Check that the target specific entry symbol _DllMainCRTStartup is still
# a defined (sec > 0), public (scl == 2) symbol, even after garbage
# collection.
#
# Check that the symbol _testval is undefined (sec == 0) and hidden
# (scl == 106) in the output.  It should have been changed to this state when
# garbage collection was performed.

#...
.*\(sec  0\)\(fl 0x00\)\(ty   0\)\(scl 106\) \(nx 0\) 0x0+000 _testval
#...
.*\(sec  1\)\(fl 0x00\)\(ty   0\)\(scl   2\) \(nx 0\) 0x0+000 .*Startup.*
#pass