Hello,
This adds a test for:
struct foo0 { };
to the structs.exp testcase (I'm assuming that this is legal ISO-C), it passes on PPC with stabs with:
(gdb) PASS: gdb.base/structs.exp: ptype foo1; structs-tc
p/c fun0()
$1 = {<No data fields>}
Tt was intended for completness, however with a dwarf2 compiler:
amd64$ gcc --version
gcc (GCC) 3.2.3 20030502 (Red Hat Linux 3.2.3-24)
(gdb) PASS: gdb.base/structs.exp: ptype foo1; structs-tc
p/c fun0()
$1 = <incomplete type>
I guess I should file a bug report and kfail it?