commit | 1bc0fed9a52d867b5b4be45283dc1b83a81f4f28 | [log] [tgz] |
---|---|---|
author | Eli Friedman <eli.friedman@gmail.com> | Wed Jan 30 17:02:03 2008 +0000 |
committer | Eli Friedman <eli.friedman@gmail.com> | Wed Jan 30 17:02:03 2008 +0000 |
tree | 121161a0e034c56a79080f4f1368a9fefff37b8b | |
parent | 02b6792dd4d0b62e4ea51ea9835edac19ba598c0 [diff] [blame] |
Fix codegen for conditionals with incommpatible pointer types. Code that causes this isn't really correct, but if we're going to accept this, it should come up with a consistent AST. llvm-svn: 46557
diff --git a/clang/test/CodeGen/conditional.c b/clang/test/CodeGen/conditional.c index 15359e0..24a5aca 100644 --- a/clang/test/CodeGen/conditional.c +++ b/clang/test/CodeGen/conditional.c
@@ -15,3 +15,7 @@ 1 ? f() : (void)0; } +void test4() { +int i; short j; +float* k = 1 ? &i : &j; +}