diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2008-01-30 17:02:03 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2008-01-30 17:02:03 +0000 |
commit | b1284ace14b7eb3cc206a3285e743861ab1a4773 (patch) | |
tree | ce24ad0d3a73a3fd4a548477dbfe117143f3f895 /test/CodeGen/conditional.c | |
parent | 01e3c9e06db9ba5729272879c2c9c4659354e707 (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@46557 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/conditional.c')
-rw-r--r-- | test/CodeGen/conditional.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/CodeGen/conditional.c b/test/CodeGen/conditional.c index 15359e0c8a..24a5aca577 100644 --- a/test/CodeGen/conditional.c +++ b/test/CodeGen/conditional.c @@ -15,3 +15,7 @@ void test3(){ 1 ? f() : (void)0; } +void test4() { +int i; short j; +float* k = 1 ? &i : &j; +} |