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] - Blame information for rev 867

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

Line No. Rev Author Line
1 149 jeremybenn
/* Check that sizeof(bool) is 1 if we use the -mone-byte-bool option. */
2
/* Matt Austern  <austern@apple.com> */
3
/* { dg-do run { target powerpc*-*-darwin* } } */
4
/* { dg-options "-mone-byte-bool" } */
5
 
6
int dummy1[sizeof(_Bool)];
7
int dummy2[2 - sizeof(_Bool)];
8
 
9
int main()
10
{
11
  return sizeof(_Bool) == 1 ? 0 : 1;
12
}

powered by: WebSVN 2.1.0

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