1 /* Test "ignore redundant include" facility.
3 We must test with C and C++ comments, and null directives, outside
4 the guard conditional; also, we test guarding with #ifndef and #if
5 !defined. -H is used because cpp might confuse the issue by
6 optimizing out #line markers. This test only passes if each of the
7 headers is read exactly once.
9 The disgusting regexp in the dg-error line, when stuck into
10 dg.exp's compiler-output regexp, matches the correct -H output and
11 only the correct -H output. It has to be all on one line because
12 otherwise it will not be interpreted all in one unit. */
16 { dg-message "mi1c\.h\n\[^\n\]*mi1cc\.h\n\[^\n\]*mi1nd\.h\n\[^\n\]*mi1ndp\.h\n\[^\n\]*mi1x\.h" "redundant include check" { target *-*-* } 0 } */