1 ; LTO default diagnostic handler should be non-exiting. 2 ; This test verifies that after addModule() encounters an error, the diagnostic 3 ; handler does not call exit(1) and instead returns to the caller of addModule. 4 5 ; RUN: llvm-as <%s >%t1 6 ; RUN: llvm-as <%s >%t2 7 ; RUN: not llvm-lto -use-diagnostic-handler -o /dev/null %t1 %t2 2>&1 | FileCheck %s 8 9 target triple = "x86_64-unknown-linux-gnu" 10 11 ; CHECK: llvm-lto: error: Linking globals named 'goodboy': symbol multiply defined! 12 ; CHECK: llvm-lto{{.*}}: error adding file 13 @goodboy = global i32 3203383023, align 4 ; 0xbeefbeef 14