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

From-SVN: r59178
This commit is contained in:
Jakub Jelinek 2002-11-16 21:04:40 +01:00 committed by Jakub Jelinek
parent 4d5ad877f5
commit aaefd21647
2 changed files with 36 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2002-11-16 Jakub Jelinek <jakub@redhat.com>
* gcc.dg/20021116-1.c: New test.
2002-11-14 Mark Mitchell <mark@codesourcery.com>
* g++.dg/abi/vcall1.C: New test.

View File

@ -0,0 +1,32 @@
/* { 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;
}