2011-01-15-EitherOrder.ll 469 B

123456789101112131415161718
  1. ; RUN: opt -constmerge -S < %s | FileCheck %s
  2. ; PR8978
  3. declare i32 @zed(%struct.foobar*, %struct.foobar*)
  4. %struct.foobar = type { i32 }
  5. ; CHECK: bar.d
  6. @bar.d = unnamed_addr constant %struct.foobar zeroinitializer, align 4
  7. ; CHECK-NOT: foo.d
  8. @foo.d = internal constant %struct.foobar zeroinitializer, align 4
  9. define i32 @main() nounwind ssp {
  10. entry:
  11. ; CHECK: bar.d
  12. %call2 = tail call i32 @zed(%struct.foobar* @foo.d, %struct.foobar* @bar.d)
  13. nounwind
  14. ret i32 0
  15. }