2016-03-24 22:58:44 +08:00
|
|
|
$foo = comdat any
|
2016-03-24 23:23:01 +08:00
|
|
|
$bar = comdat any
|
|
|
|
|
2016-03-24 22:58:44 +08:00
|
|
|
define linkonce_odr i32 @f1() comdat($foo) {
|
|
|
|
ret i32 1
|
|
|
|
}
|
2016-03-24 23:23:01 +08:00
|
|
|
|
2016-03-24 22:58:44 +08:00
|
|
|
define void @f2() comdat($foo) {
|
2016-03-24 23:23:01 +08:00
|
|
|
call i32 @g2()
|
2016-03-24 22:58:44 +08:00
|
|
|
ret void
|
|
|
|
}
|
2016-03-24 23:23:01 +08:00
|
|
|
|
|
|
|
define linkonce_odr i32 @g1() comdat($bar) {
|
|
|
|
ret i32 1
|
|
|
|
}
|
|
|
|
|
|
|
|
define linkonce_odr i32 @g2() comdat($bar) {
|
|
|
|
ret i32 1
|
|
|
|
}
|