Home | History | Annotate | Download | only in SimplifyLibCalls
      1 ; RUN: opt < %s -simplify-libcalls -S | FileCheck %s
      2 
      3 %FILE = type { i32 }
      4 
      5 @.str = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
      6 
      7 define i64 @foo(%FILE* %f) {
      8 ; CHECK: %retval = call i64 @fwrite
      9   %retval = call i64 @fwrite(i8* getelementptr inbounds ([1 x i8]* @.str, i64 0, i64 0), i64 1, i64 1, %FILE* %f)
     10   ret i64 %retval
     11 }
     12 
     13 declare i64 @fwrite(i8*, i64, i64, %FILE *)
     14