2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / gcc.dg / cpp / macro11.c
blobb131223b932f498a2d7965840ee9d9709dec4894
1 /* Copyright (C) 2001 Free Software Foundation, Inc. */
3 /* { dg-do preprocess } */
5 /* Source: Neil Booth, 2 Oct 2001.
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). */
11 #define foo foo
12 #undef foo
13 #define foo 1
14 #if !foo
15 #error foo still disabled!
16 #endif