projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
[msbuild] bump to xplat-master branch HEAD
[mono.git]
/
mcs
/
tests
/
gtest-optional-26-lib.cs
1
// Compiler options: -t:library
2
3
using System;
4
using System.Runtime.CompilerServices;
5
6
public class CallerTest
7
{
8
public static int Foo ([CallerMemberName]string arg1 = null, [CallerFilePath] string arg2 = null, [CallerLineNumberAttribute] int arg3 = -1)
9
{
10
if (arg1 == null)
11
return 1;
12
13
if (arg2 == null)
14
return 2;
15
16
if (arg3 == -1)
17
return 3;
18
19
return 0;
20
}
21
}