1 ; RUN: opt < %s -functionattrs -S | FileCheck %s
2 ; RUN: opt < %s -passes=function-attrs -S | FileCheck %s
4 ; CHECK: Function Attrs
6 ; CHECK-NEXT: define i32 @a
8 %tmp = call i32 @b( ) ; <i32> [#uses=1]
12 ; CHECK: Function Attrs
13 ; CHECK-SAME: readnone
14 ; CHECK-NEXT: define i32 @b
16 %tmp = call i32 @a( ) ; <i32> [#uses=1]