blob: 2ae97b72276b343a3c6a28ce48df11f4d5d670c0 [file] [log] [blame]
Dan Gohmanfea1dd02009-08-25 15:38:29 +00001// RUN: %llvmgcc -S %s -o - | llvm-as -o /dev/null
Tanya Lattnere9af5d12004-11-06 22:41:00 +00002
Chris Lattnerb3cd2c12002-02-13 20:35:17 +00003/* This triggered a problem in reload, fixed by disabling most of the
4 * steps of compilation in GCC. Before this change, the code went through
Misha Brukman5560c9d2003-08-18 14:43:39 +00005 * the entire backend of GCC, even though it was unnecessary for LLVM output
Chris Lattnerb3cd2c12002-02-13 20:35:17 +00006 * now it is skipped entirely, and since reload doesn't run, it can't cause
7 * 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}