diff options
author | Chris Lattner <sabre@nondot.org> | 2010-06-29 17:56:33 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-06-29 17:56:33 +0000 |
commit | 376fe5e7800dface235c5382b39d77790d39dfa7 (patch) | |
tree | f08a5432a0abd075d681e8d8f10be8941a9cd156 /test/CodeGen/decl.c | |
parent | 6699220f73f11e471b5e5aa42eaf064afeaa079e (diff) |
fix PR7519: after thrashing around and remembering how all this stuff
works, the fix is quite simple: just make sure to call ConvertTypeRecursive
when the function type being lowered is in the midst of ConvertType.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@107173 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; +} + |