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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [binary-constants-3.c] - Rev 689

Compare with Previous | Blame | View Log

/* Test for binary integer constants: -pedantic-errors.  */
 
/* Origin: Joerg Wunsch <j.gnu@uriah.heep.sax.de>.  */
/* { dg-do compile } */
/* { dg-options "-std=iso9899:1999 -pedantic-errors" } */
 
#define FOO 0b1101
 
int
foo (void)
{
#if FOO /* { dg-error "binary constants are a GCC extension" } */
  return 23;
#endif
  return 0b1101; /* { dg-error "binary constants are a GCC extension" } */
}
 

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.