2 # RUN: rm -rf %t; split-file %s %t
3 # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %t/2.s -o %t/2.o
4 # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %t/3.s -o %t/3.o
5 # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %t/4.s -o %t/4.o
6 # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %s -o %t/main.o
8 # RUN: llvm-ar rcS %t/test.a %t/2.o %t/3.o %t/4.o
10 # RUN: not %lld %t/test.o %t/test.a -o /dev/null 2>&1 | FileCheck %s
11 # CHECK: error: {{.*}}.a: archive has no index; run ranlib to add one
24 .globl _undefined, _unused