Commit 11b6985e by Andreas Jaeger

* gcc.dg/tree-ssa/ssa-pre-14.c (foo): Use correct type for strlen.

From-SVN: r100194
parent 36b72d8d
2005-05-26 Andreas Jaeger <aj@suse.de>
* gcc.dg/tree-ssa/ssa-pre-14.c (foo): Use correct type for strlen.
2005-05-26 Thomas Koenig <Thomas.Koenig@online.de>
PR libfortran/17283
......
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-optimized" } */
extern unsigned int strlen (const char *) __attribute__ ((__pure__));
extern __SIZE_TYPE__ strlen (const char *) __attribute__ ((__pure__));
void
foo (const char *str)
{
unsigned int a = strlen (str);
unsigned int b = strlen (str);
__SIZE_TYPE__ a = strlen (str);
__SIZE_TYPE__ b = strlen (str);
if (a != b)
link_error ();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment