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/] [ssa-pre-14.c] - Rev 154
Go to most recent revision | Compare with Previous | Blame | View Log
/* { dg-do compile } */ /* { dg-options "-O2 -fdump-tree-optimized" } */ extern __SIZE_TYPE__ strlen (const char *) __attribute__ ((__pure__)); void foo (const char *str) { __SIZE_TYPE__ a = strlen (str); __SIZE_TYPE__ b = strlen (str); if (a != b) link_error (); } /* { dg-final { scan-tree-dump-times "link_error" 0 "optimized"} } */ /* { dg-final { cleanup-tree-dump "optimized" } } */
Go to most recent revision | Compare with Previous | Blame | View Log