URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [abi/] [arm_cxa_vec1.C] - Rev 320
Go to most recent revision | Compare with Previous | Blame | View Log
// Check that __cxa_vec_[c]ctor returns a pointer to the array
// { dg-do run { target arm*-*-* } }
#include <cxxabi.h>
#ifdef ___ARM_EABI__
static void cctor (void * a, void * b)
{
*(char *) a = *(char *) b
}
int main()
{
char data;
char data2;
char *p;
p = __cxa_vec_ctor (&data, 1, 1, NULL, NULL);
if (p != &data)
return 1;
p = __cxa_vec_cctor (&data2, &data, 1, 1, cctor, NULL);
if (p != &data2)
return 1;
return 0;
}
#else
int main()
{
return 0;
}
#endif
Go to most recent revision | Compare with Previous | Blame | View Log