[cfe-commits] r59941 - /cfe/trunk/test/CodeGen/PR2413-void-address-cast-error.c

Anders Carlsson andersca at mac.com
Sun Nov 23 21:11:21 PST 2008


Author: andersca
Date: Sun Nov 23 23:11:21 2008
New Revision: 59941

URL: http://llvm.org/viewvc/llvm-project?rev=59941&view=rev
Log:
Add test case for bug that's been fixed.

Added:
    cfe/trunk/test/CodeGen/PR2413-void-address-cast-error.c

Added: cfe/trunk/test/CodeGen/PR2413-void-address-cast-error.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/PR2413-void-address-cast-error.c?rev=59941&view=auto

==============================================================================
--- cfe/trunk/test/CodeGen/PR2413-void-address-cast-error.c (added)
+++ cfe/trunk/test/CodeGen/PR2413-void-address-cast-error.c Sun Nov 23 23:11:21 2008
@@ -0,0 +1,6 @@
+// RUN: clang -emit-llvm %s -o -
+void f()
+{
+        void *addr;
+        addr = (void *)( ((long int)addr + 7L) );
+}
\ No newline at end of file





More information about the cfe-commits mailing list