1 ; RUN: opt -S -globalopt metadata.ll | FileCheck %s
3 ; PR6112 - When globalopt does RAUW(@G, %G), the metadata reference should drop
5 @G = internal global i8** null
7 define i32 @main(i32 %argc, i8** %argv) {
10 store i8** %argv, i8*** @G
16 ; CHECK: !0 = metadata !{null}
17 !0 = metadata !{i8*** @G}