summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/conditional.c
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2009-11-17 01:22:05 +0000
committerEli Friedman <eli.friedman@gmail.com>2009-11-17 01:22:05 +0000
commitb0bc559b1963e9dc95091baa53ccedbddb02368c (patch)
tree810472ef01bce3d95ad6118530a865865e5917c9 /clang/test/CodeGen/conditional.c
parentaf1ad30a236929de5c300343e0858401619c4bdd (diff)
downloadbcm5719-llvm-b0bc559b1963e9dc95091baa53ccedbddb02368c.tar.gz
bcm5719-llvm-b0bc559b1963e9dc95091baa53ccedbddb02368c.zip
PR5526: Make sure to set the right cast kinds for the inserted implicit casts.
llvm-svn: 89023
Diffstat (limited to 'clang/test/CodeGen/conditional.c')
-rw-r--r--clang/test/CodeGen/conditional.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/test/CodeGen/conditional.c b/clang/test/CodeGen/conditional.c
index 8a30463cb7e..f55d59071a2 100644
--- a/clang/test/CodeGen/conditional.c
+++ b/clang/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();
+}
+
OpenPOWER on IntegriCloud