]> granicus.if.org Git - clang/commitdiff
Add test case for bug that's been fixed.
authorAnders Carlsson <andersca@mac.com>
Mon, 24 Nov 2008 05:11:21 +0000 (05:11 +0000)
committerAnders Carlsson <andersca@mac.com>
Mon, 24 Nov 2008 05:11:21 +0000 (05:11 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59941 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/PR2413-void-address-cast-error.c [new file with mode: 0644]

diff --git a/test/CodeGen/PR2413-void-address-cast-error.c b/test/CodeGen/PR2413-void-address-cast-error.c
new file mode 100644 (file)
index 0000000..3db2b03
--- /dev/null
@@ -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