Add bugs corresponding to PRs 16243 and 16245

From-SVN: r20561
This commit is contained in:
Michael Meissner 1998-06-18 12:13:20 +00:00 committed by Michael Meissner
parent bf3ad13976
commit ce56e6ed02
3 changed files with 86 additions and 0 deletions

View File

@ -1,3 +1,7 @@
Thu Jun 18 15:12:30 1998 Michael Meissner <meissner@cygnus.com>
* execute/980618-{1,2}.c: New tests that showed up m32r bugs.
Fri Jun 5 21:54:26 1997 J"orn Rennecke <amylaar@cygnus.co.uk>
* execute/980605-1.c: New test.

View File

@ -0,0 +1,16 @@
void func(int, int);
int main()
{
int x = 7;
func(!x, !7);
exit (0);
}
void func(int x, int y)
{
if (x == y)
return;
else
abort ();
}

View File

@ -0,0 +1,66 @@
typedef char CHAR;
typedef short SHORT;
typedef int INT;
typedef long LONG;
typedef float FLOAT;
typedef unsigned char UCHAR;
typedef unsigned short USHORT;
typedef unsigned int UINT;
typedef unsigned long ULONG;
typedef double DOUBLE;
#if __STDC__
typedef signed char SCHAR;
typedef long double LDOUBLE;
#endif
int
main ()
{
typedef union
{
CHAR c;
SHORT s;
INT i;
UCHAR uc;
USHORT us;
UINT ui;
LONG l;
ULONG ul;
FLOAT f;
DOUBLE d;
#if __STDC__
SCHAR sc;
LDOUBLE ld;
#endif
}
D;
auto D D1;
D1.c = 7;
{
auto struct
{
CHAR c;
SHORT s;
INT i;
UCHAR uc;
USHORT us;
UINT ui;
LONG l;
ULONG ul;
FLOAT f;
DOUBLE d;
#if __STDC__
SCHAR sc;
LDOUBLE ld;
#endif
}
F;
F.c = 7;
if ((D1.c && F.c) != 1)
abort ();
if ((F.c && D1.c) != 1)
abort ();
}
exit (0);
}