1 # Check that llvm-lib doesn't list the members of an archive which contains the
2 # special member /<ECSYMBOLS>/.
4 # RUN: yaml2obj --docnum=1 %s -o %t.lib
5 # RUN: llvm-nm --print-armap %t.lib 2>&1 | FileCheck --check-prefix=NM1 %s
6 # NM1: truncated or malformed archive (invalid EC symbols size (3))
14 - Name: '/<ECSYMBOLS>/'
20 # RUN: yaml2obj --docnum=2 %s -o %t.lib
21 # RUN: llvm-nm --print-armap %t.lib 2>&1 | FileCheck --check-prefix=NM2 %s
22 # NM2: truncated or malformed archive (invalid EC symbols size. Size was 7, but expected 8)
30 Content: 010000001000000000000000
31 - Name: '/<ECSYMBOLS>/'
33 Content: 02000000010001
37 # RUN: yaml2obj --docnum=3 %s -o %t.lib
38 # RUN: llvm-nm --print-armap %t.lib 2>&1 | FileCheck --check-prefix=NM3 %s
39 # NM3: truncated or malformed archive (invalid EC symbol index 2 is larger than member count 1)
47 Content: 010000001000000000000000
48 - Name: '/<ECSYMBOLS>/'
50 Content: 0100000002006100
56 # RUN: yaml2obj --docnum=4 %s -o %t.lib
57 # RUN: llvm-nm --print-armap %t.lib 2>&1 | FileCheck --check-prefix=NM4 %s
58 # NM4: truncated or malformed archive (invalid EC symbol index 0)
66 Content: 010000001000000000000000
67 - Name: '/<ECSYMBOLS>/'
69 Content: 0100000000006100
74 # RUN: yaml2obj --docnum=5 %s -o %t.lib
75 # RUN: llvm-nm --print-armap %t.lib 2>&1 | FileCheck --check-prefix=NM5 %s
76 # NM5: truncated or malformed archive (malformed EC symbol names: not null-terminated)
84 Content: 010000001000000000000000
85 - Name: '/<ECSYMBOLS>/'
87 Content: 0100000001006161