mirror of
https://github.com/rui314/mold.git
synced 2025-01-07 18:02:15 +03:00
14 lines
356 B
Bash
Executable File
14 lines
356 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
echo -n "Testing $(basename -s .sh $0) ... "
|
|
t=$(pwd)/tmp/$(basename -s .sh $0)
|
|
mkdir -p $t
|
|
|
|
echo 'int main() { return 0; }' > $t/a.c
|
|
echo 'int main() { return 0; }' > $t/b.c
|
|
|
|
! clang -fuse-ld=`pwd`/../mold -o $t/exe $t/a.c $t/b.c 2> /dev/null
|
|
clang -fuse-ld=`pwd`/../mold -o $t/exe $t/a.c $t/b.c -Wl,-allow-multiple-definition
|
|
|
|
echo OK
|