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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [cpp/] [if-mop.c] - Blame information for rev 327

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

Line No. Rev Author Line
1 298 jeremybenn
/* Copyright (C) 2000 Free Software Foundation, Inc.  */
2
 
3
/* { dg-do preprocess } */
4
 
5
/* Source: Neil Booth.  */
6
 
7
/* Various illegal expressions with missing components.  */
8
 
9
#if             /* { dg-error "no expression" "empty #if" } */
10
#endif
11
 
12
#if ~           /* { dg-error "no right op" "no unary operand" } */
13
#endif
14
 
15
#if 3 + * 6 + 4  /* { dg-error "no right op" "no right operand" } */
16
#endif
17
 
18
#if 2 ~2        /* { dg-error "missing bin" "no binary operator" } */
19
#endif
20
 
21
#if 1 + 2 (3)   /* { dg-error "missing bin" "immediate then open paren" } */
22
#endif
23
 
24
#if (2) 4 * 2  /* { dg-error "missing bin" "close paren then immediate" } */
25
#endif
26
 
27
#if == 2  /* { dg-error "no left op" } */
28
#endif
29
 
30
#if (==2)  /* { dg-error "no left op" } */
31
#endif

powered by: WebSVN 2.1.0

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