cross-tu-into-cycle.d 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. # Check that a type outside a cycle pointing into a cycle
  2. # in another TU does not cause the whole cycle to show up
  3. # as conflicted. (Here, we do that by forcing conflicts
  4. # in the variable section alone, so that we can assert that
  5. # the type section of any conflicted dicts is empty.)
  6. # Minimized from libbfd itself.
  7. #as:
  8. #source: cross-tu-cyclic-3.c
  9. #source: cross-tu-cyclic-4.c
  10. #objdump: --ctf
  11. #ld: -shared --ctf-variables
  12. #name: cross-TU-into-cycle
  13. .*: file format .*
  14. Contents of CTF section .ctf:
  15. Header:
  16. Magic number: 0xdff2
  17. Version: 4 \(CTF_VERSION_3\)
  18. #...
  19. Labels:
  20. Data objects:
  21. Function objects:
  22. Variables:
  23. a -> .*
  24. conflicty -> .*
  25. Types:
  26. 0x[0-9a-f]*: \(kind 6\) struct A .*
  27. *\[0x0\] foo: ID 0x[0-9a-f]*: \(kind 3\) struct B \* .*
  28. 0x[0-9a-f]*: \(kind 6\) struct B .*
  29. *\[0x0\] next: ID 0x[0-9a-f]*: \(kind 3\) struct B \* .*
  30. 0x[0-9a-f]*: \(kind 3\) struct B \* .*
  31. 0x[0-9a-f]*: \(kind 3\) struct A \* .*
  32. Strings:
  33. #...
  34. CTF archive member: .*/ld/testsuite/ld-ctf/cross-tu-cyclic-[34].c:
  35. Header:
  36. #...
  37. Labels:
  38. Data objects:
  39. Function objects:
  40. Variables:
  41. conflicty -> .*
  42. Types:
  43. Strings:
  44. #...