From ab1e65e2ea5fb18d4a867ee76e94666bef82bfd5 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 29 Jun 2010 17:56:33 +0000 Subject: 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. llvm-svn: 107173 --- clang/test/CodeGen/decl.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'clang/test/CodeGen/decl.c') diff --git a/clang/test/CodeGen/decl.c b/clang/test/CodeGen/decl.c index 7ffb7006b05..dcf120fd88a 100644 --- a/clang/test/CodeGen/decl.c +++ b/clang/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; +} + -- cgit v1.2.3