aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/Transforms/FunctionAttrs/nonnull-global.ll
blob: 9b64bacbf5670d3a909e7f019366039d13c7ff0d (plain)
1
2
3
4
5
6
7
8
9
10
; 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}