From 9bc769718db238c98f14aafc335426f47b52d4cd Mon Sep 17 00:00:00 2001 From: Nick Alcock Date: Tue, 5 Jan 2021 13:25:56 +0000 Subject: libctf: new test of enum lookups with the _next iterator I had reports that this doesn't work. This test shows it working (and also shows how annoying it is to do symbol lookup by name with the present API: we need a ctf_arc_lookup_symbol_name for users that don't already have a symtab handy). libctf/ChangeLog 2021-01-05 Nick Alcock * testsuite/libctf-lookup/enum-symbol.lk: New symbol-lookup test. * testsuite/libctf-lookup/enum-symbol-ctf.c: New CTF input. * testsuite/libctf-lookup/enum-symbol.c: New lookup test. --- libctf/testsuite/libctf-lookup/enum-symbol-ctf.c | 1 + 1 file changed, 1 insertion(+) create mode 100644 libctf/testsuite/libctf-lookup/enum-symbol-ctf.c (limited to 'libctf/testsuite/libctf-lookup/enum-symbol-ctf.c') diff --git a/libctf/testsuite/libctf-lookup/enum-symbol-ctf.c b/libctf/testsuite/libctf-lookup/enum-symbol-ctf.c new file mode 100644 index 0000000..f7f99c6 --- /dev/null +++ b/libctf/testsuite/libctf-lookup/enum-symbol-ctf.c @@ -0,0 +1 @@ +enum {red1, green1, blue1} primary1; -- cgit v1.1