#!/bin/bash export LANG= set -e CC="${CC:-cc}" CXX="${CXX:-c++}" testname=$(basename "$0" .sh) echo -n "Testing $testname ... " cd "$(dirname "$0")"/../.. mold="$(pwd)/mold" t=out/test/elf/$testname mkdir -p $t cat <<'EOF' > $t/a.ver VER_X1 { *; }; EOF cat < $t/log grep -q 'foo$' $t/log grep -q 'bar@@VER_X1' $t/log echo OK