URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 309 |
Rev 338 |
/* { dg-do run } */
|
/* { dg-do run } */
|
/* { dg-skip-if "" { *-*-* } { "-fnext-runtime" } { "" } } */
|
/* { dg-skip-if "" { *-*-* } { "-fnext-runtime" } { "" } } */
|
|
|
#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.