From 68f624e9eb2d80b2e5c1a51471a76782cb1bc70b Mon Sep 17 00:00:00 2001 From: Eli Friedman Date: Sun, 10 Feb 2008 23:18:23 +0000 Subject: [PATCH] Basic codegen test for conditional with void*. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@46940 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGen/conditional.c | 6 ++++++ 1 file changed, 6 insertions(+) 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; +} -- 2.40.0