aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/c-c++-common/cpp/noheaderguard.c
blob: 3e6fd876f1be94d56c3172f7de63a7355520ba3a (plain)
1
2
3
4
5
6
7
8
9
/* { dg-do preprocess }  */
/* { dg-additional-options -fno-header-guard-opt }  */
/* Check header guard optimization is disabled.  */

#include "noheaderguard-b.h"
#include "noheaderguard-b.h"
#include "noheaderguard-a.h"

/* { dg-final { scan-file noheaderguard.i {# [0-9]* "[^\n]*noheaderguard.c"\n\n*# [0-9]* "[^\n]*noheaderguard-b.h" 1\n\n*# [0-9]* "[^\n]*noheaderguard-a.h" 1\n\n*# [0-9]* "[^\n]*noheaderguard-b.h" 2\n\n*# [0-9]* "[^\n]*noheaderguard.c" 2\n\n*# [0-9]* "[^\n]*noheaderguard-b.h" 1\n\n*# [0-9]* "[^\n]*noheaderguard.c" 2\n\n*# [0-9]* "[^\n]*noheaderguard-a.h" 1\n\n*# [0-9]* "[^\n]*noheaderguard.c" 2\n} } } */