1/* 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 18