repo.or.cz
/
llvm-complete.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Rename llvm-gcc4 to llvm-gcc.
[llvm-complete.git]
/
test
/
CFrontend
/
2007-05-07-NestedStructReturn.c
blob
94dad87abf74340205adeb5ca921aa9abab86b1e
1
// RUN: %llvmgcc %s -S -fnested-functions -o - | grep {sret *%agg.result}
2
3
struct
X
{
int
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
}