279aa8f685
Former-commit-id: 0c7ce5b1a7851e13f22acfd379b7f9fb304e4833
14 lines
248 B
LLVM
14 lines
248 B
LLVM
; RUN: opt < %s -basicaa -functionattrs -S | FileCheck %s
|
|
|
|
; CHECK: define i32 @f() #0
|
|
define i32 @f() {
|
|
entry:
|
|
%tmp = call i32 @e( )
|
|
ret i32 %tmp
|
|
}
|
|
|
|
; CHECK: declare i32 @e() #0
|
|
declare i32 @e() readonly
|
|
|
|
; CHECK: attributes #0 = { readonly }
|