Merge pull request #5675 from mono/glib-debug-symbols
[mono.git] / mcs / tests / gtest-415.cs
1 using System;
2
3 class Foo
4 {
5         public static int Main ()
6         {
7                 if (Bar (1))
8                         return 1;
9
10                 if (!Bar (IntPtr.Zero))
11                         return 2;
12
13                 return 0;
14         }
15
16         static bool Bar<T> (T val) where T : struct
17         {
18                 return val is IntPtr;
19         }
20 }