xref: /aosp_15_r20/external/clang/test/CodeGen/2002-01-23-LoadQISIReloadFailure.c (revision 67e74705e28f6214e480b399dd47ea732279e315)
1*67e74705SXin Li // RUN: %clang_cc1 -emit-llvm %s  -o /dev/null
2*67e74705SXin Li 
3*67e74705SXin Li /* Regression test.  Just compile .c -> .ll to test */
foo(void)4*67e74705SXin Li int foo(void) {
5*67e74705SXin Li   unsigned char *pp;
6*67e74705SXin Li   unsigned w_cnt;
7*67e74705SXin Li 
8*67e74705SXin Li   w_cnt += *pp;
9*67e74705SXin Li 
10*67e74705SXin Li   return w_cnt;
11*67e74705SXin Li }
12