mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
a62270de2c
The reversion apparently deleted the test/Transforms directory. Will be re-reverting again. llvm-svn: 358552
19 lines
410 B
LLVM
19 lines
410 B
LLVM
; RUN: opt < %s -functionattrs -S | FileCheck %s
|
|
; RUN: opt < %s -passes=function-attrs -S | FileCheck %s
|
|
|
|
; CHECK: Function Attrs
|
|
; CHECK-SAME: readnone
|
|
; CHECK-NEXT: define i32 @a
|
|
define i32 @a() {
|
|
%tmp = call i32 @b( ) ; <i32> [#uses=1]
|
|
ret i32 %tmp
|
|
}
|
|
|
|
; CHECK: Function Attrs
|
|
; CHECK-SAME: readnone
|
|
; CHECK-NEXT: define i32 @b
|
|
define i32 @b() {
|
|
%tmp = call i32 @a( ) ; <i32> [#uses=1]
|
|
ret i32 %tmp
|
|
}
|