llvm-6502/test/Transforms/GlobalOpt/metadata.ll
Chris Lattner c1c4595d1f fix this to work with objdir != srcdir
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@102547 91177308-0d34-0410-b5e6-96231b3b80d8
2010-04-28 22:34:35 +00:00

20 lines
366 B
LLVM

; RUN: opt -S -globalopt < %s | FileCheck %s
; PR6112 - When globalopt does RAUW(@G, %G), the metadata reference should drop
; to null.
@G = internal global i8** null
define i32 @main(i32 %argc, i8** %argv) {
; CHECK: @main
; CHECK: %G = alloca
store i8** %argv, i8*** @G
ret i32 0
}
!named = !{!0}
; CHECK: !0 = metadata !{null}
!0 = metadata !{i8*** @G}