llvm.org GIT mirror llvm / 0178d23 test / Linker / type-unique-name.ll
0178d23

Tree @0178d23 (Download .tar.gz)

type-unique-name.ll @0178d23raw · history · blame

; 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
}