New testcase, distilled from ed-0.2
[oota-llvm.git] / test / CFrontend / 2002-02-13-ReloadProblem.c
1 /* This triggered a problem in reload, fixed by disabling most of the 
2  * steps of compilation in GCC.  Before this change, the code went through
3  * the entire backend of GCC, even though it was unnecessary for LLVM output
4  * now it is skipped entirely, and since reload doesn't run, it can't cause
5  * a problem.
6  */
7
8 extern int tolower(int);
9
10 const char *rangematch(const char *pattern, int test, int c) {
11
12   if ((c <= test) | (tolower(c) <= tolower((unsigned char)test)))
13     return 0;
14
15   return pattern;
16 }