Commit ce56e6ed by Michael Meissner Committed by Michael Meissner

Add bugs corresponding to PRs 16243 and 16245

From-SVN: r20561
parent bf3ad139
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.
......
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 ();
}
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);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment