r203027 - [-Wunreachabe-code] add test for double 'break'.
Ted Kremenek
kremenek at apple.com
Wed Mar 5 15:38:44 PST 2014
Author: kremenek
Date: Wed Mar 5 17:38:43 2014
New Revision: 203027
URL: http://llvm.org/viewvc/llvm-project?rev=203027&view=rev
Log:
[-Wunreachabe-code] add test for double 'break'.
Modified:
cfe/trunk/test/Sema/warn-unreachable.c
Modified: cfe/trunk/test/Sema/warn-unreachable.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/warn-unreachable.c?rev=203027&r1=203026&r2=203027&view=diff
==============================================================================
--- cfe/trunk/test/Sema/warn-unreachable.c (original)
+++ cfe/trunk/test/Sema/warn-unreachable.c Wed Mar 5 17:38:43 2014
@@ -161,6 +161,7 @@ int test_break_preceded_by_noreturn(int
break; // expected-warning {{will never be executed}}
default:
break;
+ break; // expected-warning {{will never be executed}}
}
return i;
}
More information about the cfe-commits
mailing list