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