2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / gcc.dg / cpp / syshdr.c
blobf36df3e326ca1321cac3fadbce7e2eea590598cb
1 /* Test for proper suppression of warnings in system headers,
2 and only in system headers. */
3 /* FRAGILITY WARNING: The only way we have to distinguish the good error
4 from the bad error is that the good error is on line 4 and the bad is
5 on line 5 (of their respective files). dg.exp doesn't have any way to
6 condition error matchers on the file they're in. */
8 /* { dg-do preprocess } */
9 /* { dg-error "include_next" "good error" { target *-*-* } 4 } */
11 #include "syshdr1.h" /* { dg-error "" "In file included from:" } */
12 #include "syshdr2.h"