ICU-2626 test for \u0075 parsing

X-SVN-Rev: 10819
diff --git a/icu4c/source/test/cintltst/creststn.c b/icu4c/source/test/cintltst/creststn.c
index 71367b9..23941ae 100644
--- a/icu4c/source/test/cintltst/creststn.c
+++ b/icu4c/source/test/cintltst/creststn.c
@@ -503,6 +503,20 @@
             log_err("Did not get the expected string for test_underscores.\n");
         }
     }
+	/* test for jitterbug#2626 */
+	{
+		UResourceBundle* resB = NULL;
+		const UChar* str  = NULL;
+		int32_t strLength = 0;
+		const UChar my[] = {0x0026,0x0027,0x0075,0x0027,0x0020,0x003d,0x0020,0x0027,0xff55,0x0027,0x0000}; /* &'\u0075' = '\uFF55' */
+		status = U_ZERO_ERROR;
+		resB = ures_getByKey(theBundle,"CollationElements", resB,&status);
+		str  = ures_getStringByKey(resB,"Sequence",&strLength,&status);
+		if(u_strcmp(my,str) != 0){
+			log_err("Did not get te expeted string for escaped \\u0075\n");
+		}
+		ures_close(resB);
+	}
     ures_close(res);
     ures_close(theBundle);
 
diff --git a/icu4c/source/test/testdata/testtypes.txt b/icu4c/source/test/testdata/testtypes.txt
index 4e5e84c..3afaff4 100644
--- a/icu4c/source/test/testdata/testtypes.txt
+++ b/icu4c/source/test/testdata/testtypes.txt
@@ -30,6 +30,15 @@
     {
     }
     testescape{ "tab:\t cr:\r ff:\f newline:\n backslash:\\\\ quote=\\\' doubleQuote=\\\" singlequoutes=''" }
+    
+    // Genrb failed parsing \u0075 sequence this tests it 
+    CollationElements{
+	Version{"x01"}
+	Sequence{ 
+		       "&'\u0075' = '\uFF55'" // LATIN SMALL LETTER U
+		}
+    }
+    
     string{ }
     stringTable{{}}
     //nested table