diff options
author | Chris Lattner <sabre@nondot.org> | 2009-03-22 19:35:37 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-03-22 19:35:37 +0000 |
commit | ff75e1db95a53c7606e0bb114cf9adc59ab3d7f6 (patch) | |
tree | 91991672ba9d6335aaebdf6d044f9552e9c80cfd /test/CodeGen/functions.c | |
parent | 26d1a40edc612f4c53399427480592101acb0dbe (diff) |
fix a fixme: non-proto struct returning function definitions should be compiled
to something like:
define void @bar(%struct.foo* noalias sret %agg.result) nounwind {
instead of:
define void @bar(%struct.foo* noalias sret %agg.result, ...) nounwind {
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67475 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/functions.c')
-rw-r--r-- | test/CodeGen/functions.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/CodeGen/functions.c b/test/CodeGen/functions.c index ad918263c5..3b50df79f6 100644 --- a/test/CodeGen/functions.c +++ b/test/CodeGen/functions.c @@ -27,5 +27,9 @@ void f1(); void f2(void) { f1(1, 2, 3); } -// RUN: grep 'define void @f1()' %t +// RUN: grep 'define void @f1()' %t && void f1() {} + +// RUN: grep 'define .* @f3' %t | not grep -F '...' +struct foo { int X, Y, Z; } f3() { +} |