>>285
compound literalが使えるなら使えばいいし、そうでない場合、
static struct f func(void); /* 架空の関数 */
printf("%d\n", sizeof func().name);
処理系によってはリンクエラーになるかも。