forked from Imagelibrary/binutils-gdb
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.
22 lines
207 B
C
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));
|
|
|