pr21374.ll 601 B

1234567891011121314151617181920
  1. ; RUN: llvm-link -S -o - %p/pr21374.ll %p/Inputs/pr21374.ll | FileCheck %s
  2. ; RUN: llvm-link -S -o - %p/Inputs/pr21374.ll %p/pr21374.ll | FileCheck %s
  3. ; RUN: llvm-as -o %t1.bc %p/pr21374.ll
  4. ; RUN: llvm-as -o %t2.bc %p/Inputs/pr21374.ll
  5. ; RUN: llvm-link -S -o - %t1.bc %t2.bc | FileCheck %s
  6. ; RUN: llvm-link -S -o - %t2.bc %t1.bc | FileCheck %s
  7. ; Test that we get the same result with or without lazy loading.
  8. ; CHECK: %foo = type { i8* }
  9. ; CHECK-DAG: bitcast i32* null to %foo*
  10. ; CHECK-DAG: define void @g(%foo* %x)
  11. %foo = type { i8* }
  12. define void @f() {
  13. bitcast i32* null to %foo*
  14. ret void
  15. }