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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [cpp/] [if-mpar.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
/* Copyright (C) 2000 Free Software Foundation, Inc.  */
2
 
3
/* Test various combinations of missing parentheses give the correct
4
   missing parenthesis message.  */
5
 
6
/* { dg-do preprocess } */
7
 
8
#if (1          /* { dg-error "missing '\\)'" "missing ')' no. 1" } */
9
#endif
10
 
11
#if 2 * (3 + 4  /* { dg-error "missing '\\)'" "missing ')' no. 2" } */
12
#endif
13
 
14
#if (2))        /* { dg-error "missing '\\('" "missing '(' no. 1" } */
15
#endif
16
 
17
#if )           /* { dg-error "missing '\\('" "missing '(' no. 2" } */
18
#endif
19
 
20
#if 4)          /* { dg-error "missing '\\('" "missing '(' no. 3" } */
21
#endif
22
 
23
#if (           /* { dg-error "missing '\\)'" "missing ')' no. 3" } */
24
#endif

powered by: WebSVN 2.1.0

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