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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [cpp/] [truefalse.C] - Blame information for rev 856

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

Line No. Rev Author Line
1 149 jeremybenn
/* Copyright (C) 2003 Free Software Foundation, Inc.  */
2
 
3
/* Source: Neil Booth, 18 Apr 2003.  */
4
 
5
/* { dg-do preprocess } */
6
/* { dg-options "-ansi -pedantic -Wundef" } */
7
 
8
/* Check that for C++ we handle true and false correctly, and do not
9
   treat them as undefined identifiers.  */
10
 
11
#if true                /* { dg-bogus "is not defined" } */
12
#error foo              /* { dg-error "foo" } */
13
#endif
14
 
15
#if false               /* { dg-bogus "is not defined" } */
16
#error foo              /* { dg-bogus "foo" } */
17
#endif

powered by: WebSVN 2.1.0

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