aboutsummaryrefslogtreecommitdiffstats
path: root/test/Linker/type-unique-name.ll
blob: 191b6ddb2352f8ea3c6bb3748a44a788d2546832 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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
}