Add test of macro expansion of string arguments.
This commit is contained in:
parent
2104a50e3e
commit
aa787a8959
5 changed files with 35 additions and 1 deletions
|
@ -1,3 +1,10 @@
|
|||
2000-06-09 Nick Clifton <nickc@cygnus.com>
|
||||
|
||||
* gas/macros/macros.exp: Run new test: strings.
|
||||
* gas/macros/strings.s: New test: String expansion inside
|
||||
macros.
|
||||
* gas/macros/strings.d: New test results.
|
||||
|
||||
2000-06-04 Alan Modra <alan@linuxcare.com.au>
|
||||
|
||||
* gas/i386/prefix.s: Modify so we have at least one x86 test that
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#
|
||||
# Some ARM tests
|
||||
#
|
||||
if [istarget arm-*-*] then {
|
||||
if [istarget *arm*-*-*] then {
|
||||
run_dump_test "inst"
|
||||
|
||||
gas_test "arm3.s" "" $stdoptlist "Arm 3 instructions"
|
||||
|
|
|
@ -20,3 +20,5 @@ case $target_triplet in {
|
|||
run_dump_test semi
|
||||
}
|
||||
}
|
||||
|
||||
run_dump_test strings
|
||||
|
|
8
gas/testsuite/gas/macros/strings.d
Normal file
8
gas/testsuite/gas/macros/strings.d
Normal file
|
@ -0,0 +1,8 @@
|
|||
#objdump: -s -j .data
|
||||
#name: strings
|
||||
|
||||
.*: .*
|
||||
|
||||
Contents of section .data:
|
||||
0000 5c22666f 6f5c2200 62617200 62617a \\\"foo\\\".bar.baz
|
||||
|
17
gas/testsuite/gas/macros/strings.s
Normal file
17
gas/testsuite/gas/macros/strings.s
Normal file
|
@ -0,0 +1,17 @@
|
|||
.macro M arg1
|
||||
.ascii "\arg1"
|
||||
.endm
|
||||
|
||||
.data
|
||||
foo:
|
||||
M "\\\"foo\\\""
|
||||
|
||||
.balign 2
|
||||
|
||||
M "bar"
|
||||
|
||||
.balign 2
|
||||
|
||||
M baz
|
||||
|
||||
|
Loading…
Reference in a new issue