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 | 1bc0fed9a52d867b5b4be45283dc1b83a81f4f28 (patch) | |
tree | 121161a0e034c56a79080f4f1368a9fefff37b8b /clang/test/CodeGen/conditional.c | |
parent | 02b6792dd4d0b62e4ea51ea9835edac19ba598c0 (diff) | |
download | bcm5719-llvm-1bc0fed9a52d867b5b4be45283dc1b83a81f4f28.tar.gz bcm5719-llvm-1bc0fed9a52d867b5b4be45283dc1b83a81f4f28.zip |
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
Diffstat (limited to 'clang/test/CodeGen/conditional.c')
-rw-r--r-- | clang/test/CodeGen/conditional.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/test/CodeGen/conditional.c b/clang/test/CodeGen/conditional.c index 15359e0c8ac..24a5aca5778 100644 --- a/clang/test/CodeGen/conditional.c +++ b/clang/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; +} |