linux-packaging-mono/mcs/tests/gtest-optional-26-lib.cs
Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

21 lines
378 B
C#

// Compiler options: -t:library
using System;
using System.Runtime.CompilerServices;
public class CallerTest
{
public static int Foo ([CallerMemberName]string arg1 = null, [CallerFilePath] string arg2 = null, [CallerLineNumberAttribute] int arg3 = -1)
{
if (arg1 == null)
return 1;
if (arg2 == null)
return 2;
if (arg3 == -1)
return 3;
return 0;
}
}