mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-01-13 05:04:32 +08:00
* gcc.dg/20021116-1.c: New test.
From-SVN: r59178
This commit is contained in:
parent
4d5ad877f5
commit
aaefd21647
@ -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.
|
||||
|
32
gcc/testsuite/gcc.dg/20021116-1.c
Normal file
32
gcc/testsuite/gcc.dg/20021116-1.c
Normal 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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user