1
1
mirror of https://github.com/rui314/mold.git synced 2024-11-15 14:36:25 +03:00

temporary

This commit is contained in:
Rui Ueyama 2021-01-20 21:08:37 +09:00
parent 28b9a4795b
commit 198c4e279d

21
test/exception.sh Executable file
View File

@ -0,0 +1,21 @@
#!/bin/bash
set -e
echo -n "Testing $(basename -s .sh $0) ..."
t=$(pwd)/tmp/$(basename -s .sh $0)
mkdir -p $t
cat <<EOF > $t/a.cc
int main() {
try {
throw 0;
} catch (int x) {
return x;
}
return 1;
}
EOF
clang++ -static -fuse-ld=`pwd`/../mold -o $t/exe $t/a.cc
$t/exe
echo ' OK'