Files
llvm-project/bolt/test/dwarf5-missing-dwo.c
Gergely Bálint b6d188a7e2 [BOLT] Add missing system-linux requirements to tests (#172968)
Several lit tests are failing on macOS, as they are linux-specific,
but not using the "REQUIRES: system-linux" setting.

This patch adds the missing requirements to tests failing on macOS.
2025-12-19 11:16:18 +01:00

21 lines
653 B
C

// Check that llvm-bolt correctly reports a missing DWO file while updating
// debug info.
//
// REQUIRES: system-linux
//
// RUN: %clang %cflags -g -dwarf5 -gsplit-dwarf=single -c %s -o %t.o
// RUN: %clang %cflags %t.o -o %t.exe -Wl,-q
// RUN: rm %t.o
// RUN: not llvm-bolt %t.exe -o %t.bolt --update-debug-sections \
// RUN: 2>&1 | FileCheck %s -DDWO=%t.o
//
// Check that llvm-bolt succeeds on the same binary with disabled debug info
// update.
//
// RUN: llvm-bolt %t.exe -o %t.bolt --update-debug-sections=0
// CHECK: BOLT-ERROR: unable to load [[DWO]]
// CHECK-NEXT: BOLT-ERROR: 1 required DWO file(s) not found
int main() { return 0; }