diff options
author | Chris Lattner <sabre@nondot.org> | 2010-06-30 19:14:05 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-06-30 19:14:05 +0000 |
commit | bcaedaed309ce453a992fdeef4a4c908cc7d9dfb (patch) | |
tree | 62dfcba7c7efee298a560c834ad72d290eff8500 /test/CodeGen/decl.c | |
parent | e81c5619f11e1ececf99ff30d15e5abfb6ea0c28 (diff) |
Reapply:
r107173, "fix PR7519: after thrashing around and remembering how all this stuff"
r107216, "fix PR7523, which was caused by the ABI code calling ConvertType instead"
This includes a fix to make ConvertTypeForMem handle the "recursive" case, and call
it as such when lowering function types which have an indirect result.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@107310 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/decl.c')
-rw-r--r-- | test/CodeGen/decl.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/CodeGen/decl.c b/test/CodeGen/decl.c index 7ffb7006b0..dcf120fd88 100644 --- a/test/CodeGen/decl.c +++ b/test/CodeGen/decl.c @@ -89,3 +89,16 @@ struct test7s { int a; int b; } test7[] = { struct test8s { int f0; char f1; } test8g = {}; +// PR7519 + +struct S { + void (*x) (struct S *); +}; + +extern struct S *global_dc; +void cp_diagnostic_starter(struct S *); + +void init_error(void) { + global_dc->x = cp_diagnostic_starter; +} + |