[llvm-commits] CVS: llvm/test/Regression/CFrontend/2003-11-26-PointerShift.c
Chris Lattner
lattner at cs.uiuc.edu
Wed Nov 26 01:37:01 PST 2003
Changes in directory llvm/test/Regression/CFrontend:
2003-11-26-PointerShift.c added (r1.1)
---
Log message:
Testcase for PR157
---
Diffs of the changes: (+4 -0)
Index: llvm/test/Regression/CFrontend/2003-11-26-PointerShift.c
diff -c /dev/null llvm/test/Regression/CFrontend/2003-11-26-PointerShift.c:1.1
*** /dev/null Wed Nov 26 01:36:03 2003
--- llvm/test/Regression/CFrontend/2003-11-26-PointerShift.c Wed Nov 26 01:35:52 2003
***************
*** 0 ****
--- 1,4 ----
+ unsigned long do_csum(const unsigned char *buff, int len, unsigned long result) {
+ if (2 & (unsigned long) buff) result += 1;
+ return result;
+ }
More information about the llvm-commits
mailing list