summaryrefslogtreecommitdiffstats
path: root/lld/test/ELF/bad-archive.s
blob: 39c8e160f95dca55572aeef89b7a9f12b75cf789 (plain)
1
2
3
4
5
6
7
8
9
10
11
// REQUIRES: x86

// Check bad archive error reporting with --whole-archive
// and without it.
// RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
// RUN: not ld.lld %t.o %p/Inputs/bad-archive.a -o %t 2>&1 | FileCheck %s
// RUN: not ld.lld %t.o --whole-archive %p/Inputs/bad-archive.a -o %t 2>&1 | FileCheck %s
// CHECK: bad-archive.a: failed to parse archive

.globl _start
_start:
OpenPOWER on IntegriCloud