Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Unified Diff: gcc/gcc/testsuite/gcc.dg/Wunreachable-1.c

Issue 3050029: [gcc] GCC 4.5.0=>4.5.1 (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/nacl-toolchain.git
Patch Set: Created 10 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gcc/gcc/testsuite/gcc.dg/Wswitch-enum-error.c ('k') | gcc/gcc/testsuite/gcc.dg/Wunreachable-5.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gcc/gcc/testsuite/gcc.dg/Wunreachable-1.c
diff --git a/gcc/gcc/testsuite/gcc.dg/Wunreachable-1.c b/gcc/gcc/testsuite/gcc.dg/Wunreachable-1.c
deleted file mode 100644
index d6d59b481aaca261f5b17da179c6878b894a2ccf..0000000000000000000000000000000000000000
--- a/gcc/gcc/testsuite/gcc.dg/Wunreachable-1.c
+++ /dev/null
@@ -1,24 +0,0 @@
-/* { dg-do compile } */
-/* { dg-options "-O2 -Wunreachable-code" } */
-
-extern void foo (void);
-extern void baz (void);
-
-void bar (int i)
-{
- if (i < 2)
- {
- baz ();
- return;
- }
- else
- {
- if (i >= 4 && i <= 5)
- foo ();
- return;
- }
-
- baz (); /* { dg-warning "will never be executed" "" } */
- baz ();
- baz ();
-}
« no previous file with comments | « gcc/gcc/testsuite/gcc.dg/Wswitch-enum-error.c ('k') | gcc/gcc/testsuite/gcc.dg/Wunreachable-5.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698