2019-09-10 08:06:52 +08:00
|
|
|
; Ensure t.a.err is non-empty.
|
|
|
|
; RUN: echo foo > %t.a.err
|
|
|
|
; RUN: llvm-link %s %S/Inputs/datalayout-a.ll -S -o - 2>>%t.a.err
|
|
|
|
; RUN: FileCheck --check-prefix=WARN-A %s < %t.a.err
|
2014-02-27 01:02:08 +08:00
|
|
|
|
2015-03-05 02:43:29 +08:00
|
|
|
; RUN: llvm-link %s %S/Inputs/datalayout-b.ll -S -o - 2>%t.b.err
|
2014-02-27 01:02:08 +08:00
|
|
|
; RUN: cat %t.b.err | FileCheck --check-prefix=WARN-B %s
|
|
|
|
|
|
|
|
target datalayout = "e"
|
|
|
|
|
|
|
|
|
2018-04-18 22:41:47 +08:00
|
|
|
; WARN-A-NOT: warning
|
2014-02-27 11:10:10 +08:00
|
|
|
|
2018-04-18 22:41:47 +08:00
|
|
|
; WARN-B: warning: Linking two modules of different data layouts:
|