Ok, the last bug fix was not good enough to fix libstdc++. Maybe this one will be
[oota-llvm.git] / test / Linker / 2003-08-28-TypeResolvesGlobal2.ll
1 ; RUN: as < %s > Output/%s.out1.bc
2 ; RUN: echo "%S = type int" | as > Output/%s.out2.bc
3 ; RUN: link Output/%s.out[21].bc
4
5 %S = type opaque
6
7 void %foo(int* %V) {
8   ret void
9 }
10
11 declare void %foo(%S*)
12
13 void %other() {
14         call void %foo(%S* null)    ; Add a use of the unresolved proto
15         call void %foo(int* null)   ; Add a use of the resolved function
16         ret void
17 }