2014-10-07 15:07:19 +08:00
|
|
|
; RUN: opt < %s -globaldce -S | FileCheck %s
|
|
|
|
|
|
|
|
$c1 = comdat any
|
|
|
|
; CHECK: $c1 = comdat any
|
|
|
|
|
2015-09-11 11:22:04 +08:00
|
|
|
@a1 = linkonce_odr alias void (), void ()* @f1
|
|
|
|
; CHECK: @a1 = linkonce_odr alias void (), void ()* @f1
|
2014-10-07 15:07:19 +08:00
|
|
|
|
2015-01-07 06:55:16 +08:00
|
|
|
define linkonce_odr void @f1() comdat($c1) {
|
2014-10-07 15:07:19 +08:00
|
|
|
ret void
|
|
|
|
}
|
2015-01-07 06:55:16 +08:00
|
|
|
; CHECK: define linkonce_odr void @f1() comdat($c1)
|
2014-10-07 15:07:19 +08:00
|
|
|
|
|
|
|
define void @g() {
|
|
|
|
call void @f1()
|
|
|
|
ret void
|
|
|
|
}
|