]> granicus.if.org Git - clang/commitdiff
Basic codegen test for conditional with void*.
authorEli Friedman <eli.friedman@gmail.com>
Sun, 10 Feb 2008 23:18:23 +0000 (23:18 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Sun, 10 Feb 2008 23:18:23 +0000 (23:18 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@46940 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/conditional.c

index 24a5aca57781a937ca3d409b93071cd60b19de65..ae4420711502dbf4a29ccbb36bfaf94cbf5973e3 100644 (file)
@@ -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;
+}