1; RUN: opt < %s -basic-aa -function-attrs -S | FileCheck %s 2; RUN: opt < %s -aa-pipeline=basic-aa -passes=function-attrs -S | FileCheck %s 3 4; CHECK: define i32 @f() #0 5define i32 @f() { 6entry: 7 %tmp = call i32 @e( ) 8 ret i32 %tmp 9} 10 11; CHECK: declare i32 @e() #0 12declare i32 @e() readonly 13 14; CHECK: attributes #0 = { readonly } 15