Restore "Move metadata linking after lazy global materialization/linking."
[oota-llvm.git] / test / Linker / type-unique-name.ll
1 ; RUN: llvm-link -S %s %p/Inputs/type-unique-name.ll | FileCheck %s
2
3 ; Test that we keep the type name
4 ; CHECK: %abc = type { i8 }
5
6 %abc = type opaque
7
8 declare %abc* @f()
9
10 define %abc* @g() {
11   %x = call %abc* @f()
12   ret %abc* %x
13 }