diff options
Diffstat (limited to 'test/Linker/pr21494.ll')
-rw-r--r-- | test/Linker/pr21494.ll | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/test/Linker/pr21494.ll b/test/Linker/pr21494.ll new file mode 100644 index 0000000..8a17233 --- /dev/null +++ b/test/Linker/pr21494.ll @@ -0,0 +1,23 @@ +; RUN: llvm-link %s -S -o - | FileCheck %s + +@g1 = private global i8 0 +; CHECK-NOT: @g1 + +@g2 = linkonce_odr global i8 0 +; CHECK-NOT: @g2 + +@a1 = private alias i8* @g1 +; CHECK-NOT: @a1 + +@a2 = linkonce_odr alias i8* @g2 +; CHECK-NOT: @a2 + +define private void @f1() { + ret void +} +; CHECK-NOT: @f1 + +define linkonce_odr void @f2() { + ret void +} +; CHECK-NOT: @f2 |