diff options
author | Chris Lattner <sabre@nondot.org> | 2010-07-01 06:20:47 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-07-01 06:20:47 +0000 |
commit | a9fa85841102e81daaa23650d89b120fe9dacedc (patch) | |
tree | b304a3a717edbf0a419ce980150dbce8b2f89522 /test/CodeGen/decl.c | |
parent | d92ec474faeb6133e0d41f0de4526b22778476f2 (diff) |
fix rdar://8147692 - yet another crash due to my abi work.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@107387 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/decl.c')
-rw-r--r-- | test/CodeGen/decl.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/CodeGen/decl.c b/test/CodeGen/decl.c index dcf120fd88..7a9971ee18 100644 --- a/test/CodeGen/decl.c +++ b/test/CodeGen/decl.c @@ -102,3 +102,18 @@ void init_error(void) { global_dc->x = cp_diagnostic_starter; } + + +// rdar://8147692 - ABI crash in recursive struct-through-function-pointer. +typedef struct { + int x5a; +} x5; + +typedef struct x2 *x0; +typedef long (*x1)(x0 x0a, x5 x6); +struct x2 { + x1 x4; +}; +long x3(x0 x0a, x5 a) { + return x0a->x4(x0a, a); +} |