OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [Wunreachable-6.c] - Blame information for rev 455

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
/* PR c/11370  */
2
/* { dg-do compile } */
3
/* { dg-options "-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
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.