[lit] Add argument check: --timeout must be non-negative integer
[llvm-core.git] / test / tools / llvm-lipo / info-invalid.test
blobfd9f604f5e220fbbf68030aa2aed89d694b69dcb
1 # RUN: yaml2obj %s > %t
2 # RUN: not llvm-lipo %t -info 2>&1 | FileCheck %s
3 # CHECK: has unsupported binary format
5 --- !ELF
6 FileHeader:
7   Class:           ELFCLASS64
8   Data:            ELFDATA2LSB
9   Type:            ET_DYN
10   Machine:         EM_X86_64
11   Entry:           0x0000000000001000
12 Sections:
13   - Name:            .gnu.version_d
14     Type:            SHT_GNU_verdef
15     Flags:           [ SHF_ALLOC ]
16     Address:         0x0000000000000230
17     Link:            .dynstr
18     AddressAlign:    0x0000000000000004
19     Info:            0x0000000000000003
20     Entries:
21       - Version:         1
22         Flags:           1
23         VersionNdx:      1
24         Hash:            123456789
25         Names:
26           - foo
27       - Version:         1
28         Flags:           2
29         VersionNdx:      2
30         Hash:            987654321
31         Names:
32           - VERSION_1
33           - VERSION_2
34 DynamicSymbols:
35   - Name:    bar
36     Binding: STB_GLOBAL
37 ...