blob: 49b9000f1272071845f35d4b283c70a25a16acb7 [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001; 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
Dan Gohman8c89a502007-08-15 13:36:28 +00004; RUN: grep piclabel %t | count 3
5; RUN: grep PLT %t | count 1
6; RUN: grep GOT %t | count 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007; RUN: not grep GOTOFF %t
8
9@pfoo = external global void(...)*
10
11define void @bar() {
12entry:
13 %tmp = call void(...)*(...)* @afoo()
14 store void(...)* %tmp, void(...)** @pfoo
15 %tmp1 = load void(...)** @pfoo
16 call void(...)* %tmp1()
17 br label %return
18return:
19 ret void
20}
21
22declare void(...)* @afoo(...)