URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 149 |
Rev 154 |
/* { dg-options "-fgnu-runtime" } */
|
/* { dg-options "-fgnu-runtime" } */
|
/* { dg-do run } */
|
/* { dg-do run } */
|
|
|
#include <objc/encoding.h>
|
#include <objc/encoding.h>
|
#include <stdlib.h>
|
#include <stdlib.h>
|
|
|
union f
|
union f
|
{
|
{
|
char i;
|
char i;
|
double f1;
|
double f1;
|
short t;
|
short t;
|
};
|
};
|
|
|
union g
|
union g
|
{
|
{
|
int i;
|
int i;
|
};
|
};
|
|
|
|
|
int main(void)
|
int main(void)
|
{
|
{
|
if (objc_sizeof_type (@encode (union f)) != sizeof(union f))
|
if (objc_sizeof_type (@encode (union f)) != sizeof(union f))
|
abort ();
|
abort ();
|
if (objc_alignof_type (@encode (union f)) != __alignof__(union f))
|
if (objc_alignof_type (@encode (union f)) != __alignof__(union f))
|
abort ();
|
abort ();
|
if (objc_sizeof_type (@encode (union g)) != sizeof(union g))
|
if (objc_sizeof_type (@encode (union g)) != sizeof(union g))
|
abort ();
|
abort ();
|
if (objc_alignof_type (@encode (union g)) != __alignof__(union g))
|
if (objc_alignof_type (@encode (union g)) != __alignof__(union g))
|
abort ();
|
abort ();
|
return 0;
|
return 0;
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.