1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -emit-llvm %s -o - 2*f4a2713aSLionel Sambuc // PR1662 3*f4a2713aSLionel Sambuc foo(unsigned char * test)4*f4a2713aSLionel Sambucint foo(unsigned char *test) { 5*f4a2713aSLionel Sambuc return 0U - (unsigned int )test; 6*f4a2713aSLionel Sambuc } 7*f4a2713aSLionel Sambuc 8