summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/PR2413-void-address-cast-error.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/PR2413-void-address-cast-error.c')
-rw-r--r--test/CodeGen/PR2413-void-address-cast-error.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/CodeGen/PR2413-void-address-cast-error.c b/test/CodeGen/PR2413-void-address-cast-error.c
new file mode 100644
index 0000000..95a4c6d
--- /dev/null
+++ b/test/CodeGen/PR2413-void-address-cast-error.c
@@ -0,0 +1,6 @@
+// RUN: clang-cc -emit-llvm %s -o -
+void f()
+{
+ void *addr;
+ addr = (void *)( ((long int)addr + 7L) );
+}
OpenPOWER on IntegriCloud