commit | fccf74784f7589c3e86f3de4c3a10fc856da8db4 | [log] [tgz] |
---|---|---|
author | Anders Carlsson <andersca@mac.com> | Tue Nov 25 22:21:48 2008 +0000 |
committer | Anders Carlsson <andersca@mac.com> | Tue Nov 25 22:21:48 2008 +0000 |
tree | 2558300aafe63dc380f0771e4454fd7a9e92d880 | |
parent | 6008ac320d78b808c5c810fb1d8234a74fc345d2 [diff] [blame] |
Handle returning complex types that get coerced. Fixes PR3131 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@60058 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/CodeGen/complex.c b/test/CodeGen/complex.c index 93e25cf..9c0e3d5 100644 --- a/test/CodeGen/complex.c +++ b/test/CodeGen/complex.c
@@ -51,3 +51,10 @@ __complex__ long long v = 2; } +// PR3131 +float _Complex t4(); + +void t5() { + float _Complex x = t4(); +} +