diff options
Diffstat (limited to 'ld/testsuite/ld-elf/warn1.d')
-rw-r--r-- | ld/testsuite/ld-elf/warn1.d | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/ld/testsuite/ld-elf/warn1.d b/ld/testsuite/ld-elf/warn1.d new file mode 100644 index 0000000..97da85b --- /dev/null +++ b/ld/testsuite/ld-elf/warn1.d @@ -0,0 +1,13 @@ +#source: start.s +#source: symbol1ref.s +#source: symbol1w.s +#ld: +#warning: ^[^\\n]*\): warning: witty one-liner$ +#readelf: -s + +# Check that warnings are generated for the .gnu.warning.SYMBOL +# construct and that the symbol still appears as expected. + +#... +[ ]+[0-9]+:[ ]+[0-9a-f]+[ ]+[48][ ]+FUNC[ ]+GLOBAL DEFAULT[ ]+[1-9] symbol1 +#pass |