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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [cpp/] [if-mpar.c] - Rev 801

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

/* Copyright (C) 2000 Free Software Foundation, Inc.  */
 
/* Test various combinations of missing parentheses give the correct
   missing parenthesis message.  */
 
/* { dg-do preprocess } */
#if (1          /* { dg-error "5:missing '\\)'" "missing ')' no. 1" } */
#endif
 
#if 2 * (3 + 4	/* { dg-error "9:missing '\\)'" "missing ')' no. 2" } */
#endif
 
#if (2))	/* { dg-error "8:missing '\\('" "missing '(' no. 1" } */
#endif
 
#if )		/* { dg-error "5:missing '\\('" "missing '(' no. 2" } */
#endif
 
#if 4)		/* { dg-error "6:missing '\\('" "missing '(' no. 3" } */
#endif
 
#if (		/* { dg-error "5:missing '\\)'" "missing ')' no. 3" } */
#endif
 
#if ((2 + 3) + 5 /* { dg-error "5:missing '\\)'" "missing ')' no. 3" } */
#endif
 
#if ((2 + 3 + 5 /* { dg-error "6:missing '\\)'" "missing ')' no. 3" } */
#endif
 

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.