1
1
mirror of https://github.com/rui314/mold.git synced 2024-10-04 00:31:41 +03:00
mold/test/invalid-version-script.sh
2024-08-14 16:23:25 +09:00

11 lines
253 B
Bash
Executable File

#!/bin/bash
. $(dirname $0)/common.inc
echo 'int main() {}' | $CC -c -o $t/a.o -xc -
echo 'VER1 { foo[12; };' > $t/b.ver
! $CC -B. -shared -o $t/c.so -Wl,-version-script,$t/b.ver \
$t/a.o >& $t/log || false
grep -q 'invalid version pattern' $t/log