For PR1319: Upgrade to new test harness.
[oota-llvm.git] / test / CodeGen / X86 / test-pic-4.ll
1 ; RUN: llvm-as < %s | \
2 ; RUN:   llc -mtriple=i686-pc-linux-gnu -relocation-model=pic -o %t -f 
3 ; RUN: grep _GLOBAL_OFFSET_TABLE_ %t
4 ; RUN: grep piclabel %t | wc -l | grep 3
5 ; RUN: grep PLT %t | wc -l | grep 1
6 ; RUN: grep "GOT" %t | wc -l | grep 1
7 ; RUN: not grep "GOTOFF" %t
8
9 @pfoo = external global void(...)* 
10
11 define void @bar() {
12 entry:
13     %tmp = call void(...)*(...)* @afoo()
14     store void(...)* %tmp, void(...)** @pfoo
15     %tmp1 = load void(...)** @pfoo
16     call void(...)* %tmp1()
17     br label %return
18 return:
19     ret void
20 }
21
22 declare void(...)* @afoo(...)