1*67e74705SXin Li // RUN: %clang_cc1 -emit-llvm %s -o /dev/null 2*67e74705SXin Li 3*67e74705SXin Li /* This triggered a problem in reload, fixed by disabling most of the 4*67e74705SXin Li * steps of compilation in GCC. Before this change, the code went through 5*67e74705SXin Li * the entire backend of GCC, even though it was unnecessary for LLVM output 6*67e74705SXin Li * now it is skipped entirely, and since reload doesn't run, it can't cause 7*67e74705SXin Li * a problem. 8*67e74705SXin Li */ 9*67e74705SXin Li 10*67e74705SXin Li extern int tolower(int); 11*67e74705SXin Li rangematch(const char * pattern,int test,int c)12*67e74705SXin Liconst char *rangematch(const char *pattern, int test, int c) { 13*67e74705SXin Li 14*67e74705SXin Li if ((c <= test) | (tolower(c) <= tolower((unsigned char)test))) 15*67e74705SXin Li return 0; 16*67e74705SXin Li 17*67e74705SXin Li return pattern; 18*67e74705SXin Li } 19