repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge -r 127928:132243 from trunk
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.target
/
mips
/
pr33755.c
blob
a550480ddd7eb53ab97cba5b8368e56ad0d0ef21
1
/* { dg-do link } */
2
/* { dg-mips-options "-O2" } */
3
4
volatile
int
gv
;
5
const char
*
ptrs
[
2
];
6
7
void
8
foo
(
volatile
int
*
v
,
const char
**
ptrs
)
9
{
10
switch
(*
v
&
1
)
11
{
12
case
0
:
13
ptrs
[
0
] =
0
;
14
break
;
15
case
1
:
16
break
;
17
default
:
18
ptrs
[
1
] =
"Some text"
;
19
break
;
20
}
21
while
(*
v
>
0
)
22
*
v
-=
1
;
23
}
24
25
int
26
main
(
void
)
27
{
28
foo
(&
gv
,
ptrs
);
29
return
0
;
30
}