Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lldb / test / Shell / SymbolFile / DWARF / deterministic-build.cpp
blob9e79f23db2b74316e0c0519b0848340559ce807a
1 // Test that binaries linked deterministically (N_OSO has timestamp 0) can still
2 // have their object files loaded by lldb. Note that the env var ZERO_AR_DATE
3 // requires the ld64 linker, which clang invokes by default.
4 // REQUIRES: system-darwin
5 // RUN: %clang_host %s -g -c -o %t.o
6 // RUN: ZERO_AR_DATE=1 %clang_host %t.o -g -o %t
7 // RUN: %lldb %t -o "breakpoint set -f %s -l 11" -o run -o exit | FileCheck %s
8 // CHECK: stop reason = breakpoint
11 int main() { return 0; }