summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-02-13 20:35:17 +0000
committerChris Lattner <sabre@nondot.org>2002-02-13 20:35:17 +0000
commit50ce08e6afdacd24326f4de98b1ea99579013aca (patch)
treee59483fb81b75f6608fa43d0d2f1f1dfd74d9bd6
parent8996df4a7e46eca6dc598e6ee8ecdec92963252a (diff)
downloadbcm5719-llvm-50ce08e6afdacd24326f4de98b1ea99579013aca.tar.gz
bcm5719-llvm-50ce08e6afdacd24326f4de98b1ea99579013aca.zip
Checking testcase for reload problem
llvm-svn: 1752
-rw-r--r--llvm/test/Regression/CFrontend/2002-02-13-ReloadProblem.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/llvm/test/Regression/CFrontend/2002-02-13-ReloadProblem.c b/llvm/test/Regression/CFrontend/2002-02-13-ReloadProblem.c
new file mode 100644
index 00000000000..52eef78f4a0
--- /dev/null
+++ b/llvm/test/Regression/CFrontend/2002-02-13-ReloadProblem.c
@@ -0,0 +1,16 @@
+/* This triggered a problem in reload, fixed by disabling most of the
+ * steps of compilation in GCC. Before this change, the code went through
+ * the entire backend of GCC, even though it was unneccesary for LLVM output
+ * now it is skipped entirely, and since reload doesn't run, it can't cause
+ * a problem.
+ */
+
+extern int tolower(int);
+
+const char *rangematch(const char *pattern, int test, int c) {
+
+ if ((c <= test) | (tolower(c) <= tolower((unsigned char)test)))
+ return 0;
+
+ return pattern;
+}
OpenPOWER on IntegriCloud