projects
/
cparser
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed uninitialized empty array descriptor
[cparser]
/
parsetest
/
initializers.c
diff --git
a/parsetest/initializers.c
b/parsetest/initializers.c
index
7c473b0
..
b32ea53
100644
(file)
--- a/
parsetest/initializers.c
+++ b/
parsetest/initializers.c
@@
-22,18
+22,20
@@
struct foo {
};
struct foo f1 = { 1, 2 };
};
struct foo f1 = { 1, 2 };
-struct foo f2 = { { 1, }, 2 }; /* produces a warning on icc and gcc... */
+struct foo f2 = { { 1,
+ }
+ , 2 }; /* produces a warning on icc and gcc... */
struct foo f3 = { { { 1, } }, 2 }; /* produces a warning on icc and gcc... */
struct foob {
int a;
struct foobb {
float c, d;
struct foo f3 = { { { 1, } }, 2 }; /* produces a warning on icc and gcc... */
struct foob {
int a;
struct foobb {
float c, d;
- };
+ }
f
;
int e;
};
int e;
};
-struct foob ff2 = { 1, 2.5, 4, 2 };
+struct foob ff2 = { 1, 2.5, 4
.4
, 2 };
union foou {
int a;
union foou {
int a;
@@
-41,3
+43,7
@@
union foou {
};
union foou g1 = { 5 };
};
union foou g1 = { 5 };
+
+int main() {
+ return 0;
+}