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
[AArch64/arm] PR testsuite/85326 Avoid C++ tests when C++ compiler not present
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.target
/
aarch64
/
pr61325.c
blob
45ece53446f4592715177a9510e2d00ec458bf37
1
/* { dg-do compile } */
2
/* { dg-options "-O2" } */
3
typedef
unsigned int wchar_t
;
4
typedef
long unsigned int size_t
;
5
6
size_t
7
wcstombs
(
char
*
s
,
const wchar_t
*
pwcs
,
size_t
n
)
8
{
9
int
count
=
0
;
10
11
if
(
n
!=
0
) {
12
do
{
13
if
((*
s
++ = (
char
) *
pwcs
++) ==
0
)
14
break
;
15
count
++;
16
}
while
(--
n
!=
0
);
17
}
18
return
count
;
19
}