llvm-project/llvm/test/FrontendC/2003-11-26-PointerShift.c

7 lines
201 B
C
Raw Normal View History

2004-11-07 06:41:00 +08:00
// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
2003-11-26 15:35:52 +08:00
unsigned long do_csum(const unsigned char *buff, int len, unsigned long result) {
if (2 & (unsigned long) buff) result += 1;
return result;
}