diff options
author | manu <manu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-04-09 16:08:42 +0000 |
---|---|---|
committer | manu <manu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-04-09 16:08:42 +0000 |
commit | 721e9705b7085f7902de764b6daf5acee2e8c0fe (patch) | |
tree | 20db70a3cd343042fa4941b4885b6d97190834a7 /gcc/testsuite/gcc.dg/cpp | |
parent | 543725f3e0125e211ea53f275146ca2de3101cc1 (diff) | |
download | gcc-721e9705b7085f7902de764b6daf5acee2e8c0fe.tar.gz |
2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
PR cpp/43195
libcpp/
* files.c (report_missing_guard): Test for #pragma once.
testsuite/
* gcc.dg/cpp/pr43195.c: New.
* gcc.dg/cpp/pr43195.h: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@158169 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/cpp')
-rw-r--r-- | gcc/testsuite/gcc.dg/cpp/pr43195.c | 6 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/cpp/pr43195.h | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/cpp/pr43195.c b/gcc/testsuite/gcc.dg/cpp/pr43195.c new file mode 100644 index 00000000000..a239fc17ba7 --- /dev/null +++ b/gcc/testsuite/gcc.dg/cpp/pr43195.c @@ -0,0 +1,6 @@ +/* PR preprocessor/43195 */ +/* { dg-do preprocess } */ +/* { dg-options "-H" } */ +/* { dg-message "pr43195\.h\n" "" { target *-*-* } 0 } */ +#include "pr43195.h" + diff --git a/gcc/testsuite/gcc.dg/cpp/pr43195.h b/gcc/testsuite/gcc.dg/cpp/pr43195.h new file mode 100644 index 00000000000..6f70f09beec --- /dev/null +++ b/gcc/testsuite/gcc.dg/cpp/pr43195.h @@ -0,0 +1 @@ +#pragma once |