URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 322 |
Rev 338 |
/* Check that sizeof(bool) is 1 if we use the -mone-byte-bool option. */
|
/* Check that sizeof(bool) is 1 if we use the -mone-byte-bool option. */
|
/* Matt Austern <austern@apple.com> */
|
/* Matt Austern <austern@apple.com> */
|
/* { dg-do run { target powerpc*-*-darwin* } } */
|
/* { dg-do run { target powerpc*-*-darwin* } } */
|
/* { dg-options "-mone-byte-bool" } */
|
/* { dg-options "-mone-byte-bool" } */
|
|
|
int dummy1[sizeof(_Bool)];
|
int dummy1[sizeof(_Bool)];
|
int dummy2[2 - sizeof(_Bool)];
|
int dummy2[2 - sizeof(_Bool)];
|
|
|
int main()
|
int main()
|
{
|
{
|
return sizeof(_Bool) == 1 ? 0 : 1;
|
return sizeof(_Bool) == 1 ? 0 : 1;
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.