summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/cpp/dir-only-3.c
blob: e6eaa018096281a5be47b9c8ed98f343e4557f98 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* Copyright 2007 Free Software Foundation, Inc.
   Contributed by Ollie Wild <aaw@google.com>.  */

/* { dg-do preprocess } */
/* { dg-options "-fdirectives-only -H" } */
/* { dg-message "dir-only-3a\.h\n\[^\n\]*dir-only-3b\.h\n\[^\n\]*dir-only-3a\.h\n" "include guard check" { target *-*-* } 0 } */

/* Tests include guards. */

#include "dir-only-3a.h"
#include "dir-only-3b.h"
#include "dir-only-3b.h"
#include "dir-only-3a.h"