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

Side by Side Diff: gcc/gcc/testsuite/gcc.dg/Wunreachable-7.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, 4 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « gcc/gcc/testsuite/gcc.dg/Wunreachable-6.c ('k') | gcc/gcc/testsuite/gcc.dg/Wunreachable-8.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 /* PR c/11370 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -Wunreachable-code" } */
4
5 extern int printf (const char *, ...);
6 extern void exit (int);
7
8 int main(int argc, char *argv[])
9 {
10 if (argc != 1)
11 exit(1);
12
13 {
14 int ix; /* { dg-bogus "will never be executed" } */
15 ix = printf("hello\n");
16 printf("%d\n", ix);
17 }
18
19 return 0;
20 }
21
OLDNEW
« no previous file with comments | « gcc/gcc/testsuite/gcc.dg/Wunreachable-6.c ('k') | gcc/gcc/testsuite/gcc.dg/Wunreachable-8.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698