]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
libctf: a little string sharing test
authorNick Alcock <nick.alcock@oracle.com>
Tue, 16 Jul 2024 12:01:36 +0000 (13:01 +0100)
committerNick Alcock <nick.alcock@oracle.com>
Fri, 28 Feb 2025 14:47:24 +0000 (14:47 +0000)
commitacf3236e6bae45568cdad7efb8ec8cfa8aa302df
tree4fb88699c41ad7a03f97f1daa2a7b170d2a5a266
parent4d2d5afa6078355074fa284c49a2cad2657fd367
libctf: a little string sharing test

It's actually quite hard to come up with simple tests that do *not* share
all their strings, but with enough ingenuity suitable cycles can be
concocted.

This test verifies that only and precisely those strings that are only used
in one child dict actually end up in its strtab.

ld/
* testsuite/ld-ctf/unshared-strings*: New test.
ld/testsuite/ld-ctf/unshared-strings-A.c [new file with mode: 0644]
ld/testsuite/ld-ctf/unshared-strings-B.c [new file with mode: 0644]
ld/testsuite/ld-ctf/unshared-strings.d [new file with mode: 0644]