; RUN: opt -module-summary %s -o %t1.bc
; RUN: opt -module-summary -o %t2.bc %S/Inputs/not-prevailing.ll
; RUN: not --crash llvm-lto2 run -o %t3.bc %t1.bc %t2.bc -r %t1.bc,bar,px \
; RUN:     -r %t1.bc,foo,x -r %t2.bc,foo,x -save-temps 2>&1 | FileCheck %s

; CHECK: Assertion {{.*}} "Symbol with interposable and available_externally linkages"' failed

target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

define available_externally i32 @foo() {
  ret i32 1
}

define i32 @bar() {
  %1 = call i32 @foo()
  ret i32 %1
}

; RUN: opt -module-summary %s -o %t1.bc
; RUN: opt -module-summary -o %t2.bc %S/Inputs/not-prevailing.ll
; RUN: not --crash llvm-lto2 run -o %t3.bc %t1.bc %t2.bc -r %t1.bc,bar,px \
; RUN:     -r %t1.bc,foo,x -r %t2.bc,foo,x -save-temps 2>&1 | FileCheck %s

; CHECK: "Symbol with interposable and available_externally linkages"

target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

define available_externally i32 @foo() {
  ret i32 1
}

define i32 @bar() {
  %1 = call i32 @foo()
  ret i32 %1
}

Fix test failure introduced in r327041
Fix test failure introduced in r327041

The "Assertion: `...' failed" error message format is not identical
across platforms.

git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@327047 91177308-0d34-0410-b5e6-96231b3b80d8
