repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Sync usage with man page.
[netbsd-mini2440.git]
/
gnu
/
dist
/
gcc4
/
gcc
/
testsuite
/
gcc.c-torture
/
execute
/
wchar_t-1.c
blob
7e90cc08f5ea5361d42a8f639fd284eb5c5916ea
1
/* { dg-options "-finput-charset=utf-8" } */
2
typedef
__WCHAR_TYPE__
wchar_t
;
3
wchar_t
x
[] =
L
"Ä"
;
4
wchar_t
y
=
L
'Ä'
;
5
extern
void
abort
(
void
);
6
extern
void
exit
(
int
);
7
8
int
main
(
void
)
9
{
10
if
(
sizeof
(
x
) /
sizeof
(
wchar_t
) !=
2
)
11
abort
();
12
if
(
x
[
0
] !=
L
'Ä'
||
x
[
1
] !=
L
'\0'
)
13
abort
();
14
if
(
y
!=
L
'Ä'
)
15
abort
();
16
exit
(
0
);
17
}