------- Comment #3 from tbm at cyrius dot com 2007-10-12 20:32 -------
/* Testcase by Martin Michlmayr <[EMAIL PROTECTED]> */
struct mtd_blktrans_ops
{
int (*readsect) (void);
int exiting;
};
static void do_blktrans_request (struct mtd_blktrans_ops *tr, long flags)
{
switch (flags & 1)
{
case 0:
if (tr->readsect ())
return;
case 1:
return;
default:
printk ("foo\n");
}
}
mtd_blktrans_thread (struct mtd_blktrans_ops *tr)
{
long flags;
while (!tr->exiting)
do_blktrans_request (tr, flags);
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33755