diff options
Diffstat (limited to 'test/Transforms/Inline/pr21206.ll')
-rw-r--r-- | test/Transforms/Inline/pr21206.ll | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/Transforms/Inline/pr21206.ll b/test/Transforms/Inline/pr21206.ll new file mode 100644 index 0000000..1a4366e --- /dev/null +++ b/test/Transforms/Inline/pr21206.ll @@ -0,0 +1,18 @@ +; RUN: opt < %s -inline -S | FileCheck %s + +$c = comdat any +; CHECK: $c = comdat any + +define linkonce_odr void @foo() comdat $c { + ret void +} +; CHECK: define linkonce_odr void @foo() comdat $c + +define linkonce_odr void @bar() comdat $c { + ret void +} +; CHECK: define linkonce_odr void @bar() comdat $c + +define void()* @zed() { + ret void()* @foo +} |