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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 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
#if (1          /* { dg-error "5:missing '\\)'" "missing ')' no. 1" } */
8
#endif
9
 
10
#if 2 * (3 + 4  /* { dg-error "9:missing '\\)'" "missing ')' no. 2" } */
11
#endif
12
 
13
#if (2))        /* { dg-error "8:missing '\\('" "missing '(' no. 1" } */
14
#endif
15
 
16
#if )           /* { dg-error "5:missing '\\('" "missing '(' no. 2" } */
17
#endif
18
 
19
#if 4)          /* { dg-error "6:missing '\\('" "missing '(' no. 3" } */
20
#endif
21
 
22
#if (           /* { dg-error "5:missing '\\)'" "missing ')' no. 3" } */
23
#endif
24
 
25
#if ((2 + 3) + 5 /* { dg-error "5:missing '\\)'" "missing ')' no. 3" } */
26
#endif
27
 
28
#if ((2 + 3 + 5 /* { dg-error "6:missing '\\)'" "missing ')' no. 3" } */
29
#endif

powered by: WebSVN 2.1.0

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