From: Alexander Kornienko Date: Mon, 17 Sep 2012 21:45:21 +0000 (+0000) Subject: Added an example of an empty case label to avoid confusion. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9d8c9d345a41b782943fd84fe20e9ebd3c568c5d;p=clang Added an example of an empty case label to avoid confusion. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@164055 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/docs/LanguageExtensions.html b/docs/LanguageExtensions.html index 79fd3bcbcd..21ac627712 100644 --- a/docs/LanguageExtensions.html +++ b/docs/LanguageExtensions.html @@ -1582,7 +1582,8 @@ path between it and the next switch label.

 // compile with -Wimplicit-fallthrough
 switch (n) {
-case 33:
+case 22:
+case 33:  // no warning: no statements between case labels
   f();
 case 44:  // warning: unannotated fall-through
   g();