You've already forked linux-packaging-mono
Imported Upstream version 6.0.0.172
Former-commit-id: f3cc9b82f3e5bd8f0fd3ebc098f789556b44e9cd
This commit is contained in:
parent
8016999e4d
commit
64ac736ec5
33
external/llvm/test/Linker/comdat-rm-dst.ll
vendored
Normal file
33
external/llvm/test/Linker/comdat-rm-dst.ll
vendored
Normal file
@ -0,0 +1,33 @@
|
||||
; RUN: llvm-link -S -o %t %s %p/Inputs/comdat-rm-dst.ll
|
||||
; RUN: FileCheck %s < %t
|
||||
; RUN: FileCheck --check-prefix=RM %s < %t
|
||||
|
||||
target datalayout = "e-m:w-p:32:32-i64:64-f80:32-n8:16:32-S32"
|
||||
target triple = "i686-pc-windows-msvc"
|
||||
|
||||
$foo = comdat largest
|
||||
@foo = global i32 42, comdat
|
||||
; CHECK-DAG: @foo = global i64 43, comdat
|
||||
|
||||
; RM-NOT: @alias =
|
||||
@alias = alias i32, i32* @foo
|
||||
|
||||
; We should arguably reject an out of comdat reference to int_alias. Given that
|
||||
; the verifier accepts it, test that we at least produce an output that passes
|
||||
; the verifier.
|
||||
; CHECK-DAG: @int_alias = external global i32
|
||||
@int_alias = internal alias i32, i32* @foo
|
||||
@bar = global i32* @int_alias
|
||||
|
||||
@func_alias = alias void (), void ()* @func
|
||||
@zed = global void()* @func_alias
|
||||
; CHECK-DAG: @zed = global void ()* @func_alias
|
||||
; CHECK-DAG: declare void @func_alias()
|
||||
|
||||
; RM-NOT: @func()
|
||||
define void @func() comdat($foo) {
|
||||
ret void
|
||||
}
|
||||
|
||||
; RM-NOT: var
|
||||
@var = global i32 42, comdat($foo)
|
Reference in New Issue
Block a user