blob: 1779a99942ea5c61955249f6edf8b566e7490f21 [file] [log] [blame]
Dan Gohman2d65d352009-08-25 15:38:29 +00001// RUN: %llvmgcc -S %s -o - | llvm-as -o /dev/null
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002
3/* Regression test. Just compile .c -> .ll to test */
4int foo(void) {
5 unsigned char *pp;
6 unsigned w_cnt;
7
8 w_cnt += *pp;
9
10 return w_cnt;
11}