commit | 0ae1541abdcfadd8f11d71059aa201418ffd2d5d | [log] [tgz] |
---|---|---|
author | Anders Carlsson <andersca@mac.com> | Wed Oct 31 22:04:46 2007 +0000 |
committer | Anders Carlsson <andersca@mac.com> | Wed Oct 31 22:04:46 2007 +0000 |
tree | 8866e5e144f0ea0120201e3634083f16a94f34ef | |
parent | 6dab49b1916962f50e2c390d5a6f611a1e06e54c [diff] [blame] |
Handle function calls that return aggregate expressions. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43581 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/CodeGen/struct.c b/test/CodeGen/struct.c index 443fc33..83ac4d2 100644 --- a/test/CodeGen/struct.c +++ b/test/CodeGen/struct.c
@@ -63,3 +63,17 @@ void f5() { (f3())->d1 = 42; } + +/* Function calls */ +typedef struct { + int location; + int length; +} range; + +extern range f6(); +void f7() +{ + range r = f6(); +} + +