forwardreftest.ll 621 B

1234567891011121314151617181920212223242526272829
  1. ; RUN: llvm-as < %s | llvm-dis > %t1.ll
  2. ; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
  3. ; RUN: diff %t1.ll %t2.ll
  4. %myty = type i32
  5. %myfn = type float (i32,double,i32,i16)
  6. %0 = type i32(%myfn*)
  7. %1 = type i32(i32)
  8. %2 = type i32(i32(i32)*)
  9. %thisfuncty = type i32 (i32) *
  10. declare void @F(%thisfuncty, %thisfuncty, %thisfuncty)
  11. define i32 @zarro(i32 %Func) {
  12. Startup:
  13. add i32 0, 10 ; <i32>:0 [#uses=0]
  14. ret i32 0
  15. }
  16. define i32 @test(i32) {
  17. call void @F( %thisfuncty @zarro, %thisfuncty @test, %thisfuncty @foozball )
  18. ret i32 0
  19. }
  20. define i32 @foozball(i32) {
  21. ret i32 0
  22. }