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 test to not get a moduleid that matches 'br'
[llvm/avr.git]
/
test
/
FrontendC
/
2007-05-07-NestedStructReturn.c
blob
aea58e3ae8bb2123fc018b2a3e80ef1444a00227
1
// RUN: %llvmgcc %s -S -fnested-functions -o - | grep {sret *%agg.result}
2
3
struct
X
{
long
m
,
n
,
o
,
p
; };
4
5
struct
X
p
(
int
n
) {
6
struct
X
c
(
int
m
) {
7
struct
X x
;
8
x
.
m
=
m
;
9
x
.
n
=
n
;
10
return
x
;
11
}
12
return
c
(
n
);
13
}