diff options
Diffstat (limited to 'gas/testsuite/gas/coff/func4.s')
-rw-r--r-- | gas/testsuite/gas/coff/func4.s | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/gas/testsuite/gas/coff/func4.s b/gas/testsuite/gas/coff/func4.s new file mode 100644 index 0000000..e9c75f4 --- /dev/null +++ b/gas/testsuite/gas/coff/func4.s @@ -0,0 +1,41 @@ + .file "func4.c" + + .macro fcn, name + .def \name + .scl 3 /* C_STAT */ + .type 32 /* DT_FUNC */ + .endef +\name: + .endm + + .macro efcn, name + .def .\name + .scl 255 /* C_EFCN */ + .val . + .endef + .endm + + .text + fcn inner + .nop + efcn inner + + .data +item1: .long -1 + + .text + fcn outer + .nop + .nop + efcn outer + + .data +item2: .long -2 + + .text + .global test + fcn test + .nop + .nop + .nop + efcn test |