[gdb/testsuite] Fix gdb.dwarf2/dw2-unspecified-type-foo.c with -m32
authorTom de Vries <tdevries@suse.de>
Mon, 26 Sep 2022 11:43:42 +0000 (13:43 +0200)
committerTom de Vries <tdevries@suse.de>
Mon, 26 Sep 2022 11:43:42 +0000 (13:43 +0200)
commit757b1c20d49438a19cb3bfd5ce5db20f40ce4e21
treefc4721f7a56cc3a0d510d1bf476dab6a27998cc9
parentc7afb87bea33c27c7e669b94275fb8c22d6f43bc
[gdb/testsuite] Fix gdb.dwarf2/dw2-unspecified-type-foo.c with -m32

When running test-case gdb.dwarf2/dw2-unspecified-type-foo.c with target board
unix/-m32, I run into:
...
(gdb) PASS: gdb.dwarf2/dw2-unspecified-type.exp: ptype foo
p ((int (*) ()) foo) ()^M
$1 = -135698472^M
...

Add the missing "return 0" in foo, which fixes this.

Tested on x86_64-linux.
gdb/testsuite/gdb.dwarf2/dw2-unspecified-type-foo.c