diff options
author | Chris Lattner <sabre@nondot.org> | 2007-11-30 17:56:23 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-11-30 17:56:23 +0000 |
commit | b6a7b582ee27aac8c5e104f7ebad272fb620e2d1 (patch) | |
tree | aef3e37d4faad4f4fd619973c31f209635df2586 /clang/test/CodeGen/conditional.c | |
parent | aa0b570dfbce32ec47500f923a7b7683d3667dec (diff) | |
download | bcm5719-llvm-b6a7b582ee27aac8c5e104f7ebad272fb620e2d1.tar.gz bcm5719-llvm-b6a7b582ee27aac8c5e104f7ebad272fb620e2d1.zip |
Fix a codegen crash on void ?: reported by Oliver
llvm-svn: 44454
Diffstat (limited to 'clang/test/CodeGen/conditional.c')
-rw-r--r-- | clang/test/CodeGen/conditional.c | 7 |
1 files changed, 7 insertions, 0 deletions
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; +} + |