summaryrefslogtreecommitdiff
path: root/clang/test/CodeGen/2007-09-14-NegatePointer.c
blob: 52367e6c667b770f09689a03e0791a284ec6d0a7 (about) (plain)
1
2
3
4
5
6
7
// RUN: %clang_cc1 -emit-llvm %s -o - 
// PR1662

int foo(unsigned char *test) {
  return 0U - (unsigned int )test;
}