Commit aaefd216 by Jakub Jelinek Committed by Jakub Jelinek

* gcc.dg/20021116-1.c: New test.

From-SVN: r59178
parent 4d5ad877
2002-11-16 Jakub Jelinek <jakub@redhat.com>
* gcc.dg/20021116-1.c: New test.
2002-11-14 Mark Mitchell <mark@codesourcery.com> 2002-11-14 Mark Mitchell <mark@codesourcery.com>
* g++.dg/abi/vcall1.C: New test. * g++.dg/abi/vcall1.C: New test.
......
/* { dg-do compile } */
/* { dg-options "-O2 -fpic" } */
/* { dg-warning "not supported" "PIC unsupported" { target cris-*-elf* cris-*-aout* mmix-*-* } 0 } */
void **
foo (void **x, int y, void *z)
{
switch (y)
{
case 162:
*x = z;
break;
case 164:
*x = z;
break;
case 165:
*x = z;
break;
case 166:
*x = z;
break;
case 163:
*x = z;
break;
default:
goto out;
}
return x;
out:
return (void **) 0;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment