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

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [gcc.dg/] [cpp/] [if-paren.c] - Rev 12

Compare with Previous | Blame | View Log

/* Copyright (C) 2000 Free Software Foundation, Inc.  */
 
/* { dg-do preprocess } */
 
/* These now use "!=" rather than "<" to increase chance of failure.  */
#if 16 * (1) + 4 != 20
#error		/* { dg-bogus "error" "with paren" } */
#endif
 
#if 16 * 1 + 4 != 20
#error		/* { dg-bogus "error" "without paren" } */
#endif
 
#if ()	        /* { dg-error "expression between" "empty paren" } */
#endif
 
#if (1) == 1
#error		/* { dg-error "error" "simple parens no. 1" } */
#endif
 
#if (2)
#error		/* { dg-error "error" "simple parens no. 2" } */
#endif
 
#if 3 == (3)
#error		/* { dg-error "error" "simple parens no. 3" } */
#endif
 
#if (((-1) + 8)) == ((+2) * ((3)) - -1)
#error		/* { dg-error "error" "nested parentheses" } */
#endif
 

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.