summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kornienko <alexfh@google.com>2012-09-17 21:45:21 +0000
committerAlexander Kornienko <alexfh@google.com>2012-09-17 21:45:21 +0000
commitf90e2435ba8e4a6ad6db34daa54bd8fcd0910c54 (patch)
tree099a369b1d7194a65fbd2b394c26c0ce56fc65f3
parent2d4c10fc4962ec0bba20966be3f2d490cdbe914e (diff)
downloadbcm5719-llvm-f90e2435ba8e4a6ad6db34daa54bd8fcd0910c54.tar.gz
bcm5719-llvm-f90e2435ba8e4a6ad6db34daa54bd8fcd0910c54.zip
Added an example of an empty case label to avoid confusion.
llvm-svn: 164055
-rw-r--r--clang/docs/LanguageExtensions.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/docs/LanguageExtensions.html b/clang/docs/LanguageExtensions.html
index 79fd3bcbcd9..21ac6277122 100644
--- a/clang/docs/LanguageExtensions.html
+++ b/clang/docs/LanguageExtensions.html
@@ -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();
OpenPOWER on IntegriCloud