aboutsummaryrefslogtreecommitdiff
path: root/lldb/test/Shell/SymbolFile/DWARF/deterministic-build.cpp
blob: 0c86107fc9632f05acc31a9101903da336a2f33f (plain)
1
2
3
4
5
6
7
8
9
10
// 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; }