aboutsummaryrefslogtreecommitdiff
path: root/libctf/testsuite/libctf-lookup/ambiguous-struct-B.c
diff options
context:
space:
mode:
Diffstat (limited to 'libctf/testsuite/libctf-lookup/ambiguous-struct-B.c')
-rw-r--r--libctf/testsuite/libctf-lookup/ambiguous-struct-B.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libctf/testsuite/libctf-lookup/ambiguous-struct-B.c b/libctf/testsuite/libctf-lookup/ambiguous-struct-B.c
new file mode 100644
index 0000000..95a9346
--- /dev/null
+++ b/libctf/testsuite/libctf-lookup/ambiguous-struct-B.c
@@ -0,0 +1,5 @@
+struct A;
+struct B { struct A *a; };
+struct A { struct B b; int foo; struct B b2; };
+
+static struct A a __attribute__((__used__));