repo.or.cz
/
mcs.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Reenable AOT, it wasn't enabled on the x86 buildbot anyway.
[mcs.git]
/
tests
/
test-75.cs
blob
a16816cbbf0ae68914949555119ff53f3a85688b
1
//
2
// This test probes using an operator overloaded in a parents' parent
3
//
4
5
class
X
{
6
public static bool
called
=
false
;
7
8
static public
X
operator
+ (
X a
,
X b
)
9
{
10
called
=
true
;
11
return null
;
12
}
13
}
14
15
class
Y
:
X
{
16
}
17
18
class
Z
:
Y
{
19
}
20
21
class
driver
{
22
23
static int
Main
()
24
{
25
Z a
=
new
Z
();
26
Z b
=
new
Z
();
27
X c
=
a
+
b
;
28
29
if
(
X
.
called
)
30
return
0
;
31
32
return
1
;
33
}
34
35
}
36