diff options
Diffstat (limited to 'tools/build/feature/test-disassembler-four-args.c')
-rw-r--r-- | tools/build/feature/test-disassembler-four-args.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tools/build/feature/test-disassembler-four-args.c b/tools/build/feature/test-disassembler-four-args.c new file mode 100644 index 0000000000..45ce65cfdd --- /dev/null +++ b/tools/build/feature/test-disassembler-four-args.c @@ -0,0 +1,15 @@ +// SPDX-License-Identifier: GPL-2.0 +#include <bfd.h> +#include <dis-asm.h> + +int main(void) +{ + bfd *abfd = bfd_openr(NULL, NULL); + + disassembler(bfd_get_arch(abfd), + bfd_big_endian(abfd), + bfd_get_mach(abfd), + abfd); + + return 0; +} |