Automatic date update in version.in
[binutils-gdb.git] / ld / testsuite / ld-ctf / cross-tu-noncyclic.d
blob28c2eb424595344a13af06aa12fc896db1033ec3
1 # Check that noncyclic cross-TU matching-up works.
2 # We can guarantee the order of emitted structures, too.
3 #as:
4 #source: cross-tu-1.c
5 #source: cross-tu-2.c
6 #objdump: --ctf
7 #ld: -shared --ctf-variables
8 #name: cross-TU-noncyclic
10 .*: +file format .*
12 Contents of CTF section .ctf:
14 Header:
15 Magic number: 0xdff2
16 Version: 4 \(CTF_VERSION_3\)
17 #...
18 Type section: .* \(0x74 bytes\)
19 String section: .*
21 Labels:
23 Data objects:
24 #...
25 Function objects:
27 Variables:
28 #...
30 Types:
31 #...
32 0x[0-9a-f]*: \(kind 6\) struct B .*
33 *\[0x0\] foo: ID 0x[0-9a-f]*: \(kind 1\) int .*
34 #...
35 0x[0-9a-f]*: \(kind 6\) struct A .*
36 *\[0x0\] a: ID 0x[0-9a-f]*: \(kind 1\) long int .*
37 *\[0x[0-9a-f]*\] foo: ID 0x[0-9a-f]*: \(kind 3\) struct B \* .*
38 #...
39 0x[0-9a-f]*: \(kind 3\) struct B \* \(size 0x[0-9a-f]*\) \(aligned at 0x[0-9a-f]*\) -> 0x[0-9a-f]*: \(kind 6\) struct B .*
40 #...
41 0x[0-9a-f]*: \(kind 3\) struct A \* \(size 0x[0-9a-f]*\) \(aligned at 0x[0-9a-f]*\) -> 0x[0-9a-f]*: \(kind 6\) struct A .*
42 #...