* gcc.c-torture/execute/980617-1.c: New test.
From-SVN: r20546
This commit is contained in:
parent
7d12cee1f1
commit
77f194c299
2 changed files with 18 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
|||
Wed Jun 17 18:53:12 1998 Jeffrey A Law (law@cygnus.com)
|
||||
|
||||
* gcc.c-torture/execute/980617-1.c: New test.
|
||||
|
||||
Fri Jun 12 01:08:49 1998 Jeffrey A Law (law@cygnus.com)
|
||||
|
||||
* gcc.c-torture/execute/980612-1.c: New test.
|
||||
|
|
14
gcc/testsuite/gcc.c-torture/execute/980617-1.c
Normal file
14
gcc/testsuite/gcc.c-torture/execute/980617-1.c
Normal file
|
@ -0,0 +1,14 @@
|
|||
void foo (unsigned int * p)
|
||||
{
|
||||
if ((signed char)(*p & 0xFF) == 17 || (signed char)(*p & 0xFF) == 18)
|
||||
return;
|
||||
else
|
||||
abort ();
|
||||
}
|
||||
|
||||
int main ()
|
||||
{
|
||||
int i = 0x30011;
|
||||
foo(&i);
|
||||
exit (0);
|
||||
}
|
Loading…
Add table
Reference in a new issue