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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [20030917-3.c] - Blame information for rev 298

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O -fdump-tree-ccp1" } */
3
 
4
extern int printf (const char *, ...);
5
 
6
main ()
7
{
8
  int variable = 0;
9
  int p = 1;
10
  while (1)
11
    {
12
      if (p)
13
        break;
14
      variable = variable + 1;
15
      if (variable == 10)
16
        break;
17
    }
18
  printf("%d\n", variable);
19
}
20
 
21
 
22
/* The argument to "printf" should be a constant, not a variable.  */
23
/* { dg-final { scan-tree-dump-times "printf.*, 0" 1 "ccp1"} } */
24
/* { dg-final { cleanup-tree-dump "ccp1" } } */

powered by: WebSVN 2.1.0

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