projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[msbuild] Bump msbuild to pick up SDK updates (#5548)
[mono.git]
/
mcs
/
tests
/
test-471.cs
diff --git
a/mcs/tests/test-471.cs
b/mcs/tests/test-471.cs
index 648d7865a81f926fd937025bacfdcefc6937f559..771a8e95be6a4c79a0234c24152b32980ea6277e 100644
(file)
--- a/
mcs/tests/test-471.cs
+++ b/
mcs/tests/test-471.cs
@@
-1,14
+1,26
@@
-// Compiler options: /doc:test-471.xml
-
using System;
using System;
-/// <summary><see cref="AAttribute" /></summary>
-[Obsolete("whatever", true)]
-public class AAttribute : Attribute {
+class AAttribute : Attribute
+{
+ public string Value;
+
+ public AAttribute (string s)
+ {
+ Value = s;
+ }
}
}
-class Demo {
- static void Main ()
+[A (value)]
+class MainClass
+{
+ const string value = null;
+
+ public static int Main ()
{
{
+ var attr = typeof (MainClass).GetCustomAttributes (false) [0] as AAttribute;
+ if (attr.Value != null)
+ return 1;
+
+ return 0;
}
}
-}
+}