For Yufeng Zhang - Fix typos and errors in testcase.

From-SVN: r171958
This commit is contained in:
Yufeng Zhang 2011-04-04 23:15:55 +00:00 committed by Ramana Radhakrishnan
parent f56e5112f0
commit 69387b92c1
2 changed files with 13 additions and 5 deletions

View File

@ -1,3 +1,9 @@
2011-04-04 Yufeng Zhang <yufeng.zhang@arm.com>
* g++.dg/abi/arm_cxa_vec1.C (__ARM_EABI__): Fix typo.
(cctor): Actually return the value.
(main): Cast return values.
2010-04-04 Thomas Koenig <tkoenig@gcc.gnu.org>
* gfortran.dg/character_comparison_8.f90: New test.

View File

@ -3,10 +3,12 @@
#include <cxxabi.h>
#ifdef ___ARM_EABI__
static void cctor (void * a, void * b)
#ifdef __ARM_EABI__
using namespace __cxxabiv1;
static __cxa_cdtor_return_type cctor (void * a, void * b)
{
*(char *) a = *(char *) b
*(char *) a = *(char *) b;
return a;
}
int main()
@ -15,10 +17,10 @@ int main()
char data2;
char *p;
p = __cxa_vec_ctor (&data, 1, 1, NULL, NULL);
p = (char *) __cxa_vec_ctor (&data, 1, 1, NULL, NULL);
if (p != &data)
return 1;
p = __cxa_vec_cctor (&data2, &data, 1, 1, cctor, NULL);
p = (char *) __cxa_vec_cctor (&data2, &data, 1, 1, cctor, NULL);
if (p != &data2)
return 1;