Change tests from "opt %s" to "opt < %s" so that opt doesn't see the
[llvm/avr.git] / test / Transforms / FunctionAttrs / 2008-09-03-ReadNone.ll
blob535a1d0fba6b01c6d3ab84e20622ba082cc04f33
1 ; RUN: opt < %s -functionattrs -S | grep readnone | count 4
2 @x = global i32 0
4 declare i32 @e() readnone
6 define i32 @f() {
7         %tmp = call i32 @e( )           ; <i32> [#uses=1]
8         ret i32 %tmp
11 define i32 @g() readonly {
12         ret i32 0
15 define i32 @h() readnone {
16         %tmp = load i32* @x             ; <i32> [#uses=1]
17         ret i32 %tmp