gcc/testsuite/c-c++-common/cpp/dir-only-3.c
raw| 1 | /* Copyright 2007 Free Software Foundation, Inc. |
| 2 | Contributed by Ollie Wild <[email protected]>. */ |
| 3 | |
| 4 | /* { dg-do preprocess } */ |
| 5 | /* { dg-options "-fdirectives-only -H" } */ |
| 6 | /* { dg-message "dir-only-3a\.h\n\[^\n\]*dir-only-3b\.h\n\[^\n\]*dir-only-3a\.h\n" "include guard check" { target *-*-* } 0 } */ |
| 7 | |
| 8 | /* Tests include guards. */ |
| 9 | |
| 10 | #include "dir-only-3a.h" |
| 11 | #include "dir-only-3b.h" |
| 12 | #include "dir-only-3b.h" |
| 13 | #include "dir-only-3a.h" |