OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [cpp/] [digraph2.c] - Blame information for rev 404

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 compile } */
4
/* { dg-options "-std=c89" } */
5
 
6
/* Just simple check that digraphs are not on in c89, for both
7
   preprocessor and compiler.  digraphs.c is the general test.  */
8
 
9
int main (int argc, char *argv[])
10
{
11
  return 0;
12
%>                              /* { dg-error "parse error|syntax error|expected" } */
13
 
14
/* Place this after main () so we get to test both the compiler above
15
   and the preprocessor below.  */
16
%:define glue                   /* { dg-error "expected declaration" } */
17
#ifdef glue
18
#error glue is defined!
19
#endif

powered by: WebSVN 2.1.0

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