1 ; RUN: opt < %s -functionattrs -S | FileCheck %s
3 ; CHECK: define i32* @a(i32** nocapture readonly %p)
4 define i32* @a(i32** %p) {
5 %tmp = load i32*, i32** %p
9 ; CHECK: define i32* @b(i32* %q)
10 define i32* @b(i32 *%q) {
12 store i32* %q, i32** %mem
13 %tmp = call i32* @a(i32** %mem)
17 ; CHECK: define i32* @c(i32* readnone %r)
19 define i32* @c(i32 *%r) {
20 %a = icmp eq i32* %r, null