libctf: impose an ordering on conflicting types
[binutils-gdb.git] / ld / testsuite / ld-ctf / diag-parlabel.d
1 #as:
2 #source: diag-parlabel.s
3 #objdump: --ctf
4 #ld: -shared --ctf-variables
5 #name: Diagnostics - Non-zero parlabel in parent
6
7 .*: +file format .*
8
9 Contents of CTF section .ctf:
10
11 Header:
12 Magic number: 0xdff2
13 Version: 4 \(CTF_VERSION_3\)
14 #...
15 Compilation unit name: .*A.c
16 Data object section: .* \(0x[1-9a-f][0-9a-f]* bytes\)
17 Type section: .* \(0x30 bytes\)
18 String section: .*
19
20 Labels:
21
22 Data objects:
23 a -> 0x[0-9a-f]*: \(kind 6\) struct A \(size 0x[0-9a-f]*\) \(aligned at 0x[0-9a-f]*\)
24 #...
25 Function objects:
26
27 Variables:
28
29 Types:
30 #...
31 0x[0-9a-f]*: \(kind 6\) struct A \(.*
32 *\[0x0\] b: ID 0x[0-9a-f]*: \(kind 3\) struct B \* \(.*
33 #...
34 Strings:
35 0x0:
36 #...
37 0x[0-9a-f]*: A
38 #...