Mercurial > hg > CbC > CbC_llvm
view test/Linker/alias.ll @ 95:afa8332a0e37 LLVM3.8
LLVM 3.8
author | Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 13 Oct 2015 17:48:58 +0900 |
parents | 54457678186b |
children | 7d135dc70f03 |
line wrap: on
line source
; RUN: llvm-link %s %S/Inputs/alias.ll -S -o - | FileCheck %s ; RUN: llvm-link %S/Inputs/alias.ll %s -S -o - | FileCheck %s @foo = weak global i32 0 ; CHECK-DAG: @foo = alias i32, i32* @zed @bar = alias i32, i32* @foo ; CHECK-DAG: @bar = alias i32, i32* @foo @foo2 = weak global i32 0 ; CHECK-DAG: @foo2 = alias i16, bitcast (i32* @zed to i16*) @bar2 = alias i32, i32* @foo2 ; CHECK-DAG: @bar2 = alias i32, bitcast (i16* @foo2 to i32*) ; CHECK-DAG: @zed = global i32 42