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
9 @pfoo = external global void(...)*
13 %tmp = call void(...)*(...)* @afoo()
14 store void(...)* %tmp, void(...)** @pfoo
15 %tmp1 = load void(...)** @pfoo
16 call void(...)* %tmp1()
22 declare void(...)* @afoo(...)