1 # Check that noncyclic cross-TU matching-up works.
2 # We can guarantee the order of emitted structures, too.
7 #ld: -shared --ctf-variables
8 #name: cross-TU-noncyclic
12 Contents of CTF section .ctf:
16 Version: 4 \(CTF_VERSION_3\)
18 Type section: .* \(0x74 bytes\)
32 0x[0-9a-f]*: \(kind 6\) struct B .*
33 *\[0x0\] foo: ID 0x[0-9a-f]*: \(kind 1\) int .*
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 \* .*
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 .*
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 .*