Files
llvm-project/lldb/test/Shell/SymbolFile/DWARF/deterministic-build.cpp
Aiden Grossman fffe93af52 [LLDB] Fix deterministic-build.cpp post #156931 (#156983)
This test was brokem by migrating to the lit internal shell due to a
lack of env prefix for setting environment variables. This was fixed in
prevented the breakpoint in the test from mapping to anything, causing
the test to file. This patch restores the original line numbering.
2025-09-04 16:56:17 -07:00

11 lines
477 B
C++

// Test that binaries linked deterministically (N_OSO has timestamp 0) can still
// have their object files loaded by lldb. Note that the env var ZERO_AR_DATE
// requires the ld64 linker, which clang invokes by default.
// REQUIRES: system-darwin
// RUN: %clang_host %s -g -c -o %t.o
// RUN: env ZERO_AR_DATE=1 %clang_host %t.o -g -o %t
// RUN: %lldb %t -o "breakpoint set -f %s -l 10" -o run -o exit | FileCheck %s
// CHECK: stop reason = breakpoint
int main() { return 0; }