re PR testsuite/44518 (objc++ encode-2.mm and encode-3.mm fail on several platforms)

2010-07-03  Iain Sandoe  <iains@gcc.gnu.org>
	    Mikael Pettersson  <mikpe@it.uu.se>

        PR testsuite/44518
	* obj-c++.dg/encode-2.mm: Produce object and save temps.
	Make signed-ness of chars explicit.  Scan the object for
	strings that are split by some target assemblers.
	* obj-c++.dg/encode-3.mm: Make the signed-ness of chars
	explicit.


Co-Authored-By: Mikael Pettersson <mikpe@it.uu.se>

From-SVN: r161769
This commit is contained in:
Iain Sandoe 2010-07-03 08:15:59 +00:00
parent e2cb8da267
commit cb5eb94e1c
3 changed files with 17 additions and 5 deletions

View File

@ -1,3 +1,13 @@
2010-07-03 Iain Sandoe <iains@gcc.gnu.org>
Mikael Pettersson <mikpe@it.uu.se>
PR testsuite/44518
* obj-c++.dg/encode-2.mm: Produce object and save temps.
Make signed-ness of chars explicit. Scan the object for
strings that are split by some target assemblers.
* obj-c++.dg/encode-3.mm: Make the signed-ness of chars
explicit.
2010-07-03 Hans-Peter Nilsson <hp@axis.com>
* gfortran.dg/char_bounds_check_fail_1.f90: Correct dg-output string.

View File

@ -1,4 +1,5 @@
/* { dg-do compile } */
/* { dg-do assemble } */
/* { dg-options "-save-temps" } */
template <class T>
struct Vec {
@ -11,7 +12,7 @@ typedef struct {
Vec<float> fvec;
float fscalar;
double dscalar;
Vec<char> chVec;
Vec<signed char> chVec;
int iscalar;
} anonymous;
@ -23,4 +24,5 @@ const char *enc3 = @encode(anonymous);
/* { dg-final { scan-assembler "{Vec<float>=ffi}" } } */
/* { dg-final { scan-assembler "{Vec<double>=ddi}" } } */
/* { dg-final { scan-assembler "{?={Vec<double>=ddi}{Vec<float>=ffi}fd{Vec<char>=cci}i}" } } */
/* { dg-final { scan-file "encode-2.o" "{?={Vec<double>=ddi}{Vec<float>=ffi}fd{Vec<signed char>=cci}i}" } }
/* { dg-final cleanup-saved-temps } */

View File

@ -18,7 +18,7 @@ typedef struct {
int iscalar;
long z;
long long zz;
Vec<const char> cv;
Vec<const signed char> cv;
} anonymous;
//Vec<double> dd;
@ -44,7 +44,7 @@ int main(void) {
if (strcmp (enc2, "{Vec<double>=dd" L "q}"))
_exit(-(__LINE__));
if (strcmp (enc3, "{?=f[10d]i" L "q{Vec<const char>=rcrc" L "q}}"))
if (strcmp (enc3, "{?=f[10d]i" L "q{Vec<const signed char>=rcrc" L "q}}"))
_exit(-(__LINE__));
return 0;