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:
parent
e2cb8da267
commit
cb5eb94e1c
@ -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>
|
2010-07-03 Hans-Peter Nilsson <hp@axis.com>
|
||||||
|
|
||||||
* gfortran.dg/char_bounds_check_fail_1.f90: Correct dg-output string.
|
* gfortran.dg/char_bounds_check_fail_1.f90: Correct dg-output string.
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
/* { dg-do compile } */
|
/* { dg-do assemble } */
|
||||||
|
/* { dg-options "-save-temps" } */
|
||||||
|
|
||||||
template <class T>
|
template <class T>
|
||||||
struct Vec {
|
struct Vec {
|
||||||
@ -11,7 +12,7 @@ typedef struct {
|
|||||||
Vec<float> fvec;
|
Vec<float> fvec;
|
||||||
float fscalar;
|
float fscalar;
|
||||||
double dscalar;
|
double dscalar;
|
||||||
Vec<char> chVec;
|
Vec<signed char> chVec;
|
||||||
int iscalar;
|
int iscalar;
|
||||||
} anonymous;
|
} anonymous;
|
||||||
|
|
||||||
@ -23,4 +24,5 @@ const char *enc3 = @encode(anonymous);
|
|||||||
|
|
||||||
/* { dg-final { scan-assembler "{Vec<float>=ffi}" } } */
|
/* { dg-final { scan-assembler "{Vec<float>=ffi}" } } */
|
||||||
/* { dg-final { scan-assembler "{Vec<double>=ddi}" } } */
|
/* { 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 } */
|
||||||
|
@ -18,7 +18,7 @@ typedef struct {
|
|||||||
int iscalar;
|
int iscalar;
|
||||||
long z;
|
long z;
|
||||||
long long zz;
|
long long zz;
|
||||||
Vec<const char> cv;
|
Vec<const signed char> cv;
|
||||||
} anonymous;
|
} anonymous;
|
||||||
|
|
||||||
//Vec<double> dd;
|
//Vec<double> dd;
|
||||||
@ -44,7 +44,7 @@ int main(void) {
|
|||||||
if (strcmp (enc2, "{Vec<double>=dd" L "q}"))
|
if (strcmp (enc2, "{Vec<double>=dd" L "q}"))
|
||||||
_exit(-(__LINE__));
|
_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__));
|
_exit(-(__LINE__));
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user