brintos

brintos / llvm-project-archived public Read only

0
0
Text · 580 B · 597419f Raw
14 lines · plain
1; LTO default diagnostic handler should be non-exiting.2; This test verifies that after addModule() encounters an error, the diagnostic3; handler does not call exit(1) and instead returns to the caller of addModule.4 5; RUN: llvm-as <%s >%t16; RUN: llvm-as <%s >%t27; RUN: not llvm-lto -use-diagnostic-handler -o /dev/null %t1 %t2 2>&1 | FileCheck %s8 9target 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 file13@goodboy = global i32 3203383023, align 4    ; 0xbeefbeef14