gcc/testsuite/gcc.dg/cpp/import1.c
raw| 1 | /* Copyright (C) 2003, 2008 Free Software Foundation, Inc. */ |
| 2 | |
| 3 | /* { dg-do preprocess } */ |
| 4 | /* { dg-options "-Wno-deprecated" } */ |
| 5 | |
| 6 | /* This tests that our eagerness to apply the multiple include guard |
| 7 | optimization to the #import doesn't stop us marking the file |
| 8 | once-only. |
| 9 | |
| 10 | Neil Booth, 2 August 2003. */ |
| 11 | |
| 12 | #include "import1.h" |
| 13 | #import "import1.h" |
| 14 | #undef IMPORT1_H |
| 15 | #define BUG |
| 16 | #include "import1.h" |