aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/struct.c
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2007-10-31 22:04:46 +0000
committerAnders Carlsson <andersca@mac.com>2007-10-31 22:04:46 +0000
commit148fe6772733166c720e28b7bb5084af6e624b44 (patch)
tree8866e5e144f0ea0120201e3634083f16a94f34ef /test/CodeGen/struct.c
parent19d74e1494fe399f0e2a94e9419c095f8214851b (diff)
Handle function calls that return aggregate expressions.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43581 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/struct.c')
-rw-r--r--test/CodeGen/struct.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/CodeGen/struct.c b/test/CodeGen/struct.c
index 443fc33ccb..83ac4d2195 100644
--- a/test/CodeGen/struct.c
+++ b/test/CodeGen/struct.c
@@ -63,3 +63,17 @@ void f4() {
void f5() {
(f3())->d1 = 42;
}
+
+/* Function calls */
+typedef struct {
+ int location;
+ int length;
+} range;
+
+extern range f6();
+void f7()
+{
+ range r = f6();
+}
+
+