The base type of pointers are not examined when the pointer is. It neends to be done later when looked at. This may be a problem when show_typename() is used on a pointer which has not yet been 'deep-examined' and, for example, has a SYM_TYPEOF as its base type. Add a test case showing the problem. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@xxxxxxxxx> --- validation/eval/typeof0.c | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 validation/eval/typeof0.c diff --git a/validation/eval/typeof0.c b/validation/eval/typeof0.c new file mode 100644 index 000000000..abef63865 --- /dev/null +++ b/validation/eval/typeof0.c @@ -0,0 +1,11 @@ +static int i; +static typeof(i) *ptr; + +/* + * check-name: eval-typeof0 + * check-command: test-show-type $file + * check-known-to-fail + * + * check-output-ignore + * check-output-excludes: unknown type + */ -- 2.24.0