diff options
Diffstat (limited to 'llvm/test/Linker/Inputs/metadata-attach.ll')
| -rw-r--r-- | llvm/test/Linker/Inputs/metadata-attach.ll | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/llvm/test/Linker/Inputs/metadata-attach.ll b/llvm/test/Linker/Inputs/metadata-attach.ll new file mode 100644 index 00000000000..e1752297d25 --- /dev/null +++ b/llvm/test/Linker/Inputs/metadata-attach.ll @@ -0,0 +1,19 @@ +@g1 = external global i32, !attach !0 + +@g2 = global i32 1, !attach !0 + +@g3 = global i32 2, !attach !0 + +declare !attach !0 void @f1() + +define void @f2() !attach !0 { + call void @f1() + store i32 0, i32* @g1 + ret void +} + +define void @f3() !attach !0 { + ret void +} + +!0 = !{i32 1} |

