diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2008-02-10 23:18:23 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2008-02-10 23:18:23 +0000 |
commit | de4496bb9ef95ef12d7a72582df95cf64772800a (patch) | |
tree | 8292a198007311f0b1a032c4d4f5949171deeb0f /clang/test/CodeGen/conditional.c | |
parent | fadc8462be24e62e2e58c3dc1d6d0840c22cf876 (diff) | |
download | bcm5719-llvm-de4496bb9ef95ef12d7a72582df95cf64772800a.tar.gz bcm5719-llvm-de4496bb9ef95ef12d7a72582df95cf64772800a.zip |
Basic codegen test for conditional with void*.
llvm-svn: 46940
Diffstat (limited to 'clang/test/CodeGen/conditional.c')
-rw-r--r-- | clang/test/CodeGen/conditional.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/CodeGen/conditional.c b/clang/test/CodeGen/conditional.c index 24a5aca5778..ae442071150 100644 --- a/clang/test/CodeGen/conditional.c +++ b/clang/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; +} |