OSDN Git Service

2005-02-15 Eric Christopher <echristo@redhat.com>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / cpp / macro11.c
1 /* Copyright (C) 2001 Free Software Foundation, Inc.  */
2
3 /* { dg-do preprocess } */
4
5 /* Source: Neil Booth, 2 Oct 2001.
6
7    Tests that we clear the disabled flag that is set by the
8    macro-defined-to-itself optimization (the optimization might not be
9    worth it).  */
10
11 #define foo foo
12 #undef foo
13 #define foo 1
14 #if !foo
15 #error foo still disabled! 
16 #endif