You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
355 B

; RUN: opt < %s -globaldce -S | FileCheck %s
$c1 = comdat any
; CHECK: $c1 = comdat any
@a1 = linkonce_odr alias void (), void ()* @f1
; CHECK: @a1 = linkonce_odr alias void (), void ()* @f1
define linkonce_odr void @f1() comdat($c1) {
ret void
}
; CHECK: define linkonce_odr void @f1() comdat($c1)
define void @g() {
call void @f1()
ret void
}