summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/FunctionAttrs/nonnull-global.ll
blob: 43353e822703a341343818815a4f7ae73d31a6a2 (plain)
1
2
3
4
5
6
7
8
9
10
; RUN: opt -S -functionattrs %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}
OpenPOWER on IntegriCloud