[cfe-commits] r164055 - /cfe/trunk/docs/LanguageExtensions.html

Alexander Kornienko alexfh at google.com
Mon Sep 17 14:45:21 PDT 2012


Author: alexfh
Date: Mon Sep 17 16:45:21 2012
New Revision: 164055

URL: http://llvm.org/viewvc/llvm-project?rev=164055&view=rev
Log:
Added an example of an empty case label to avoid confusion.

Modified:
    cfe/trunk/docs/LanguageExtensions.html

Modified: cfe/trunk/docs/LanguageExtensions.html
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/docs/LanguageExtensions.html?rev=164055&r1=164054&r2=164055&view=diff
==============================================================================
--- cfe/trunk/docs/LanguageExtensions.html (original)
+++ cfe/trunk/docs/LanguageExtensions.html Mon Sep 17 16:45:21 2012
@@ -1582,7 +1582,8 @@
 <pre>
 // 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();





More information about the cfe-commits mailing list