summaryrefslogtreecommitdiffstats
path: root/lld/test/elf/linkerscript/invalid-script-cli-1.test
blob: 904ba17557c0c02a2f7d453613686606e0f36b10 (plain)
1
2
3
4
5
6
7
8
9
10
# Check that the -T/--script options issue an error when passed
# filenames for files that do not exist.

RUN: not lld -flavor gnu -target x86_64 -T idonotexist.ls 2> %t.err
RUN: FileCheck %s < %t.err

RUN: not lld -flavor gnu -target x86_64 --script=idonotexist.ls 2> %t.err
RUN: FileCheck %s < %t.err

CHECK: {{.*}}lld: cannot find file {{.*}}idonotexist.ls
OpenPOWER on IntegriCloud