Commit bc65f81f by H.J. Lu Committed by H.J. Lu

Add gcc.target/i386/pr47364-2.c and gcc.dg/torture/pr47364-1.c.

From-SVN: r177488
parent f6d44f20
......@@ -2,6 +2,8 @@
PR middle-end/47364
* gcc.dg/torture/pr47364-1.c: New.
* gcc.target/i386/pr47364-1.c: Likewise.
* gcc.target/i386/pr47364-2.c: Likewise.
2011-08-05 Thomas Koenig <tkoenig@gcc.gnu.org>
......
/* { dg-do run } */
char one[50] = "ijk";
int
main (void)
{
return __builtin_strlen (one) != 3;
}
/* { dg-do compile } */
/* { dg-options "-O2" } */
extern __SIZE_TYPE__ strlen (const char *);
void foo (char *, const char *);
int bar (const char *prefix)
{
char buff[256];
foo (buff, prefix);
return strlen(buff);
}
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