From a94035bbb86ff5b239df7dcf6e7abe45852ea3d6 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 31 Jan 2008 04:12:50 +0000 Subject: Fix PR1921 by promoting negative indices to intptrty. llvm-svn: 46599 --- clang/test/CodeGen/exprs.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'clang/test/CodeGen/exprs.c') diff --git a/clang/test/CodeGen/exprs.c b/clang/test/CodeGen/exprs.c index 91153691733..16b63f8883b 100644 --- a/clang/test/CodeGen/exprs.c +++ b/clang/test/CodeGen/exprs.c @@ -17,3 +17,9 @@ void *test(int *i) { _Bool test2b; int test2() {if (test2b);} +// PR1921 +int test3() { + const unsigned char *bp; + bp -= (short)1; +} + -- cgit v1.2.3