1 ; RUN: opt < %s -inline -simplify-libcalls -functionattrs | \
2 ; RUN: llvm-dis | grep nocapture | count 2
3 ; Check that nocapture attributes are added when run after an SCC pass.
6 define i32 @use(i8* %x) nounwind readonly {
8 %0 = tail call i64 @strlen(i8* %x) nounwind readonly ; <i64> [#uses=1]
9 %1 = trunc i64 %0 to i32 ; <i32> [#uses=1]
13 declare i64 @strlen(i8*) nounwind readonly