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 | ab1e65e2ea5fb18d4a867ee76e94666bef82bfd5 (patch) | |
tree | 2719d49d450a2de8ff95c64d81ce53b9dc3f1054 /clang/test/CodeGen/decl.c | |
parent | cdf87024edb7d178cf8878f0f55f02fd2dab24b6 (diff) | |
download | bcm5719-llvm-ab1e65e2ea5fb18d4a867ee76e94666bef82bfd5.tar.gz bcm5719-llvm-ab1e65e2ea5fb18d4a867ee76e94666bef82bfd5.zip |
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
Diffstat (limited to 'clang/test/CodeGen/decl.c')
-rw-r--r-- | clang/test/CodeGen/decl.c | 13 |
1 files changed, 13 insertions, 0 deletions
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; +} + |