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
This commit is contained in:
Mark Mitchell 2009-01-12 21:29:43 +00:00 committed by Nathan Froyd
parent 72114ca181
commit 31ca3fa447
4 changed files with 16 additions and 4 deletions

View File

@ -1,3 +1,9 @@
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>
* g++.dg/other/vararg-3.C: New test.

View File

@ -24,8 +24,10 @@ main ()
if (str.a != res)
abort ();
return str.a;
/* POSIX ignores all but the 8 low-order bits, but other
environments may not. */
return (str.a & 255);
}
/*--------------------------------------------------------------------------*/

View File

@ -25,7 +25,9 @@ main ()
if (str.a != res)
abort ();
return str.a;
/* POSIX ignores all but the 8 low-order bits, but other
environments may not. */
return (str.a & 255);
}
/*--------------------------------------------------------------------------*/

View File

@ -29,7 +29,9 @@ main ()
if (p->a != res)
abort ();
return p->a;
/* POSIX ignores all but the 8 low-order bits, but other
environments may not. */
return (p->a & 255);
}
/*--------------------------------------------------------------------------*/