Merge pull request #5675 from mono/glib-debug-symbols
[mono.git] / mcs / tests / gtest-optional-24.cs
1 using System;
2 using System.Runtime.CompilerServices;
3 using System.IO;
4
5 class CallerFilePathTest
6 {
7         static void TraceStatic2([CallerMemberName][CallerFilePath] object fp = null)
8         {
9         }
10         
11         public static void TraceStatic(string expected, [CallerFilePath] string filepath = "--")
12         {
13                 filepath = Path.GetFileName (filepath);
14
15                 Console.WriteLine (filepath);
16                 
17                 if (expected != filepath)
18                         throw new ApplicationException (string.Format ("`{0}' !=  `{1}'", expected, filepath));
19         }
20         
21         public static void Main ()
22         {
23                 TraceStatic ("gtest-optional-24.cs");
24                 TraceStatic2 ();
25         }
26 }