commit | b0bc559b1963e9dc95091baa53ccedbddb02368c | [log] [tgz] |
---|---|---|
author | Eli Friedman <eli.friedman@gmail.com> | Tue Nov 17 01:22:05 2009 +0000 |
committer | Eli Friedman <eli.friedman@gmail.com> | Tue Nov 17 01:22:05 2009 +0000 |
tree | 810472ef01bce3d95ad6118530a865865e5917c9 | |
parent | af1ad30a236929de5c300343e0858401619c4bdd [diff] [blame] |
PR5526: Make sure to set the right cast kinds for the inserted implicit casts. llvm-svn: 89023
diff --git a/clang/test/CodeGen/conditional.c b/clang/test/CodeGen/conditional.c index 8a30463..f55d590 100644 --- a/clang/test/CodeGen/conditional.c +++ b/clang/test/CodeGen/conditional.c
@@ -39,3 +39,11 @@ void _php_stream_free4() { 1 ? _efree(0) : free(0); } + +// PR5526 +struct test9 { int a; }; +void* test9spare(); +void test9(struct test9 *p) { + p ? p : test9spare(); +} +