bolt/deps/llvm-18.1.8/llvm/test/Linker/ConstantGlobals.ll

13 lines
325 B
LLVM
Raw Normal View History

2025-02-14 19:21:04 +01:00
; 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 ptr @use-Y() {
ret ptr @Y
}