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
2007-05-25 Jonathan Chambers <joncham@gmail.com>
[mcs.git]
/
tests
/
test-516.cs
blob
dde3fa3ece05e5e9309e58e3022472507da142e5
1
// Compiler options: -warnaserror -warn:2
2
3
// Same as test-515, but we're checking that there's no "unreachable code" warning either
4
5
class
X
{
6
static void
Main
()
7
{
8
int
i
=
0
;
9
goto
a
;
10
b
:
11
if
(++
i
>
1
)
12
throw new
System
.
Exception
(
"infloop!!!"
);
13
return
;
14
a
:
15
goto
b
;
16
}
17
}