1# RUN: llvm-mc %s -o %t -filetype=obj -triple x86_64-pc-linux
2
3# RUN: not ld.lld %t %p/Inputs/data-encoding.a -o %t2 2>&1 | \
4# RUN:   FileCheck --check-prefix=INVALID-DATA-ENC %s
5# INVALID-DATA-ENC: test.o: invalid data encoding
6
7# RUN: not ld.lld %t %p/Inputs/file-class.a -o %t2 2>&1 | \
8# RUN:   FileCheck --check-prefix=INVALID-FILE-CLASS %s
9# INVALID-FILE-CLASS: test.o: invalid file class
10
11# RUN: not ld.lld %p/Inputs/symtab-sh_info.elf -o %t2 2>&1 | \
12# RUN:   FileCheck --check-prefix=INVALID-SYMTAB-SHINFO %s
13# INVALID-SYMTAB-SHINFO: invalid sh_info in symbol table
14
15# RUN: not ld.lld %p/Inputs/binding.elf -o %t2 2>&1 | \
16# RUN:   FileCheck --check-prefix=INVALID-BINDING %s
17# INVALID-BINDING: unexpected binding
18
19# RUN: not ld.lld %p/Inputs/section-index.elf -o %t2 2>&1 | \
20# RUN:   FileCheck --check-prefix=INVALID-SECTION-INDEX-LLD %s
21# INVALID-SECTION-INDEX-LLD: invalid section index
22
23## section-index2.elf has local symbol with incorrect section index.
24# RUN: not ld.lld %p/Inputs/section-index2.elf -o %t2 2>&1 | \
25# RUN:   FileCheck --check-prefix=INVALID-SECTION-INDEX-LLD %s
26
27# RUN: not ld.lld %p/Inputs/multiple-eh-relocs.elf -o %t2 2>&1 | \
28# RUN:   FileCheck --check-prefix=INVALID-EH-RELOCS %s
29# INVALID-EH-RELOCS: multiple relocation sections to one section are not supported
30
31.long foo
32