llvm.org GIT mirror llvm / dc77158 test / Transforms / FunctionAttrs / nonnull-global.ll
dc77158

Tree @dc77158 (Download .tar.gz)

nonnull-global.ll @dc77158raw · history · blame

; RUN: opt -S -functionattrs %s | FileCheck %s
; RUN: opt -S -passes=function-attrs %s | FileCheck %s

@a = external global i8, !absolute_symbol !0

; CHECK-NOT: define nonnull
define i8* @foo() {
  ret i8* @a
}

!0 = !{i64 0, i64 256}