Mercurial > hg > Members > tobaru > cbc > CbC_llvm
view test/Assembler/global-addrspace-forwardref.ll @ 107:a03ddd01be7e
resolve warnings
author | Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 31 Jan 2016 17:34:49 +0900 |
parents | afa8332a0e37 |
children |
line wrap: on
line source
; RUN: llvm-as < %s | llvm-dis | FileCheck %s ; RUN: verify-uselistorder %s ; Make sure the address space of forward decls is preserved ; CHECK: @a2 = global i8 addrspace(1)* @a ; CHECK: @a = addrspace(1) global i8 0 @a2 = global i8 addrspace(1)* @a @a = addrspace(1) global i8 0 ; Now test with global IDs instead of global names. ; CHECK: @a3 = global i8 addrspace(1)* @0 ; CHECK: @0 = addrspace(1) global i8 0 @a3 = global i8 addrspace(1)* @0 @0 = addrspace(1) global i8 0