projects
/
cparser
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Remove pointless local variable.
[cparser]
/
parsetest
/
should_warn
/
struct_ret.c
1
/*$ -Waggregate-return $*/
2
3
struct S { int a, b; };
4
union U { int a, b; };
5
6
struct S testS(void) {
7
struct S ret = { 1, 2 };
8
9
return ret;
10
}
11
12
union U testU(void) {
13
union U ret = { 2 };
14
15
return ret;
16
}
17
18
int main(int argc, char *argv[]) {
19
struct S x = testS();
20
union U y = testU();
21
22
return 0;
23
}