mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-10 02:36:06 +00:00
2820c25e84
opporuntities. Fixes PR8978. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123541 91177308-0d34-0410-b5e6-96231b3b80d8
19 lines
459 B
LLVM
19 lines
459 B
LLVM
; RUN: opt -constmerge %s -S -o - | FileCheck %s
|
|
; PR8978
|
|
|
|
declare i32 @zed(%struct.foobar*, %struct.foobar*)
|
|
|
|
%struct.foobar = type { i32 }
|
|
; CHECK: bar.d
|
|
@bar.d = constant %struct.foobar zeroinitializer, align 4
|
|
; CHECK-NOT: foo.d
|
|
@foo.d = internal constant %struct.foobar zeroinitializer, align 4
|
|
define i32 @main() nounwind ssp {
|
|
entry:
|
|
; CHECK: bar.d
|
|
%call2 = tail call i32 @zed(%struct.foobar* @foo.d, %struct.foobar* @bar.d)
|
|
nounwind
|
|
ret i32 0
|
|
}
|
|
|