projects
/
libfirm
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
improved fehler101.c. Now with printing!
[libfirm]
/
ir
/
be
/
test
/
fehler25.c
1
/* The compound initialisation code asserts when a wide char array in a struct
2
* gets initialised with a wide string literal which is - not counting the \0 -
3
* as long as the array */
4
5
#include <wchar.h>
6
7
struct s {
8
wchar_t x[30];
9
short y;
10
};
11
12
13
struct s x[][21] = {
14
{ L"Exactly 30 chars long", 1 }
15
};
16
17
18
int main(void)
19
{
20
return 0;
21
}