commit | de4496bb9ef95ef12d7a72582df95cf64772800a | [log] [tgz] |
---|---|---|
author | Eli Friedman <eli.friedman@gmail.com> | Sun Feb 10 23:18:23 2008 +0000 |
committer | Eli Friedman <eli.friedman@gmail.com> | Sun Feb 10 23:18:23 2008 +0000 |
tree | 8292a198007311f0b1a032c4d4f5949171deeb0f | |
parent | fadc8462be24e62e2e58c3dc1d6d0840c22cf876 [diff] [blame] |
Basic codegen test for conditional with void*. llvm-svn: 46940
diff --git a/clang/test/CodeGen/conditional.c b/clang/test/CodeGen/conditional.c index 24a5aca..ae44207 100644 --- a/clang/test/CodeGen/conditional.c +++ b/clang/test/CodeGen/conditional.c
@@ -19,3 +19,9 @@ int i; short j; float* k = 1 ? &i : &j; } + +void test5() { + const int* cip; + void* vp; + cip = 0 ? vp : cip; +}