projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Added another testcase.
[mono.git]
/
mcs
/
errors
/
error-3.cs
1
using System;
2
3
struct A
4
{
5
public int a;
6
private long b;
7
private float c;
8
9
public A (int foo)
10
// CS0171
11
{
12
a = foo;
13
// CS0170
14
b = (long) c;
15
}
16
}
17
18
class X
19
{
20
// CS0177
21
static void test1 (out A a)
22
{
23
a.a = 5;
24
}
25
26
static void test_output (A a)
27
{
28
}
29
30
static void test2 ()
31
{
32
A a;
33
34
// CS0165
35
test_output (a);
36
}
37
38
static void test3 ()
39
{
40
A a;
41
42
a.a = 5;
43
// CS0165
44
test_output (a);
45
}
46
47
static void test4 ()
48
{
49
A a;
50
51
// CS0170
52
Console.WriteLine (a.a);
53
}
54
55
static void test5 (out A a)
56
{
57
test_output (a);
58
a = new A (5);
59
}
60
61
public static int Main ()
62
{
63
// Compilation-only test.
64
return 0;
65
}
66
}