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();
+}
+