aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/conditional.c
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-11-30 17:56:23 +0000
committerChris Lattner <sabre@nondot.org>2007-11-30 17:56:23 +0000
commit2202bce80fc72d067cbe67dc1512f7b45351fd31 (patch)
tree99baa6f1553eda7239be17c35d2c9a182cae34c9 /test/CodeGen/conditional.c
parentc69a5810f4a39f4af204e4843b497033ec6f12bf (diff)
Fix a codegen crash on void ?: reported by Oliver
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44454 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/conditional.c')
-rw-r--r--test/CodeGen/conditional.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/CodeGen/conditional.c b/test/CodeGen/conditional.c
index 57a0be1b10..15359e0c8a 100644
--- a/test/CodeGen/conditional.c
+++ b/test/CodeGen/conditional.c
@@ -8,3 +8,10 @@ double test2(int cond, float a, double b)
{
return cond ? a : b;
}
+
+void f();
+
+void test3(){
+ 1 ? f() : (void)0;
+}
+