view test/Linker/ConstantGlobals.ll @ 100:7d135dc70f03 LLVM 3.9

LLVM 3.9
author Miyagi Mitsuki <e135756@ie.u-ryukyu.ac.jp>
date Tue, 26 Jan 2016 22:53:40 +0900
parents 60c9769439b8
children
line wrap: on
line source

; RUN: llvm-link %s %S/Inputs/ConstantGlobals.ll -S | FileCheck %s
; RUN: llvm-link %S/Inputs/ConstantGlobals.ll %s -S | FileCheck %s

; CHECK-DAG: @X = constant [1 x i32] [i32 8]
@X = external global [1 x i32]

; CHECK-DAG: @Y = external global [1 x i32]
@Y = external global [1 x i32]

define [1 x i32]* @use-Y() {
  ret [1 x i32] *@Y
}