Compiler projects using llvm
## In this test we check the --needed-libs option.

# RUN: llvm-readobj --needed-libs %p/Inputs/needed-libs-32.o \
# RUN:   %p/Inputs/needed-libs-64.o %p/Inputs/needed-libs-empty.o |\
# RUN:   FileCheck %s --strict-whitespace --match-full-lines

## Check 32-bit.

#      CHECK:NeededLibraries [
# CHECK-NEXT:  BASE             MEMBER
# CHECK-NEXT:  libc.a           shr.o
# CHECK-NEXT:  libpthreads.a    shr_xpg5.o
# CHECK-NEXT:  libabcdefghijk.a 
# CHECK-NEXT:]

## Check 64-bit.

#      CHECK:NeededLibraries [
# CHECK-NEXT:  BASE               MEMBER
# CHECK-NEXT:  libc.a             shr_64.o
# CHECK-NEXT:  libpthreads.a      shr_xpg5_64.o
# CHECK-NEXT:  libabcdefghijk64.a 
# CHECK-NEXT:]

## Check no lib.

#      CHECK:NeededLibraries [
# CHECK-NEXT:  BASE          MEMBER
# CHECK-NEXT:]