diff --git a/testcasebreak/err.msg b/testcasebreak/err.msg new file mode 100644 index 000000000..e69de29bb diff --git a/testcasebreak/testcasebreak.cpp b/testcasebreak/testcasebreak.cpp new file mode 100644 index 000000000..e7b60e09f --- /dev/null +++ b/testcasebreak/testcasebreak.cpp @@ -0,0 +1,13 @@ + + + +void f() +{ + + switch (a) + { + case 1: + case 2: + break; + } +} \ No newline at end of file diff --git a/testcasebreak/warn.msg b/testcasebreak/warn.msg new file mode 100644 index 000000000..78cb549fd --- /dev/null +++ b/testcasebreak/warn.msg @@ -0,0 +1 @@ +[testcasebreak\testcasebreak.cpp:9]: Possible bug. 'case' without 'break'.