projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #4998 from kumpera/fix_56684
[mono.git]
/
mono
/
tests
/
custom-attr-errors.cs
diff --git
a/mono/tests/custom-attr-errors.cs
b/mono/tests/custom-attr-errors.cs
index 83f3ff71c297047f73fa0fa50fc1ee9d8e9bced4..7d0c812357d15c0c999445db9baeca94b97cb31f 100644
(file)
--- a/
mono/tests/custom-attr-errors.cs
+++ b/
mono/tests/custom-attr-errors.cs
@@
-1,6
+1,9
@@
using System;
using System.Reflection;
using System;
using System.Reflection;
+// this for test_0_missing_attr_on_assembly
+[assembly: MissingAttribute]
+
public sealed class MyAttribute : Attribute
{
public Type Type { get; set; }
public sealed class MyAttribute : Attribute
{
public Type Type { get; set; }
@@
-45,6
+48,15
@@
public class Bar {}
class Tests {
class Tests {
+ public static int test_0_missing_attr_on_assembly () {
+ try {
+ Assembly.GetExecutingAssembly().GetCustomAttributes (false);
+ return 1;
+ } catch (TypeLoadException exn) {
+ return 0;
+ }
+ }
+
[My3 (new object[] { DisappearingEnum.V0 })]
public static int test_0_missing_enum_arg_alt3 () {
try {
[My3 (new object[] { DisappearingEnum.V0 })]
public static int test_0_missing_enum_arg_alt3 () {
try {