2016-03-30 21:59:49 +08:00
|
|
|
// RUN: %clang_cc1 %s -emit-llvm -o - | grep sret | grep -v 'sret.c' | count 4
|
2011-07-27 06:17:02 +08:00
|
|
|
|
|
|
|
struct abc {
|
|
|
|
long a;
|
|
|
|
long b;
|
|
|
|
long c;
|
2014-01-14 14:19:26 +08:00
|
|
|
long d;
|
|
|
|
long e;
|
2011-07-27 06:17:02 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
struct abc foo1(void);
|
|
|
|
struct abc foo2();
|
|
|
|
|
|
|
|
void bar() {
|
|
|
|
struct abc dummy1 = foo1();
|
|
|
|
struct abc dummy2 = foo2();
|
|
|
|
}
|