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
2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.c-torture
/
execute
/
wchar_t-1.c
blob
3efdcf5a038388c64aa1010fb2cb1a05b92dbce2
1
typedef
__WCHAR_TYPE__
wchar_t
;
2
wchar_t
x
[] =
L
"Ä"
;
3
wchar_t
y
=
L
'Ä'
;
4
extern
void
abort
(
void
);
5
extern
void
exit
(
int
);
6
7
int
main
(
void
)
8
{
9
if
(
sizeof
(
x
) /
sizeof
(
wchar_t
) !=
2
)
10
abort
();
11
if
(
x
[
0
] !=
L
'Ä'
||
x
[
1
] !=
L
'\0'
)
12
abort
();
13
if
(
y
!=
L
'Ä'
)
14
abort
();
15
exit
(
0
);
16
}