diff options
author | Anders Carlsson <andersca@mac.com> | 2008-11-24 05:11:21 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2008-11-24 05:11:21 +0000 |
commit | 338f858b172c72deb9e9ed93e4ef6b30f0995bd5 (patch) | |
tree | 12e2ad17d124b864df0bd231bc758118a0d0c11b | |
parent | 35873c49adad211ff466e34342a52665742794f5 (diff) |
Add test case for bug that's been fixed.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59941 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/CodeGen/PR2413-void-address-cast-error.c | 6 |
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 0000000000..3db2b03f16 --- /dev/null +++ b/test/CodeGen/PR2413-void-address-cast-error.c @@ -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 |