blob: 0ed38b979a816133458b9ed542ceb00d7379798d [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001; RUN: llvm-as < %s | llc -mtriple=i686-pc-linux-gnu -relocation-model=pic \
2; RUN: -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
7@ptr = external global i32*
8
9define void @foo() {
10entry:
11 %ptr = malloc i32, i32 10
12 ret void
13}
14