1 #name: --gc-sections with --defsym
2 #source: dummy.s
3 #ld: --gc-sections -e main --defsym foo=foo2 tmpdir/pr13683.o
4 #nm: --format=bsd
5 #xfail: sh64*-*-* iq2000-*-* lm32-*-* epiphany-*-* mips64vr-*-* frv-*-* m32c-*-* rl78-*-* rx-*-* sh-*-* powerpc*-*-eabivle msp430-*-*
6 
7 # Note - look for both "foo" and "foo2" being defined, non-zero function symbols
8 
9 #...
10 0*[1-9a-f]+[0-9a-f]*[ 	](T|D)[ 	]_*foo
11 0*[1-9a-f]+[0-9a-f]*[ 	](T|D)[ 	]_*foo2
12 #...
13