Added test: "testcasebreak"

This commit is contained in:
Daniel Marjamäki 2007-07-26 06:15:10 +00:00
parent ae8a914832
commit e82ac787c6
3 changed files with 14 additions and 0 deletions

0
testcasebreak/err.msg Normal file
View File

View File

@ -0,0 +1,13 @@
void f()
{
switch (a)
{
case 1:
case 2:
break;
}
}

1
testcasebreak/warn.msg Normal file
View File

@ -0,0 +1 @@
[testcasebreak\testcasebreak.cpp:9]: Possible bug. 'case' without 'break'.