aboutsummaryrefslogtreecommitdiffstats
path: root/test/Linker/2003-08-28-TypeResolvesGlobal3.ll
blob: aa199cb0387f17bcdf7e2f8623f931ae6b704e9c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
; RUN: as < %s > Output/%s.out1.bc
; RUN: echo "%S = type int" | as > Output/%s.out2.bc
; RUN: link Output/%s.out[21].bc

%S = type opaque

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

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

declare void %foo(%S*)