From: Eli Friedman Date: Sun, 10 Feb 2008 23:18:23 +0000 (+0000) Subject: Basic codegen test for conditional with void*. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=68f624e9eb2d80b2e5c1a51471a76782cb1bc70b;p=clang Basic codegen test for conditional with void*. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@46940 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CodeGen/conditional.c b/test/CodeGen/conditional.c index 24a5aca577..ae44207115 100644 --- a/test/CodeGen/conditional.c +++ b/test/CodeGen/conditional.c @@ -19,3 +19,9 @@ void test4() { int i; short j; float* k = 1 ? &i : &j; } + +void test5() { + const int* cip; + void* vp; + cip = 0 ? vp : cip; +}