From b6a7b582ee27aac8c5e104f7ebad272fb620e2d1 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 30 Nov 2007 17:56:23 +0000 Subject: Fix a codegen crash on void ?: reported by Oliver llvm-svn: 44454 --- clang/test/CodeGen/conditional.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'clang/test/CodeGen/conditional.c') diff --git a/clang/test/CodeGen/conditional.c b/clang/test/CodeGen/conditional.c index 57a0be1b105..15359e0c8ac 100644 --- a/clang/test/CodeGen/conditional.c +++ b/clang/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; +} + -- cgit v1.2.3