repo.or.cz
/
llvm
/
avr.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fix PR4948 (and a leak): by not destroying the DwarfException
[llvm/avr.git]
/
test
/
FrontendC
/
2006-05-19-SingleEltReturn.c
blob
70c94c620527cc8cc6fdf7f73c6127a01f247ab1
1
// Test returning a single element aggregate value containing a double.
2
// RUN: %llvmgcc %s -S -o -
3
4
struct
X
{
5
double
D
;
6
};
7
8
struct
Y
{
9
struct
X x
;
10
};
11
12
struct
Y
bar
();
13
14
void
foo
(
struct
Y
*
P
) {
15
*
P
=
bar
();
16
}
17
18
struct
Y
bar
() {
19
struct
Y a
;
20
a
.
x
.
D
=
0
;
21
return
a
;
22
}
23