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:
Geoff Keating 2000-10-09 20:34:02 +00:00 committed by Geoffrey Keating
parent 880c4dcbb8
commit 80c0f62c94
3 changed files with 34 additions and 0 deletions

View File

@ -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>
* gcc.dg/c99-printf-1.c, gcc.dg/c99-scanf-1.c,

View 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;
}

View 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();
}