Files
binutils-gdb/ld/testsuite/ld-ctf/unshared-strings-B.c
Nick Alcock acf3236e6b 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.
2025-02-28 14:47:24 +00:00

22 lines
207 B
C

struct A;
struct B
{
int foo;
struct A *a;
};
struct C;
typedef struct C C1;
typedef C1 C2;
struct A
{
C2 *wurblefritz;
};
struct C
{
struct B *foo;
};
static struct A *foo __attribute__((used));