• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: opt < %s -functionattrs -S | FileCheck %s
2; RUN: opt < %s -passes=function-attrs -S | FileCheck %s
3
4; CHECK: Function Attrs
5; CHECK-SAME: readnone
6; CHECK-NEXT: define i32 @a
7define i32 @a() {
8	%tmp = call i32 @b( )		; <i32> [#uses=1]
9	ret i32 %tmp
10}
11
12; CHECK: Function Attrs
13; CHECK-SAME: readnone
14; CHECK-NEXT: define i32 @b
15define i32 @b() {
16	%tmp = call i32 @a( )		; <i32> [#uses=1]
17	ret i32 %tmp
18}
19