aboutsummaryrefslogtreecommitdiff
path: root/clang/test/CodeGen/pointer-arithmetic.c
diff options
context:
space:
mode:
authorSeo Sanghyeon <sanxiyn@gmail.com>2007-12-26 05:21:37 +0000
committerSeo Sanghyeon <sanxiyn@gmail.com>2007-12-26 05:21:37 +0000
commitacb00f4a73f2ff4e5020b01eb9fbb06defc2612b (patch)
tree3c53656e27ab634bab6ed12ea449f050e67e0642 /clang/test/CodeGen/pointer-arithmetic.c
parentd89e645c38a52da6de2915e2b18b870fcdabc460 (diff)
downloadllvm-acb00f4a73f2ff4e5020b01eb9fbb06defc2612b.zip
llvm-acb00f4a73f2ff4e5020b01eb9fbb06defc2612b.tar.gz
llvm-acb00f4a73f2ff4e5020b01eb9fbb06defc2612b.tar.bz2
Remove broken assert from CodeGen. Better check is done in Sema.
llvm-svn: 45358
Diffstat (limited to 'clang/test/CodeGen/pointer-arithmetic.c')
-rw-r--r--clang/test/CodeGen/pointer-arithmetic.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/test/CodeGen/pointer-arithmetic.c b/clang/test/CodeGen/pointer-arithmetic.c
index 6c644c6..6b4de91 100644
--- a/clang/test/CodeGen/pointer-arithmetic.c
+++ b/clang/test/CodeGen/pointer-arithmetic.c
@@ -3,3 +3,5 @@
typedef int Int;
int test1(int *a, Int *b) { return a - b; }
+
+int test2(const char *a, char *b) { return b - a; }