llvm-6502/test/CFrontend/2007-05-07-NestedStructReturn.c
Duncan Sands 09eb6e7c25 Make the struct bigger, to ensure it is returned
by struct return.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50037 91177308-0d34-0410-b5e6-96231b3b80d8
2008-04-21 08:12:03 +00:00

14 lines
226 B
C

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