bolt/deps/llvm-18.1.8/llvm/test/Transforms/FunctionAttrs/nonnull-global.ll

11 lines
189 B
LLVM
Raw Normal View History

2025-02-14 19:21:04 +01:00
; RUN: opt -S -passes=function-attrs %s | FileCheck %s
@a = external global i8, !absolute_symbol !0
; CHECK-NOT: define nonnull
define ptr @foo() {
ret ptr @a
}
!0 = !{i64 0, i64 256}