diff options
Diffstat (limited to 'test/Linker/type-unique-name.ll')
-rw-r--r-- | test/Linker/type-unique-name.ll | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/Linker/type-unique-name.ll b/test/Linker/type-unique-name.ll new file mode 100644 index 0000000..191b6dd --- /dev/null +++ b/test/Linker/type-unique-name.ll @@ -0,0 +1,13 @@ +; RUN: llvm-link -S %s %p/Inputs/type-unique-name.ll | FileCheck %s + +; Test that we keep the type name +; CHECK: %abc = type { i8 } + +%abc = type opaque + +declare %abc* @f() + +define %abc* @g() { + %x = call %abc* @f() + ret %abc* %x +} |