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/] [ssa-ccp-16.c] - Rev 298
Compare with Previous | Blame | View Log
/* { dg-do compile } */ /* { dg-options "-O -fdump-tree-ccp1" } */ static const int x; int test1 (void) { char *p = "hello"; int i = x; i = i + 5; return p[i]; } int test2 (void) { int i = x; i = i + 5; return "hello"[i]; } /* { dg-final { scan-tree-dump-times "return 0;" 2 "ccp1" } } */ /* { dg-final { cleanup-tree-dump "ccp1" } } */