recursive-struct-param.ll 402 B

123456789101112131415
  1. ; RUN: opt -verify < %s
  2. %struct.__sFILE = type { %struct.__sFILE }
  3. @.str = private unnamed_addr constant [13 x i8] c"Hello world\0A\00", align 1
  4. ; Function Attrs: nounwind ssp
  5. define void @test(%struct.__sFILE* %stream, i8* %str) {
  6. %fputs = call i32 @fputs(i8* %str, %struct.__sFILE* %stream)
  7. ret void
  8. }
  9. ; Function Attrs: nounwind
  10. declare i32 @fputs(i8* nocapture, %struct.__sFILE* nocapture)