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

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

Line No. Rev Author Line
1 689 jeremybenn
/* Test for binary integer constants: -pedantic-errors.  */
2
 
3
/* Origin: Joerg Wunsch <j.gnu@uriah.heep.sax.de>.  */
4
/* { dg-do compile } */
5
/* { dg-options "-std=iso9899:1999 -pedantic-errors" } */
6
 
7
#define FOO 0b1101
8
 
9
int
10
foo (void)
11
{
12
#if FOO /* { dg-error "binary constants are a GCC extension" } */
13
  return 23;
14
#endif
15
  return 0b1101; /* { dg-error "binary constants are a GCC extension" } */
16
}

powered by: WebSVN 2.1.0

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