llvm.org GIT mirror llvm / release_20 test / Linker / 2003-08-28-TypeResolvesGlobal3.ll
release_20

Tree @release_20 (Download .tar.gz)

2003-08-28-TypeResolvesGlobal3.ll @release_20raw · history · blame

; RUN: llvm-upgrade < %s | llvm-as > %t.out1.bc
; RUN: echo "%S = type int" | llvm-upgrade | llvm-as > %t.out2.bc
; RUN: llvm-link %t.out2.bc %t.out1.bc

%S = type opaque

; GLobal using the resolved function prototype
global void(%S*)* %foo

void %foo(int* %V) {
  ret void
}

declare void %foo(%S*)