brintos

brintos / llvm-project-archived public Read only

0
0
Text · 557 B · da7f5e4 Raw
19 lines · c
1// RUN: %clang_cc1 -emit-llvm %s  -o /dev/null2 3/* This triggered a problem in reload, fixed by disabling most of the 4 * steps of compilation in GCC.  Before this change, the code went through5 * the entire backend of GCC, even though it was unnecessary for LLVM output6 * now it is skipped entirely, and since reload doesn't run, it can't cause7 * a problem.8 */9 10extern int tolower(int);11 12const char *rangematch(const char *pattern, int test, int c) {13 14  if ((c <= test) | (tolower(c) <= tolower((unsigned char)test)))15    return 0;16 17  return pattern;18}19