Duncan Sands 2007-05-09 08:41:26 +00:00
parent 9557247412
commit dd75c1a255
1 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,13 @@
// RUN: %llvmgcc %s -S -fnested-functions -o - | grep {sret *%agg.result}
struct X { int m, n; };
struct X p(int n) {
struct X c(int m) {
struct X x;
x.m = m;
x.n = n;
return x;
}
return c(n);
}