a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
35 lines
344 B
C#
35 lines
344 B
C#
// CS0165: Use of unassigned local variable `x'
|
|
// Line: 17
|
|
|
|
using System;
|
|
|
|
class Program
|
|
{
|
|
static int Main ()
|
|
{
|
|
int foo = 9;
|
|
int x;
|
|
|
|
switch (foo) {
|
|
case 1:
|
|
x = 1;
|
|
gotoTarget:
|
|
{
|
|
Console.WriteLine (x);
|
|
}
|
|
break;
|
|
default:
|
|
{
|
|
if (foo != 0) {
|
|
goto gotoTarget;
|
|
}
|
|
|
|
break;
|
|
}
|
|
}
|
|
|
|
return 1;
|
|
}
|
|
}
|
|
|