150
|
1 ## Different "echo" commands on Windows interpret quoted strings and
|
|
2 ## wildcards in similar but different way (On Windows, ARGV tokenization
|
|
3 ## and wildcard expansion are not done by the shell but by each command.)
|
|
4 ## Because of that reason, this test fails on some Windows environment.
|
|
5 ## We can't write quoted strings that are interpreted the same way
|
|
6 ## by all echo commands. So, we don't want to run this on Windows.
|
|
7
|
|
8 # REQUIRES: shell
|
|
9
|
|
10 # RUN: mkdir -p %t.dir
|
|
11
|
|
12 # RUN: echo foobar > %t1
|
|
13 # RUN: not ld.lld --dynamic-list %t1 2>&1 | FileCheck -check-prefix=ERR1 %s
|
|
14 # ERR1: {{.*}}:1: { expected, but got foobar
|
|
15
|
|
16 # RUN: echo "{ foobar;" > %t1
|
|
17 # RUN: not ld.lld --dynamic-list %t1 2>&1 | FileCheck -check-prefix=ERR2 %s
|
|
18 # ERR2: {{.*}}:1: unexpected EOF
|
|
19
|
|
20 ## Missing ';' before '}'
|
|
21 # RUN: echo "{ foobar }" > %t1
|
|
22 # RUN: not ld.lld --dynamic-list %t1 2>&1 | FileCheck -check-prefix=ERR3 %s
|
|
23 # ERR3: {{.*}}:1: ; expected, but got }
|
|
24
|
|
25 ## Missing final ';'
|
|
26 # RUN: echo "{ foobar; }" > %t1
|
|
27 # RUN: not ld.lld --dynamic-list %t1 2>&1 | FileCheck -check-prefix=ERR4 %s
|
|
28 # ERR4: {{.*}}:1: unexpected EOF
|
|
29
|
|
30 ## Missing \" in foobar definition
|
|
31 # RUN echo "{ \"foobar; };" > %t1
|
|
32 # RUN: not ld.lld --dynamic-list %t1 2>&1 | FileCheck -check-prefix=ERR5 %s
|
|
33 # ERR5: {{.*}}:1: unexpected EOF
|
|
34
|
|
35 # RUN: echo "{ extern \"BOGUS\" { test }; };" > %t1
|
|
36 # RUN: not ld.lld --dynamic-list %t1 2>&1 | FileCheck -check-prefix=ERR6 %s
|
|
37 # ERR6: {{.*}}:1: Unknown language
|