blob: a2d5de1d680bf3c9ba0bc9416bec6204c8e430d9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
//
// test-181.cs: Test whenever mcs correctly handles the MethodImplAttributes
// custom attribute.
//
using System;
using System.Reflection;
using System.Runtime.CompilerServices;
class Test
{
[MethodImplAttribute(MethodImplOptions.Synchronized)]
public void test ()
{
}
static public int Main ()
{
MethodImplAttributes iflags = typeof (Test).GetMethod ("test").GetMethodImplementationFlags ();
return ((iflags & MethodImplAttributes.Synchronized) != 0 ? 0 : 1);
}
}
|