Files
mono/mcs/errors/cs0164.cs
T
Raja R Harinath cd96a466bc 2005-02-07 Abin Thomas (NOSIP) <[email protected]>
Anoob V.E (NOSIP)  <[email protected]>
	    Harilal P.R (NOSIP)  <[email protected]>

	Fix cs0164.cs.
	* statement.cs (LabeledStatement.Resolve): Don't set 'referenced'.
	(LabeledStatement.AddReference): New.  Set 'referenced'.
	(Goto.Resolve): Use it.

svn path=/trunk/mcs/; revision=40239
2005-02-07 14:37:35 +00:00

11 lines
157 B
C#

// cs0164.cs: This label has not been referenced
// Line: 7
// Compiler options: -warnaserror -warn:2
class X {
static void Main () {
a:
return;
}
}