blob: 1a4366ecdb86b7bd6cc1cc7e669f2a6febde499e [file] [log] [blame]
David Majnemerac077032014-10-08 19:32:32 +00001; RUN: opt < %s -inline -S | FileCheck %s
2
3$c = comdat any
4; CHECK: $c = comdat any
5
6define linkonce_odr void @foo() comdat $c {
7 ret void
8}
9; CHECK: define linkonce_odr void @foo() comdat $c
10
11define linkonce_odr void @bar() comdat $c {
12 ret void
13}
14; CHECK: define linkonce_odr void @bar() comdat $c
15
16define void()* @zed() {
17 ret void()* @foo
18}