2022-02-25 04:30:30 +08:00
|
|
|
// RUN: %clang_cc1 %s -Wno-strict-prototypes -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();
|
|
|
|
|
2022-02-25 04:30:30 +08:00
|
|
|
void bar(void) {
|
2011-07-27 06:17:02 +08:00
|
|
|
struct abc dummy1 = foo1();
|
|
|
|
struct abc dummy2 = foo2();
|
|
|
|
}
|