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 | 75acb0c35604796a1d7457c4e591b408dddde614 (patch) | |
tree | 16d97f71d040a084cb611e9dbd7ddca3dbb8bf96 /clang/test/CodeGen/functions.c | |
parent | 377b9c84d01a954c9f39221e66b5f109b2a21662 (diff) | |
download | bcm5719-llvm-75acb0c35604796a1d7457c4e591b408dddde614.tar.gz bcm5719-llvm-75acb0c35604796a1d7457c4e591b408dddde614.zip |
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 {
llvm-svn: 67475
Diffstat (limited to 'clang/test/CodeGen/functions.c')
-rw-r--r-- | clang/test/CodeGen/functions.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/clang/test/CodeGen/functions.c b/clang/test/CodeGen/functions.c index ad918263c5f..3b50df79f6d 100644 --- a/clang/test/CodeGen/functions.c +++ b/clang/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() { +} |