re PR testsuite/32843 (libffi.call/return_sc.c)

2007-07-26  Richard Guenther  <rguenther@suse.de>

	PR testsuite/32843
	* testsuite/libffi.call/return_sc.c (main): Verify call
	result as signed char, not ffi_arg.

From-SVN: r126950
This commit is contained in:
Richard Guenther 2007-07-26 09:13:58 +00:00 committed by Richard Biener
parent 2b980e3ebc
commit 0ee0208ecc
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2007-07-26 Richard Guenther <rguenther@suse.de>
PR testsuite/32843
* testsuite/libffi.call/return_sc.c (main): Verify call
result as signed char, not ffi_arg.
2007-07-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE> 2007-07-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
* configure.ac (i?86-*-solaris2.1[0-9]): Set TARGET to X86_64. * configure.ac (i?86-*-solaris2.1[0-9]): Set TARGET to X86_64.

View File

@ -30,7 +30,7 @@ int main (void)
sc < (signed char) 127; sc++) sc < (signed char) 127; sc++)
{ {
ffi_call(&cif, FFI_FN(return_sc), &rint, values); ffi_call(&cif, FFI_FN(return_sc), &rint, values);
CHECK(rint == (ffi_arg) sc); CHECK((signed char) rint == sc);
} }
exit(0); exit(0);
} }