#!/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)/ld64.mold" t=out/test/macho/$testname mkdir -p $t cat < $t/log || false grep -q 'duplicate symbol: .*/b.o: .*/a.o: _hello' $t/log echo OK