Commit 31ca3fa4 by Mark Mitchell Committed by Nathan Froyd

wo_prof_single_str_global.c: Mask return value.

	* gcc.dg/struct/wo_prof_single_str_global.c: Mask return value.
	* gcc.dg/struct/wo_prof_single_str_local.c: Mask return value.
	* gcc.dg/struct/wo_prof_single_str_pointer.c: Mask return value.

From-SVN: r143309
parent 72114ca1
2009-01-12 Mark Mitchell <mark@codesourcery.com>
* gcc.dg/struct/wo_prof_single_str_global.c: Mask return value.
* gcc.dg/struct/wo_prof_single_str_local.c: Mask return value.
* gcc.dg/struct/wo_prof_single_str_pointer.c: Mask return value.
2009-01-12 Jason Merrill <jason@redhat.com> 2009-01-12 Jason Merrill <jason@redhat.com>
* g++.dg/other/vararg-3.C: New test. * g++.dg/other/vararg-3.C: New test.
......
...@@ -24,8 +24,10 @@ main () ...@@ -24,8 +24,10 @@ main ()
if (str.a != res) if (str.a != res)
abort (); abort ();
return str.a; /* POSIX ignores all but the 8 low-order bits, but other
environments may not. */
return (str.a & 255);
} }
/*--------------------------------------------------------------------------*/ /*--------------------------------------------------------------------------*/
......
...@@ -25,7 +25,9 @@ main () ...@@ -25,7 +25,9 @@ main ()
if (str.a != res) if (str.a != res)
abort (); abort ();
return str.a; /* POSIX ignores all but the 8 low-order bits, but other
environments may not. */
return (str.a & 255);
} }
/*--------------------------------------------------------------------------*/ /*--------------------------------------------------------------------------*/
......
...@@ -29,7 +29,9 @@ main () ...@@ -29,7 +29,9 @@ main ()
if (p->a != res) if (p->a != res)
abort (); abort ();
return p->a; /* POSIX ignores all but the 8 low-order bits, but other
environments may not. */
return (p->a & 255);
} }
/*--------------------------------------------------------------------------*/ /*--------------------------------------------------------------------------*/
......
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