summaryrefslogtreecommitdiff
path: root/mcs/tests/dtest-012.cs
blob: 137181b0afa150bcc08626c467982caba73e7b49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
using System.Linq;
using System.Runtime.CompilerServices;

public class G<T>
{
}

namespace dynamic
{
	public class C : G<dynamic>
	{
		public static int Main ()
		{
			var da = typeof (C).GetCustomAttributes (typeof (System.Runtime.CompilerServices.DynamicAttribute), false) [0] as DynamicAttribute;
			
			if (!da.TransformFlags.SequenceEqual (new bool[] { false, true }))
				return 1;
			
			return 0;
		}
	}
}