PR28751 mbind2a / mbind2b regressions on powerpc*-linux
[binutils-gdb.git] / ld / testsuite / ld-ctf / cross-tu-into-cycle.d
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
14 .*: file format .*
15
16 Contents of CTF section .ctf:
17
18 Header:
19 Magic number: 0xdff2
20 Version: 4 \(CTF_VERSION_3\)
21 #...
22
23 Labels:
24
25 Data objects:
26
27 Function objects:
28
29 Variables:
30 a -> .*
31 conflicty -> .*
32
33 Types:
34 0x[0-9a-f]*: \(kind 6\) struct A .*
35 *\[0x0\] foo: ID 0x[0-9a-f]*: \(kind 3\) struct B \* .*
36 0x[0-9a-f]*: \(kind 6\) struct B .*
37 *\[0x0\] next: ID 0x[0-9a-f]*: \(kind 3\) struct B \* .*
38 0x[0-9a-f]*: \(kind 3\) struct B \* .*
39 0x[0-9a-f]*: \(kind 3\) struct A \* .*
40
41 Strings:
42 #...
43
44 CTF archive member: .*/ld/testsuite/ld-ctf/cross-tu-cyclic-[34].c:
45
46 Header:
47 #...
48 Labels:
49
50 Data objects:
51
52 Function objects:
53
54 Variables:
55 conflicty -> .*
56
57 Types:
58
59 Strings:
60 #...