* testsuite/gcc.c-torture/execute/20020118-1.c: New test.
From-SVN: r48991
This commit is contained in:
parent
8763a46502
commit
072f20ef71
2 changed files with 37 additions and 0 deletions
|
@ -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
|
||||
|
|
33
gcc/testsuite/gcc.c-torture/execute/20020118-1.c
Normal file
33
gcc/testsuite/gcc.c-torture/execute/20020118-1.c
Normal 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);
|
||||
}
|
Loading…
Add table
Reference in a new issue