OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
2005-02-15 Eric Christopher <echristo@redhat.com>
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
gcc.dg
/
20021116-1.c
1
/* { dg-do compile } */
2
/* { dg-options "-O2 -fpic" } */
3
/* { dg-warning "not supported" "PIC unsupported" { target cris-*-elf* cris-*-aout* mmix-*-* } 0 } */
4
5
void **
6
foo (void **x, int y, void *z)
7
{
8
switch (y)
9
{
10
case 162:
11
*x = z;
12
break;
13
case 164:
14
*x = z;
15
break;
16
case 165:
17
*x = z;
18
break;
19
case 166:
20
*x = z;
21
break;
22
case 163:
23
*x = z;
24
break;
25
default:
26
goto out;
27
}
28
return x;
29
30
out:
31
return (void **) 0;
32
}