aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/X86/2007-08-13-AppendingLinkage.ll
blob: f6ed0fe7a5ffe20f5704fc5c710621b74ca23abe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
; RUN: llvm-as < %s | llc -march=x86 | not grep drectve
; PR1607

%hlvm_programs_element = type { i8*, i32 (i32, i8**)* }
@hlvm_programs = appending constant [1 x %hlvm_programs_element]
zeroinitializer

define %hlvm_programs_element* @hlvm_get_programs() {
entry:
  ret %hlvm_programs_element* getelementptr([1 x %hlvm_programs_element]*  
                                            @hlvm_programs, i32 0, i32 0)
}