commit | 307da025e684622f5c0c530c03a5cd5615ce3eb6 | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Fri Nov 30 17:56:23 2007 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Fri Nov 30 17:56:23 2007 +0000 |
tree | 99baa6f1553eda7239be17c35d2c9a182cae34c9 | |
parent | 860c6c9725e6dfc735151a7e8b0780bacdd15e49 [diff] [blame] |
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
diff --git a/test/CodeGen/conditional.c b/test/CodeGen/conditional.c index 57a0be1..15359e0 100644 --- a/test/CodeGen/conditional.c +++ b/test/CodeGen/conditional.c
@@ -8,3 +8,10 @@ { return cond ? a : b; } + +void f(); + +void test3(){ + 1 ? f() : (void)0; +} +