diff options
Diffstat (limited to 'test/Transforms/GlobalOpt/pr21191.ll')
-rw-r--r-- | test/Transforms/GlobalOpt/pr21191.ll | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/Transforms/GlobalOpt/pr21191.ll b/test/Transforms/GlobalOpt/pr21191.ll new file mode 100644 index 0000000..39b8eee --- /dev/null +++ b/test/Transforms/GlobalOpt/pr21191.ll @@ -0,0 +1,19 @@ +; RUN: opt < %s -globalopt -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() { + call void @foo() + ret void +} |