diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2009-11-17 01:22:05 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2009-11-17 01:22:05 +0000 |
commit | 16fea9b2e5888443a6e2f96b397c92d3f6710ee8 (patch) | |
tree | d01a59320152535c1fd9d936bc7eea239b8cb7d9 /test/CodeGen/conditional.c | |
parent | fa1a06e80706846fa15e0bd44671bdc3dfc53d84 (diff) |
PR5526: Make sure to set the right cast kinds for the inserted implicit casts.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89023 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/conditional.c')
-rw-r--r-- | test/CodeGen/conditional.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CodeGen/conditional.c b/test/CodeGen/conditional.c index 8a30463cb7..f55d59071a 100644 --- a/test/CodeGen/conditional.c +++ b/test/CodeGen/conditional.c @@ -39,3 +39,11 @@ void _php_stream_free3() { void _php_stream_free4() { 1 ? _efree(0) : free(0); } + +// PR5526 +struct test9 { int a; }; +void* test9spare(); +void test9(struct test9 *p) { + p ? p : test9spare(); +} + |