diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/cpp')
-rw-r--r-- | gcc/testsuite/gcc.dg/cpp/inc/pragma-once-1a.h | 6 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/cpp/pragma-once-1.c | 8 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/cpp/pragma-once-1b.h | 8 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/cpp/pragma-once-1c.h | 6 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/cpp/pragma-once-1d.h | 6 |
5 files changed, 34 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/cpp/inc/pragma-once-1a.h b/gcc/testsuite/gcc.dg/cpp/inc/pragma-once-1a.h new file mode 100644 index 00000000000..7de64121662 --- /dev/null +++ b/gcc/testsuite/gcc.dg/cpp/inc/pragma-once-1a.h @@ -0,0 +1,6 @@ +#ifndef _A_H_ +#define _A_H_ + +#include "../pragma-once-1b.h" + +#endif diff --git a/gcc/testsuite/gcc.dg/cpp/pragma-once-1.c b/gcc/testsuite/gcc.dg/cpp/pragma-once-1.c new file mode 100644 index 00000000000..23e24b8c3ea --- /dev/null +++ b/gcc/testsuite/gcc.dg/cpp/pragma-once-1.c @@ -0,0 +1,8 @@ +/* PR preprocessor/15167 */ +/* Origin: Roland Meub <Roland.Meub@Tenovis.com> */ + +/* { dg-do compile } */ +/* { dg-options "-I." } */ + +#include "inc/pragma-once-1a.h" +#include "pragma-once-1d.h" diff --git a/gcc/testsuite/gcc.dg/cpp/pragma-once-1b.h b/gcc/testsuite/gcc.dg/cpp/pragma-once-1b.h new file mode 100644 index 00000000000..9c17db4dd51 --- /dev/null +++ b/gcc/testsuite/gcc.dg/cpp/pragma-once-1b.h @@ -0,0 +1,8 @@ +#ifndef _B_H_ +#define _B_H_ + +#pragma once + +#include "pragma-once-1c.h" + +#endif diff --git a/gcc/testsuite/gcc.dg/cpp/pragma-once-1c.h b/gcc/testsuite/gcc.dg/cpp/pragma-once-1c.h new file mode 100644 index 00000000000..cd50024f611 --- /dev/null +++ b/gcc/testsuite/gcc.dg/cpp/pragma-once-1c.h @@ -0,0 +1,6 @@ +#ifndef _C_H_ +#define _C_H_ + +#include "pragma-once-1b.h" + +#endif diff --git a/gcc/testsuite/gcc.dg/cpp/pragma-once-1d.h b/gcc/testsuite/gcc.dg/cpp/pragma-once-1d.h new file mode 100644 index 00000000000..0c5db2dc741 --- /dev/null +++ b/gcc/testsuite/gcc.dg/cpp/pragma-once-1d.h @@ -0,0 +1,6 @@ +#ifndef _D_H_ +#define _D_H_ + +#include "pragma-once-1b.h" + +#endif |