mirror of
https://github.com/dlang/dmd.git
synced 2025-04-27 05:30:13 +03:00
17 lines
480 B
Bash
17 lines
480 B
Bash
#!/usr/bin/env bash
|
|
|
|
source tools/common_funcs.sh
|
|
|
|
expect_file=${EXTRA_FILES}/${TEST_NAME}.out
|
|
obj_file=${OUTPUT_BASE}_0.o
|
|
|
|
echo Creating objdump
|
|
objdump --disassemble --disassembler-options=intel "${obj_file}" > "${obj_file}.dump"
|
|
|
|
echo SANITIZING Objdump...
|
|
< "${obj_file}.dump" \
|
|
tail -n+3 | sed 's/[ \t]\s*$//' > "${obj_file}.dump.sanitized"
|
|
|
|
diff -up --strip-trailing-cr "${expect_file}" "${obj_file}.dump.sanitized"
|
|
|
|
rm_retry "${OUTPUT_BASE}.o"{,.dump,.dump,.sanitized}
|