1 ; RUN: llvm-as < %s | opt -functionattrs | llvm-dis | not grep {@c.*nocapture}
2 ; RUN: llvm-as < %s | opt -functionattrs | llvm-dis | grep nocapture | count 3
3 @g = global i32* null ; <i32**> [#uses=1]
5 define i32* @c1(i32* %p) {
9 define void @c2(i32* %p) {
10 store i32* %p, i32** @g
14 define void @c3(i32* %p) {
15 call void @c2(i32* %p)
19 define i32 @nc1(i32* %p) {
20 %tmp = bitcast i32* %p to i32* ; <i32*> [#uses=2]
21 %val = load i32* %tmp ; <i32> [#uses=1]
22 store i32 0, i32* %tmp
26 define void @nc2(i32* %p) {
27 %1 = call i32 @nc1(i32* %p) ; <i32> [#uses=0]
31 define void @nc3(void ()* %f) {