OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.target/] [powerpc/] [darwin-bool-2.c] - Rev 154

Go to most recent revision | Compare with Previous | Blame | View Log

/* Check that sizeof(bool) is 1 if we use the -mone-byte-bool option. */
/* Matt Austern  <austern@apple.com> */
/* { dg-do run { target powerpc*-*-darwin* } } */
/* { dg-options "-mone-byte-bool" } */
 
int dummy1[sizeof(_Bool)];
int dummy2[2 - sizeof(_Bool)];
 
int main()
{
  return sizeof(_Bool) == 1 ? 0 : 1;
}
 

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.