repo.or.cz
/
sdcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
struct / union in initializer, RFE #901.
[sdcc.git]
/
sdcc
/
support
/
regression
/
tests
/
gcc-torture-execute-wchar_t-1.c
blob
ae55105b94ae453f873f36ad923c771ae214ce5d
1
/*
2
wchar_t-1.c from the execute part of the gcc torture tests.
3
*/
4
5
#include <testfwk.h>
6
7
#include <wchar.h>
8
9
/* { dg-options "-finput-charset=utf-8" } */
10
11
wchar_t
x
[] =
L
"Ä"
;
12
wchar_t
y
=
L
'Ä'
;
13
14
void
15
testTortureExecute
(
void
)
16
{
17
if
(
sizeof
(
x
) /
sizeof
(
wchar_t
) !=
2
)
18
ASSERT
(
0
);
19
if
(
x
[
0
] !=
L
'Ä'
||
x
[
1
] !=
L
'\0'
)
20
ASSERT
(
0
);
21
if
(
y
!=
L
'Ä'
)
22
ASSERT
(
0
);
23
return
;
24
}