* testsuite/gcc.c-torture/execute/20020118-1.c: New test.

From-SVN: r48991
This commit is contained in:
Kazu Hirata 2002-01-18 17:21:40 +00:00 committed by Kazu Hirata
parent 8763a46502
commit 072f20ef71
2 changed files with 37 additions and 0 deletions

View file

@ -1,3 +1,7 @@
2002-01-18 Kazu Hirata <kazu@hxi.com>
* testsuite/gcc.c-torture/execute/20020118-1.c: New test.
2001-01-18 David Billinghurst <David.Billinghurst@riotinto.com>
* g++.dg/other/deprecated.C: Fix FAIL from

View file

@ -0,0 +1,33 @@
/* This tests an insn length of sign extention on h8300 port. */
extern void exit (int);
volatile signed char *q;
volatile signed int n;
void
foo (void)
{
signed char *p;
for (;;)
{
p = (signed char *) q; n = p[2];
p = (signed char *) q; n = p[2];
p = (signed char *) q; n = p[2];
p = (signed char *) q; n = p[2];
p = (signed char *) q; n = p[2];
p = (signed char *) q; n = p[2];
p = (signed char *) q; n = p[2];
p = (signed char *) q; n = p[2];
p = (signed char *) q; n = p[2];
p = (signed char *) q; n = p[2];
p = (signed char *) q; n = p[2];
}
}
int
main ()
{
exit (0);
}