mirror of
https://github.com/rui314/mold.git
synced 2024-11-15 14:36:25 +03:00
temporary
This commit is contained in:
parent
28b9a4795b
commit
198c4e279d
21
test/exception.sh
Executable file
21
test/exception.sh
Executable 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'
|
Loading…
Reference in New Issue
Block a user