Added an example of an empty case label to avoid confusion.
authorAlexander Kornienko <alexfh@google.com>
Mon, 17 Sep 2012 21:45:21 +0000 (21:45 +0000)
committerAlexander Kornienko <alexfh@google.com>
Mon, 17 Sep 2012 21:45:21 +0000 (21:45 +0000)
llvm-svn: 164055

clang/docs/LanguageExtensions.html

index 79fd3bc..21ac627 100644 (file)
@@ -1582,7 +1582,8 @@ path between it and the next switch label.</p>
 <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();