+2008-04-24 Raja R Harinath <harinath@hurrynot.org>
+
+ * test-120.cs: Ensure we don't get falsely optimized out of the
+ AnsiClass check. Also, ensure that only one of AnsiClass,
+ AutoClass or UnicodeClass is set.
+
2008-04-07 Marek Safar <marek.safar@gmail.com>
* Makefile: Enabled IL regressions check for gmcs profile.
int errors = 0;
Type t = typeof (MyUnicode);
- if ((t.Attributes & TypeAttributes.UnicodeClass) != TypeAttributes.UnicodeClass){
+ if ((t.Attributes & TypeAttributes.StringFormatMask) != TypeAttributes.UnicodeClass){
Console.WriteLine ("Class MyUnicode does not have Unicode bit set");
errors += 1;
}
t = typeof (MyAuto);
- if ((t.Attributes & TypeAttributes.AutoClass) != TypeAttributes.AutoClass){
+ if ((t.Attributes & TypeAttributes.StringFormatMask) != TypeAttributes.AutoClass){
Console.WriteLine ("Class MyAuto does not have Auto bit set");
errors += 2;
}
t = typeof (MyAnsi);
- if ((t.Attributes & TypeAttributes.AnsiClass) != TypeAttributes.AnsiClass){
+ if ((t.Attributes & TypeAttributes.StringFormatMask) != TypeAttributes.AnsiClass){
Console.WriteLine ("Class MyUnicode does not have Ansi bit set");
errors += 4;
}