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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [20030917-3.c] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O2 -fno-tree-dominator-opts -fdump-tree-store_ccp" } */
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 "store_ccp"} } */
24
/* { dg-final { cleanup-tree-dump "store_ccp" } } */

powered by: WebSVN 2.1.0

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