1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 19:42:54 +02:00
llvm-mirror/test/CFrontend/2007-05-07-NestedStructReturn.c
Duncan Sands cfb3631483 Make the struct bigger, to ensure it is returned
by struct return.

llvm-svn: 50037
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);
}