Mercurial > hg > CbC > CbC_llvm
view test/Linker/ctors4.ll @ 108:1881386f7909
use llvm.setjmp and llvm.longjmp
author | Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 01 Feb 2016 02:57:01 +0900 (2016-01-31) |
parents | 7d135dc70f03 |
children |
line wrap: on
line source
; RUN: llvm-link -S %s -o - | FileCheck %s define void @f() { ret void } ; We lazy link @v, which causes llvm.global_ctors to have the corresponding ; entry. @v = linkonce global i8 42 @llvm.global_ctors = appending global [1 x { i32, void ()*, i8* }] [{ i32, void ()*, i8* } { i32 65535, void ()* @f, i8* @v }] ; CHECK: @llvm.global_ctors = appending global [1 x { i32, void ()*, i8* }] [{ i32, void ()*, i8* } { i32 65535, void ()* @f, i8* @v }]