projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bringing C5 1.0 into the main branch.
[mono.git]
/
mcs
/
tests
/
test-297.cs
diff --git
a/mcs/tests/test-297.cs
b/mcs/tests/test-297.cs
index 993a6ba521a153bf9555260b32d98ee14825d71d..26a487a17a559640031387c928648384c0878eb6 100644
(file)
--- a/
mcs/tests/test-297.cs
+++ b/
mcs/tests/test-297.cs
@@
-26,8
+26,17
@@
class T {
return 5;
}
return 5;
}
+
+ object[] ats = typeof(T).GetMethod("Login").GetCustomAttributes (typeof(My), true);
+ My at = (My) ats[0];
+ if (at.Val != AnEnum.a)
+ return 6;
+
return 0;
}
return 0;
}
+
+ [My(1, Val=AnEnum.a)]
+ public void Login(string a) {}
}
[AttributeUsage(AttributeTargets.All,AllowMultiple=true)]
}
[AttributeUsage(AttributeTargets.All,AllowMultiple=true)]
@@
-36,4
+45,12
@@
class My : Attribute {
public My (object o) {
obj = o;
}
public My (object o) {
obj = o;
}
+
+ public AnEnum Val;
}
}
+
+public enum AnEnum
+{
+ a,b,c
+}
+