Commit | Line | Data |
---|---|---|
b1b33524 EB |
1 | # Check that types with the same names in distinct TUs show up as |
2 | # conflicting. | |
3 | #as: | |
4 | #source: cross-tu-cyclic-1.c | |
5 | #source: cross-tu-cyclic-2.c | |
6 | #objdump: --ctf=.ctf | |
7 | #ld: -shared | |
8 | #name: cross-TU-cyclic-conflicting | |
9 | ||
10 | .*: file format .* | |
11 | ||
12 | Contents of CTF section \.ctf: | |
13 | ||
14 | #... | |
15 | Types: | |
b1b33524 | 16 | #... |
37002871 | 17 | 0x[0-9a-f]*: \(kind 6\) struct B .* |
b1b33524 | 18 | #... |
37002871 | 19 | 0x[0-9a-f]*: \(kind 1\) int \(format 0x1\) \(size 0x[0-9a-f]*\) \(aligned at 0x[0-9a-f]*\) |
ae064303 NA |
20 | #... |
21 | 0x[0-9a-f]*: \(kind 1\) long int \(format 0x1\) \(size 0x[0-9a-f]*\) \(aligned at 0x[0-9a-f]*\) | |
b1b33524 | 22 | #... |
37002871 | 23 | 0x[0-9a-f]*: \(kind 9\) struct A |
b1b33524 | 24 | #... |
37002871 | 25 | 0x[0-9a-f]*: \(kind 6\) struct C .* |
b1b33524 EB |
26 | #... |
27 | ||
28 | Strings: | |
29 | #... | |
30 | ||
31 | CTF archive member: .*/ld/testsuite/ld-ctf/cross-tu-cyclic-1\.c: | |
32 | #... | |
33 | Types: | |
37002871 NA |
34 | 0x80[0-9a-f]*: \(kind 6\) struct A .* |
35 | *\[0x0\] a: ID 0x[0-9a-f]*: \(kind 1\) long int .* | |
36 | *\[0x[0-9a-f]*\] foo: ID 0x[0-9a-f]*\: \(kind 3\) struct B \* .* | |
b1b33524 EB |
37 | |
38 | Strings: | |
39 | #... | |
40 | ||
41 | CTF archive member: .*/ld/testsuite/ld-ctf/cross-tu-cyclic-2\.c: | |
42 | #... | |
43 | Types: | |
37002871 NA |
44 | 0x80[0-9a-f]*: \(kind 6\) struct A .* |
45 | *\[0x0\] a: ID 0x[0-9a-f]*: \(kind 1\) long int .* | |
46 | *\[0x[0-9a-f]*\] foo: ID 0x[0-9a-f]*: \(kind 3\) struct B \* .* | |
47 | *\[0x[0-9a-f]*\] bar: ID 0x[0-9a-f]*: \(kind 3\) struct C \* .* | |
b1b33524 EB |
48 | |
49 | Strings: | |
50 | #... |