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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [cpp/] [if-paren.c] - Blame information for rev 754

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

Line No. Rev Author Line
1 689 jeremybenn
/* Copyright (C) 2000 Free Software Foundation, Inc.  */
2
 
3
/* { dg-do preprocess } */
4
 
5
/* These now use "!=" rather than "<" to increase chance of failure.  */
6
#if 16 * (1) + 4 != 20
7
#error          /* { dg-bogus "error" "with paren" } */
8
#endif
9
 
10
#if 16 * 1 + 4 != 20
11
#error          /* { dg-bogus "error" "without paren" } */
12
#endif
13
 
14
#if ()          /* { dg-error "expression between" "empty paren" } */
15
#endif
16
 
17
#if (1) == 1
18
#error          /* { dg-error "" "simple parens no. 1" } */
19
#endif
20
 
21
#if (2)
22
#error          /* { dg-error "" "simple parens no. 2" } */
23
#endif
24
 
25
#if 3 == (3)
26
#error          /* { dg-error "" "simple parens no. 3" } */
27
#endif
28
 
29
#if (((-1) + 8)) == ((+2) * ((3)) - -1)
30
#error          /* { dg-error "" "nested parentheses" } */
31
#endif

powered by: WebSVN 2.1.0

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