20001009-1.c: New testcase.
* gcc.c-torture/compile/20001009-1.c: New testcase. * gcc.c-torture/execute/20001009-1.c: New testcase. Testcases provided by Jan Hubicka <jh@suse.cz>. From-SVN: r36814
This commit is contained in:
parent
880c4dcbb8
commit
80c0f62c94
@ -1,3 +1,9 @@
|
|||||||
|
2000-10-09 Geoff Keating <geoffk@cygnus.com>
|
||||||
|
|
||||||
|
* gcc.c-torture/compile/20001009-1.c: New testcase.
|
||||||
|
* gcc.c-torture/execute/20001009-1.c: New testcase.
|
||||||
|
Testcases provided by Jan Hubicka <jh@suse.cz>.
|
||||||
|
|
||||||
2000-10-08 Joseph S. Myers <jsm28@cam.ac.uk>
|
2000-10-08 Joseph S. Myers <jsm28@cam.ac.uk>
|
||||||
|
|
||||||
* gcc.dg/c99-printf-1.c, gcc.dg/c99-scanf-1.c,
|
* gcc.dg/c99-printf-1.c, gcc.dg/c99-scanf-1.c,
|
||||||
|
16
gcc/testsuite/gcc.c-torture/compile/20001009-1.c
Normal file
16
gcc/testsuite/gcc.c-torture/compile/20001009-1.c
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
int b=1;
|
||||||
|
main()
|
||||||
|
{
|
||||||
|
int a;
|
||||||
|
int c;
|
||||||
|
a=0xff;
|
||||||
|
for (;b;b--)
|
||||||
|
{
|
||||||
|
c=1;
|
||||||
|
asm(""::"r"(c));
|
||||||
|
c=(char)a;
|
||||||
|
}
|
||||||
|
if (c!=-1)
|
||||||
|
abort();
|
||||||
|
return c;
|
||||||
|
}
|
12
gcc/testsuite/gcc.c-torture/execute/20001009-1.c
Normal file
12
gcc/testsuite/gcc.c-torture/execute/20001009-1.c
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
int a,b;
|
||||||
|
main()
|
||||||
|
{
|
||||||
|
int c=-2;
|
||||||
|
int d=0xfe;
|
||||||
|
int e=a&1;
|
||||||
|
int f=b&2;
|
||||||
|
if ((char)(c|(e&f)) == (char)d)
|
||||||
|
return 0;
|
||||||
|
else
|
||||||
|
abort();
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user