Add a testcase for warning on common symbol in archive.
[binutils.git] / ld / testsuite / ld-elf / warn3.d
blobc99618d028136cfa44ffd68d806b9a242e067bfa
1 #source: start.s
2 #ld: tmpdir/symbol3w.o tmpdir/symbol3.a
3 #warning: .*: warning: badsym warning$
4 #readelf: -s
5 #notarget: "sparc64-*-solaris2*" "sparcv9-*-solaris2*"
6 #xfail: arc-*-* d30v-*-* dlx-*-* fr30-*-* frv-*-elf i860-*-* i960-*-*
7 #xfail: iq*-*-* mn10200-*-* moxie-*-* msp*-*-* mt-*-* or32-*-* pj*-*-*
8 # if not using elf32.em, you don't get fancy section handling
10 # Check that warnings are generated for the symbols in .gnu.warning
11 # construct and that the symbol still appears as expected.
13 #...
14 +[0-9]+: +[0-9a-f]+ +4 +OBJECT +GLOBAL +DEFAULT +[1-9] badsym
15 #pass