diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 6c6f1d089ce..6da1f96ef4a 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,13 @@ +2010-07-03 Iain Sandoe + Mikael Pettersson + + 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 * gfortran.dg/char_bounds_check_fail_1.f90: Correct dg-output string. diff --git a/gcc/testsuite/obj-c++.dg/encode-2.mm b/gcc/testsuite/obj-c++.dg/encode-2.mm index cfa9bc783e3..157bb526700 100644 --- a/gcc/testsuite/obj-c++.dg/encode-2.mm +++ b/gcc/testsuite/obj-c++.dg/encode-2.mm @@ -1,4 +1,5 @@ -/* { dg-do compile } */ +/* { dg-do assemble } */ +/* { dg-options "-save-temps" } */ template struct Vec { @@ -11,7 +12,7 @@ typedef struct { Vec fvec; float fscalar; double dscalar; - Vec chVec; + Vec chVec; int iscalar; } anonymous; @@ -23,4 +24,5 @@ const char *enc3 = @encode(anonymous); /* { dg-final { scan-assembler "{Vec=ffi}" } } */ /* { dg-final { scan-assembler "{Vec=ddi}" } } */ -/* { dg-final { scan-assembler "{?={Vec=ddi}{Vec=ffi}fd{Vec=cci}i}" } } */ +/* { dg-final { scan-file "encode-2.o" "{?={Vec=ddi}{Vec=ffi}fd{Vec=cci}i}" } } +/* { dg-final cleanup-saved-temps } */ diff --git a/gcc/testsuite/obj-c++.dg/encode-3.mm b/gcc/testsuite/obj-c++.dg/encode-3.mm index 05193ae2c2f..8627a773e25 100644 --- a/gcc/testsuite/obj-c++.dg/encode-3.mm +++ b/gcc/testsuite/obj-c++.dg/encode-3.mm @@ -18,7 +18,7 @@ typedef struct { int iscalar; long z; long long zz; - Vec cv; + Vec cv; } anonymous; //Vec dd; @@ -44,7 +44,7 @@ int main(void) { if (strcmp (enc2, "{Vec=dd" L "q}")) _exit(-(__LINE__)); - if (strcmp (enc3, "{?=f[10d]i" L "q{Vec=rcrc" L "q}}")) + if (strcmp (enc3, "{?=f[10d]i" L "q{Vec=rcrc" L "q}}")) _exit(-(__LINE__)); return 0;